We're moving to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Trouble With check_time command

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: Trouble With check_time command

Postby rockxd » Tue Mar 03, 2015 1:52 pm

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

Re: Trouble With check_time command

Postby tgriep » Tue Mar 03, 2015 2:01 pm

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

Re: Trouble With check_time command

Postby jdalrymple » Tue Mar 03, 2015 2:01 pm

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...
jdalrymple
Skynet Drone
 
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Postby rockxd » Tue Mar 03, 2015 2:30 pm

I have not opened port 37 in the firewall. How would I go about doing that?
rockxd
 
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Postby jdalrymple » Tue Mar 03, 2015 2:39 pm

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
jdalrymple
Skynet Drone
 
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Postby rockxd » Wed Mar 04, 2015 1:19 pm

The EL7 commands didnt work. Ip tables command went through, but Nagios is still giving me the warning error message.
rockxd
 
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Postby jdalrymple » Wed Mar 04, 2015 1:39 pm

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.
jdalrymple
Skynet Drone
 
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trouble With check_time command

Postby rockxd » Wed Mar 04, 2015 2:04 pm

I get the same message that Nagios gives me.
Attachments
Manual Run Error Message.png
rockxd
 
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

Re: Trouble With check_time command

Postby abrist » Wed Mar 04, 2015 2:39 pm

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.
abrist
Red Shirt
 
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Trouble With check_time command

Postby rockxd » Thu Mar 05, 2015 2:01 pm

I assume that I would have to download nmap software first?
rockxd
 
Posts: 26
Joined: Fri Feb 27, 2015 10:01 am

PreviousNext

Return to Community Support

Who is online

Users browsing this forum: VictorJohnsonandroni and 23 guests