Problem trying to notify a group


Hi people,

I’ve configured Nagios 3.0.6 to monitor some servers and web apps. But, I would like to notify different groups according to the checks done and I don’t know how to do that.

For example: if 3 checks were done and they returned a critical status, group-1 should be paged. Then, if 3 checks more are done and they failed, the group-2 should be paged. With the following configuration the group-1 is never paged. I don’t understand why. Could anyone give me a clue?

These are excerpts of my configuration files:

# file: service.cfg

define service{
        use                                  generic-service
        host_name                       server-1
        is_volatile                         0
        check_period                    24x7
        max_check_attempts        4
        normal_check_interval       5
        retry_check_interval          1
        contact_groups                 group-1
        notification_interval           120
        notification_period             24x7
        notification_options           w,u,c,r,f
        check_command              check_http!
define serviceextinfo{

# file: servicegroup.cfg

define servicegroup{
        servicegroup_name      domains
        alias                            Domains
        members                     server-1,

# file: escalations.cfg

define serviceescalation{
        servicegroup_name       domains
        contact_groups             group-1
        first_notification            1
        last_notification            3
        notification_interval       1
        escalation_options        r,w,c
define serviceescalation{
        servicegroup_name      domains
        contact_groups            group-2
        first_notification           3
        last_notification           6
        notification_interval      1
        escalation_options       r,w,c

Thanks in advance.