Trouble With check_time command
Re: Trouble With check_time command
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
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?
Is the time service running on that host also?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Trouble With check_time command
What do you get if you run the check manually?
Please note that the path to your plugin may differ from mine as shown above...
Code: Select all
[jdalrymple@localhost libexec]$ /usr/local/nagios/libexec/check_time -H remotehost
Re: Trouble With check_time command
I have not opened port 37 in the firewall. How would I go about doing that?
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Trouble With check_time command
I'm assuming this is NOT RHEL or CentOS7:
If it is a EL7 system:
Code: Select all
iptables -A INPUT -p tcp --dport 37 -j ACCEPT
Code: Select all
firewall-cmd --add-port=37/tcp --permanent
firewall-cmd --reload
Re: Trouble With check_time command
The EL7 commands didnt work. Ip tables command went through, but Nagios is still giving me the warning error message.
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Trouble With check_time command
Please post the output from the Nagios server:
As mentioned, your paths may differ from mine.
Code: Select all
[jdalrymple@localhost libexec]$ /usr/local/nagios/libexec/check_time -H remotehost
Re: Trouble With check_time command
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.
"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.
Re: Trouble With check_time command
I assume that I would have to download nmap software first?