sytax for misccommands

Henry Langendoen henry at solcon.nl
Wed May 28 13:30:44 CEST 2003


Hi Dave,

We have done something simular with sms_client. It's important to see if you
can run smcxx under the same user as nagios runs, i.e. user nagios. I had to
set the s bit on sms_client for nagios to execute this binairy.

Gook luck,

Henry Langendoen
The Netherlands

-----Oorspronkelijk bericht-----
Van: David Clack [mailto:davey at clack.org.uk] 
Verzonden: woensdag 28 mei 2003 12:40
Aan: nagios-users at lists.sourceforge.net
Onderwerp: [Nagios-users] sytax for misccommands


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


-------------------------------------------------------
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