Page 2 of 3

Re: Trouble With check_time command

Posted: Tue Mar 03, 2015 1:52 pm
by rockxd
Ok, on one of my hosts that I am monitoring, I have installed xinetd and followed your instructions. My Nagios client is still giving me the UNKNOWN status and the same error message however.

Re: Trouble With check_time command

Posted: Tue Mar 03, 2015 2:01 pm
by tgriep
On the server that you are checking, did you open up port 37 in the firewall?
Is the time service running on that host also?

Re: Trouble With check_time command

Posted: Tue Mar 03, 2015 2:01 pm
by jdalrymple
What do you get if you run the check manually?

Code: Select all

[jdalrymple@localhost libexec]$ /usr/local/nagios/libexec/check_time -H remotehost
Please note that the path to your plugin may differ from mine as shown above...

Re: Trouble With check_time command

Posted: Tue Mar 03, 2015 2:30 pm
by rockxd
I have not opened port 37 in the firewall. How would I go about doing that?

Re: Trouble With check_time command

Posted: Tue Mar 03, 2015 2:39 pm
by jdalrymple
I'm assuming this is NOT RHEL or CentOS7:

Code: Select all

iptables -A INPUT -p tcp --dport 37 -j ACCEPT
If it is a EL7 system:

Code: Select all

firewall-cmd --add-port=37/tcp --permanent
firewall-cmd --reload

Re: Trouble With check_time command

Posted: Wed Mar 04, 2015 1:19 pm
by rockxd
The EL7 commands didnt work. Ip tables command went through, but Nagios is still giving me the warning error message.

Re: Trouble With check_time command

Posted: Wed Mar 04, 2015 1:39 pm
by jdalrymple
Please post the output from the Nagios server:

Code: Select all

[jdalrymple@localhost libexec]$ /usr/local/nagios/libexec/check_time -H remotehost
As mentioned, your paths may differ from mine.

Re: Trouble With check_time command

Posted: Wed Mar 04, 2015 2:04 pm
by rockxd
I get the same message that Nagios gives me.

Re: Trouble With check_time command

Posted: Wed Mar 04, 2015 2:39 pm
by abrist
Can you run an nmap from the nagios server to see if port 37 is actually open?

Code: Select all

nmap -p 37 10.25.173.205

Re: Trouble With check_time command

Posted: Thu Mar 05, 2015 2:01 pm
by rockxd
I assume that I would have to download nmap software first?