Issues in Nagios SMS Integration
Posted: Tue Jan 27, 2015 12:46 am
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
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