sms_client notification problems.

Lars Andersson lars at rockar.nu
Tue Feb 4 10:03:44 CET 2003


Hi,

I'm running Nagios 1.0 and sms_client-2.0.8z on a machine running
Debian.  I'm having trouble getting Nagios to send sms messages with
sms_client.

I've tried to search the archives, the search function does not work

My notification command:

define command{
    command_name    notify-by-sms
    command_line    /usr/bin/sms_client -l4 telia:0701111111
'$NOTIFICATIONTYPE$: $HOSTNAME$ IS $HOSTSTATE$'
    }


This command works from the command line as the Nagios user.
It invokes sms_client with debugging level four and sends me an sms.

/usr/bin/sms_client -4 telia:07011111111 'test message'


When Nagios executes the command notify-by-sms it just gives this lines
in the smslog

===================================================================
Feb 04 09:05:09 [32451] : Parsing Resource File
'/etc/smsclient/sms_config'
Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found
'SMS_default_service', setting value to 'telia'
Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config
SMS_default_service = telia
Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found
'SMS_lock_action', setting value to 'BLOCK'
Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_action
= BLOCK
Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config
SMS_lock_retry_delay = 5000000
Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found
'SMS_lockfile', setting value to '/var/lock/smslock'
Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lockfile =
/var/lock/smslock
Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Could
not find 'SMS_service_timeout', using default '300'
Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config
SMS_service_timeout = 300

Have anyone else experienced this problem? Is there a problem in my
command_line definition? It does not work even if I invoke a shell
script that should send me a "test message" by sms.

Any pointers is much appreciated.

/Lars




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list