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
Issues in Nagios SMS Integration
Re: Issues in Nagios SMS Integration
Can you show me the command in XI that you have configured to run this?
Former Nagios employee
Re: Issues in Nagios SMS Integration
Hitmcdonald wrote:Can you show me the command in XI that you have configured to run this?
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
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.
Go to Configure -> Core Config Manager -> Commands. From there find the command for this notification and click the blue diskette icon.
Former Nagios employee