I'm trying to check the NTP status and offset of my NTP servers in Nagios. When I manually ran the command, I did get the result I was looking for:
Code: Select all
./check_ntp_peer -H **** -w .5 -c 1
NTP OK: Offset 0.001174 secs|offset=0.001174s;0.500000;1.000000;
- the plugin does have the following rights: -rwxr-xr-x. 1 nagios nagios 172921 May 13 14:59 check_ntp_peer
I'll show the command definition:
Commands.cfg
Code: Select all
define command{
command_name check_ntp
command_line /usr/local/nagios/libexec/check_ntp_peer -H $HOSTADDRESS$ -w .5 -c 1
}
Do you guys know what I did wrong? Thanks in advance.