Specifiying an contact method for winpopup messages
Greg Vickers
g.vickers at qut.edu.au
Thu Sep 26 08:25:17 CEST 2002
Hi all,
I want to be able to define in a contact a machine name that I can send a
winpopup message to.
so i'll have the following commands:
host-notify-by-email.command.cfg
host-notify-by-pager.command.cfg
host-notify-by-winpopup.command.cfg
And host-notify-by-winpopup.command.cfg looks like this:
define command{
command_name host-notify-by-winpopup
command_line printf "\"$HOSTALIAS$\" at IP $HOSTADDRESS$ is in a
$HOSTSTATE$ state.\nThe output from the host check command: $OUTPUT$" |
smbclient -M $MACHINENAME$ -U "Nagios Monitoring Station"
}
And a contact definition contains:
define contact{
...
machine_name adminstation
}
Obviously there isn't a macro in nagios called MACHINENAME that you can
define in a contact, but you get the idea - a variable that I can define in
a contact and have it passed to my winpopup command. Any ideas?
TIA,
=================================
Greg Vickers
Computer Systems Officer
Student Support and Systems
Teaching and Learning Support Systems, QUT
Kelvin Grove Campus, CRICOS No 00213J
Ph: 07 3864 8276 Fax: 07 3864 5425
Mob: 0416 001 674 SD: x6147
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list