utilizing pager/email in single contact

Andrew Cruse andrew at profitability.net
Wed May 24 20:09:51 CEST 2006


nagios-users-admin at lists.sourceforge.net wrote:
> Good afternoon,
> 
> I am sure I am not seeing the big picture here but I want to
> have a single contact and have nagios use the pager for
> critical/ok and email for warning/ok messages.  It doesnt
> appear that the default notification commands allow for this.   
> 
> Do I need to write a new notification command that determines
> if the alert is warning, critical, etc. and use the
> appropriate macro at that point?

You *could* write a new notification command.  That would be the most
elegant solution, probably, but a quick-and-dirty "use what's there"
solution would be to create two users -- one for email, one for paging.

Then for the paging user, use:

        service_notification_options    c,r
        host_notification_options       d,r

And for the email user, use:

        service_notification_options    w,u,r

Then make sure both users are members of the appropriate contact group
and you should be in business.

Andrew



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list