custom notify option
Dave Rocks
daveyboydotcom at hotmail.com
Thu Jul 3 16:44:27 CEST 2003
Hello,
I want to add something to misccommands.cfg like:
define command{
command_name notify-by-popup
command_line /bin/echo -e "* $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ * Info: $OUTPUT
$ Time: $DATETIME$" | smbclient -M $PCNAME$
}
The command itself will work but how do I define $PCNAME$
I can add a line to contact.cfg for each contact to have 'pcname
dave01'
But that doesn't do the trick..is there anywhere in the docs that can help?
Thanks
Dave.
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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