Notifications not sent using sms_client


#1

Hi!

I’m having problems to send notifications to my pager using sms_client.
I already configured a misccommand named NotifyByPager like this under “command_line”:

/usr/local/bin/sms_client -q $CONTACTPAGER$ ‘$NOTIFICATIONTYPE$\n$HOSTALIAS$ ($HOSTADDRESS$) $HOSTSTATE$ at $SHORTDATETIME$’

I configured a host to use this notification command, and when it’s down, nagios shows the notification in the “Host Notifications” list (on the web interface).

Host: RouterCEINCASA
Service: N/A
Type: HOST DOWN
Time: 07-19-2005 10:36:57
Contact: amejia
Notification Command: NotifyByPager
Information: CRITICAL - Plugin timed out after 10 seconds

But as far as it seems, the command was never executed. (doesn’t appear in the sms_client’s log file).

I’m just a newbie with this nagios stuff, and maybe I’m doing something wrong.
Please help me out.

Thanks in advance.


#2

can you execute it from command line as the nagios user? the sms_client command isn’t supplied with nagios as far as i know :slight_smile:

Luca


#3

ls -la /usr/local/bin/sms_client will probabley show
-rwxr–r-- 1 root root

Sooooo, nagios user can’t execute it.