Nagios: Difference between revisions

153 bytes removed ,  4 years ago
 
Line 482:
 
Source: [https://www.unixmen.com/send-nagios-alert-notification-using-sms/ unixmen.com]
yum sudo apt install smstools
 
yum install smstools
 
Make Sure you have the Following SMSTOOLS3 SERVER Files and Folders Installed
incoming = /var/spool/sms/incoming
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
logfile = /var/log/smsd.log
Configuration = /etc/smsd.conf
 
Also make sure that SMSTools has the Right Configuration Setting for your modem in: /etc/smsd.conf
incoming = /var/spool/sms/incoming
sudo nano /etc/smsd.conf
outgoing = /var/spool/sms/outgoing
device = /dev/ttyACM0ttyUSB0
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
logfile = /var/log/smsd.log
Configuration = /etc/smsd.conf
 
Also make sure that SMSTools has the Right Configuration Setting for your modem in: /etc/smsd.conf
( GSM Modem is on ttyACM0 in this example)
 
device = /dev/ttyACM0
 
Next step is to configure smstool service to autorun with the server.
 
chkconfig smsd on
 
Then restart the service using this command:
service smsd restart
 
Test to send sms:
service smsd restart
 
Then you can test to send sms
sendsms 12128654549 'test'