sytax for misccommands
David Clack
davey at clack.org.uk
Wed May 28 12:39:45 CEST 2003
Hello,
I want to setup a notify by sms text message misccommand.
The program I use (scmxx) needs this input at the command line:
/usr/local/bin/scmxx --send --sms --direct -t "a message" -n +123456789
In the text of the message, the "a message" part, I'd like to add
$HOSTSTATE$ & $HOSTNAME$ macros etc..
also for the phone number, +123456789, I'd like to use $CONTACTPAGER$.
Here's what I have in misccommands.cfg...
# 'host-notify-by-sms' command definition
define command{
command_name host-notify-by-sms
command_line /usr/local/bin/scmxx --send --sms --direct -t
"Nagios error" -n $CONTACTPAGER$
}
I have my telephone number defined as pager in contacts.cfg.
I'm not getting notified with this, I see in the event log that nagios has
tried to notify me as I have this line:
28-05-2003 10:39:10] HOST NOTIFICATION:
dave;dave;DOWN;host-notify-by-sms;/bin/ping -n -U -c 1 172.18.3.43
Could someone help with this? I'm sure it's the syntax of the misccommand
but don't know where to look.
Thanks
Dave.
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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