I’ve got Nagios 3 installed and working properly. However, I added two commands so that it will phone myself and my boss upon certain things going down. The event log of Nagios shows it has run the command, but our phones never ring. We do get the email, though.
**I can get wvdial to work properly from the command line and from a shell script.
Any help here is appreciated.
Here are the commands:
‘call-jeff’ command definition
define command{
command_name call-jeff
command_line /usr/bin/wvdial
}
‘call-darrell’ command definition
define command{
command_name call-darrell
command_line /usr/bin/wvdial phone2
}
(of course my wonderful spacing is all jacked, and I dont feel like doing html to format it properly here)
In Nagios’ configuration webpage, where you can show all the commands, they are listed along with all the other ones:
call-darrell /usr/bin/wvdial phone2
call-jeff /usr/bin/wvdial
and here is a copy of the event log: (I have Nagios phoning us twice, just to be sure to wake us up)
05-20-2008 12:50:35] HOST NOTIFICATION: adminphone;ops-d01;DOWN;call-jeff;CRITICAL - Host Unreachable (10.201.3.51)
[05-20-2008 12:50:35] HOST NOTIFICATION: adminphone;ops-d01;DOWN;call-jeff;CRITICAL - Host Unreachable (10.201.3.51)
[05-20-2008 12:50:35] HOST NOTIFICATION: adminphone;ops-d01;DOWN;call-darrell;CRITICAL - Host Unreachable (10.201.3.51)
[05-20-2008 12:50:35] HOST NOTIFICATION: adminphone;ops-d01;DOWN;call-darrell;CRITICAL - Host Unreachable (10.201.3.51)
[05-20-2008 12:50:35] HOST NOTIFICATION: adminphone;ops-d01;DOWN;notify-host-by-email;CRITICAL - Host Unreachable (10.201.3.51