I have managed to follow all the instructions to adding the foxbox plugin. However it still does not seems to be sending out any alerts via text messages
can any one shed some light on this?
sms FoxBox
Re: sms FoxBox
For reference, are you referring to this?
https://exchange.nagios.org/directory/P ... ts/details
Are you receiving any errors in your system logs? What happens if you run the command manually from the command line to test?
https://exchange.nagios.org/directory/P ... ts/details
Are you receiving any errors in your system logs? What happens if you run the command manually from the command line to test?
Former Nagios employee
Re: sms FoxBox
yes i am referring to that documentation
sorry im quite new to this, so you will have to bear with me if i ask questions which seem too simple
no error messages regarding this issue.
which command are we referring to and how can i run this manually?
sorry im quite new to this, so you will have to bear with me if i ask questions which seem too simple
no error messages regarding this issue.
which command are we referring to and how can i run this manually?
Re: sms FoxBox
Based on how it has you define your commands, you may need to edit them -
Based on the documentation on the page above, to test over the CLI, try something like this -
(replace CONTACTNUMBER) with a valid number to dial.
Code: Select all
command_line /usr/lib/nagios/plugins/sendSMS.sh -h "127.0.0.1" -u "nagiosadmin" -pw "nagios" -n "$CONTACTPAGER$" -m "Service Alert: $HOSTALIAS$/$SERVICEDESC$ nService State: $SERVICESTATE$ nDate/Time: $LONGDATETIME$"
Code: Select all
/usr/lib/nagios/plugins/sendSMS.sh -h "127.0.0.1" -u "nagiosadmin" -pw "nagios" -n "CONTACTNUMBER" -m "Test message"
Former Nagios Employee
Re: sms FoxBox
i have just also noticed that the file structure on the nagios server is different to whats documented:
/usr/lib/nagios/plugins/ - this directory does not exists!!
and with regards to the amendments that need to be made to the commands.cfg file. is this the file that is located in :
/usr/local/nagios/etc?
as this file clearly states that any changes will be overwritten by CCM
/usr/lib/nagios/plugins/ - this directory does not exists!!
and with regards to the amendments that need to be made to the commands.cfg file. is this the file that is located in :
/usr/local/nagios/etc?
as this file clearly states that any changes will be overwritten by CCM
Re: sms FoxBox
Nice catch, I didn't realize this was an XI post.
You'd want to adjust the command definition to /usr/local/nagios/etc in the CCM. You can modify your existing commands by navigating to Configure -> Core Config Manager -> Commands -> Find the notification commands you created for the sendSMS.sh plugin -> Adjust the path to be correct.
You'd want to adjust the command definition to /usr/local/nagios/etc in the CCM. You can modify your existing commands by navigating to Configure -> Core Config Manager -> Commands -> Find the notification commands you created for the sendSMS.sh plugin -> Adjust the path to be correct.
Former Nagios Employee