Specifiying an contact method for winpopup mes sages
Greg Vickers
g.vickers at qut.edu.au
Fri Sep 27 03:43:06 CEST 2002
Yes, I am currently using the pager variable to store the machine name :)
This is fine until I implement the paging side!
I can create a command that has the machine/user-names hard coded, but I'd
like to have the machine/user names contained within the contact
definitions (and not loose the OO structure!)
Is there something funky I can do with USERx args?
TIA,
GV
p.s. yes, i've ensured that the nagios user names are sync'ed with our
QUT/Local Domain user names so my users won't get confuzzeded :)
At 22:47 26/09/2002, Bishop, Dean wrote:
>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
=================================
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