Issues in Nagios SMS Integration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Issues in Nagios SMS Integration

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Issues in Nagios SMS Integration

Post by tmcdonald »

Can you show me the command in XI that you have configured to run this?
Former Nagios employee
venkitesh
Posts: 67
Joined: Tue Jan 27, 2015 12:34 am

Re: Issues in Nagios SMS Integration

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Issues in Nagios SMS Integration

Post 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.
Former Nagios employee
Locked