Page 1 of 1

Issues in Nagios SMS Integration

Posted: Tue Jan 27, 2015 12:46 am
by venkitesh
HI All,

Kindly help

/usr/bin/printf "%b" "Nagios Says: $HOSTNAME$ is $HOSTSTATE$ Info is: $HOSTOUTPUT$ $LONGDATETIME$" | ssh [email protected] /usr/bin/smssend +91-9xxxxxxxxx.

i am using the above script to send sms alerts from nagios xi which works perfectly. but here i am manually mentioning the mobile number.

Instead of this when i am giving $CONTACTPAGER$ it is not working, since i need alerts has to go to particular contacts.

i have created a new contact and on the pager number i have given my mobile number but no luck.

i have configured smstools application in a seperate linux box which i am using as sms gateway and i did ssh key authentication to send sms which you can see in the script.

PLease help me

Regards
Venkitesh

Re: Issues in Nagios SMS Integration

Posted: Tue Jan 27, 2015 11:44 am
by tmcdonald
Can you show me the command in XI that you have configured to run this?

Re: Issues in Nagios SMS Integration

Posted: Tue Jan 27, 2015 1:25 pm
by venkitesh
tmcdonald wrote:Can you show me the command in XI that you have configured to run this?
Hi

Thanks for your reply.

/usr/bin/printf "%b" "Nagios Says: $HOSTNAME$ is $HOSTSTATE$ Info is: $HOSTOUTPUT$ $LONGDATETIME$" | ssh [email protected] /usr/bin/smssend +91-9xxxxxxxxx.

i am using the above command.

Re: Issues in Nagios SMS Integration

Posted: Tue Jan 27, 2015 1:28 pm
by tmcdonald
Actually I was referring to the Nagios command which is different from what would be run on the command line.

Go to Configure -> Core Config Manager -> Commands. From there find the command for this notification and click the blue diskette icon.