Specifiying an contact method for winpopup mes sages

Bishop, Dean dean.bishop at tcdsb.org
Thu Sep 26 14:47:23 CEST 2002


could you use the contact's "pager" variable to store the machinename??
Then use $CONTACTPAGER$ in your smbclient call?

also, someone posted a few days ago saying that there was a patch available
for smbclient that allowed you to send winpopups to a username.  You might
chase that down too and just ensure that your Nagios contact name is
syncronized with your windows user name.

hth,
dean

-----Original Message-----
From: Greg Vickers [mailto:g.vickers at qut.edu.au]
Sent: Thursday, September 26, 2002 2:25 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Specifiying an contact method for winpopup
messages


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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list