Page 1 of 1
Send SMS in Nagios
Posted: Mon May 04, 2020 10:21 pm
by nguyenphan
Hi, I have Nagios Core 4.4 installed already, and SAM Intercel GSM device for send SMS, please help me to send notification of host with the device. Thanks a lot
Re: Send SMS in Nagios
Posted: Tue May 05, 2020 4:34 pm
by cdienger
I'm not aware of any scripts to integrate that device but if the device has an API that you can program for and execute on a Linux command line then it should be doable. All Core will do to send a message is call a script or program(this is what is defined with the host_notification_commands and service_notification_commands directive) and pass it the macros need to make the notification - phone number of contacts, host/service information, etc. Here are some useful docs on notifications:
https://assets.nagios.com/downloads/nag ... olist.html
https://assets.nagios.com/downloads/nag ... tions.html
https://assets.nagios.com/downloads/nag ... ml#command
https://assets.nagios.com/downloads/nag ... ml#contact