Different contact commands for different state s?
Andreas Ericsson
ae at op5.se
Tue Sep 21 02:56:45 CEST 2004
Tedman Eng wrote:
> You might be able to achieve this using && and || command chains.
>
> [ "$NOTIFICATIONTYPE$" == "ACKNOWLEDGEMENT" ] && printf|mail phb at domain ||
> printf|mail admin at domain
>
Why not just do it the easy way and move the scripting out of the
configuration?? I'm still baffled by the sometimes 2000 char oneliners
people come up with for notification commands. It's not exactly illegal
to use scripts and programs for notification commands you know...
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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