Trouble With check_time command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rockxd
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Trouble With check_time command

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Post 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...
rockxd
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Post by rockxd »

I have not opened port 37 in the firewall. How would I go about doing that?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Post 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
rockxd
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Post by rockxd »

The EL7 commands didnt work. Ip tables command went through, but Nagios is still giving me the warning error message.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Post 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.
rockxd
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Post by rockxd »

I get the same message that Nagios gives me.
Attachments
Manual Run Error Message.png
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Trouble With check_time command

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rockxd
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Post by rockxd »

I assume that I would have to download nmap software first?
Locked