How to use the $CONTACTADDRESSx$ for winpopup messages to serveral hosts?

Ralf Gross Ralf-Lists at RalfGross.de
Mon Jan 17 13:55:55 CET 2005


Hi,

I recently moved from nagios 1.2 to nagios 2.0b1.

With 1.2, I used the alias directive (macro $CONTACTALIAS$) in
contacts.cfg to send winpopup alerts to this windows clients. Nagios 2.0b1
has the new $CONTACTADDRESSx$ macro, I can define up to 6 different
addresses for one contact.
The winpopup section in my misccommands.cfg looks like this:

...nagios stuff...| /usr/bin/smbclient -U "Nagios" -M $CONTACTALIAS$

If a contact has just one address defined, I could just replace
$CONTACTALIAS$ with $CONTACTADDRESS1$. But some people have serveral hosts
which should get the popup alert.
Do I have to create different commands in misccommands.cfg, eg.
notify-by-winpopup-host-1, notify-by-winpopup-host-2...? I think there
must be a simpler way to accomplish that.
Any ideas?

Ralf








-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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