Alerting Question

I have my alerting set up now to send an e-mail on a Critical/Warning/Unknown.

Is there a way to set up alerting to e-mail on Warning/Unknown and page on Critical without having to create two different services for the same command?

Would this be a modification of the alert script/command… or can I accomplish the same thing at the service level ?

No problem. Define two contacts like this :

define contact {
   contact_name                     john_email
   alias                            John Doe
   host_notification_period         24x7
   host_notification_commands       host-notify-by-email
   host_notification_options        d,r
   service_notification_period      24x7
   service_notification_commands    notify-by-email
   service_notification_options     w,u,r
   email                            john.doe_AT_foo.bar
}
define contact {
   contact_name                     john_page
   alias                            John Doe
   host_notification_period         24x7
   host_notification_commands       host-notify-by-pager
   host_notification_options        d,r
   service_notification_period      24x7
   service_notification_commands    notify-by-pager
   service_notification_options     c,r
   pager                            0015551234
}

Notice that one has W,U, and the ohter has C. Both must have R so that the recovery arrives in the same way as the alert.

Then, maybe create a group if needed :

define contactgroup {
   contactgroup_name                John
   alias                            John Doe
   members                          john_email,john_page
}

And just use

in your services/hosts.

forgot to say that in this case you will get host alerts on both email and page. What I usually do is have a host_notification_period Work_Hours on the email, and a host_notification_period Evening_Night on the pager.

Will the Recovery messages only go to “the originating/notification contact”?

I’d like the Critical notifications and respective Recovery to go to the pager (and email too).
I don’t want the Warning Recovery message to go to the pager.

Will this configuration accomplish that?

All of my reading and research hasn’t completely explained the recovery processing, state changes and notifications.
I can not tell if Nagios maintains the “type” of recovery for notification recipient determination.

Thanks