Page 2 of 3

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 2:33 pm
by anoopjeev
I don't see any command prompt on my nagios server(centos 7 machine).
should i try it in terminal?
[root@localhost /]# ia0cw007
bash: ia0cw007: command not found...

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 2:43 pm
by bolson
My mistake... from the Nagios server:

Code: Select all

telnet ia0cw007 5666
If telnet isn't installed:

Code: Select all

yum -y install telnet

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 3:00 pm
by anoopjeev
[root@localhost /]# telnet ia0cw007 5666
telnet: ia0cw007: Name or service not known
ia0cw007: Host name lookup failure


should i include fqdn?? or no?

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 3:09 pm
by bolson
No need for that... short host name should rexolve.

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 3:52 pm
by anoopjeev
i forgot to mention that this client was installed when i was testing nagiosxi. I just added the new nagios core server in the "allowed hosts" in the nagios agent on ia0cw007. Do you think i need to do a re-install with only nagios core server.

I have added firewalls rule attachment. pls suggest how to proceed.

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 4:14 pm
by bolson
Can you try the telnet command replacing host name with ip address?

Code: Select all

telnet ipaddress 5666
ping ipaddress
And post result.

Are your check commands working in the Core web gui now?

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 4:31 pm
by anoopjeev
[root@localhost /]# ping 10.52.94.31
PING 10.52.94.31 (10.52.94.31) 56(84) bytes of data.
64 bytes from 10.52.94.31: icmp_seq=1 ttl=127 time=0.362 ms
64 bytes from 10.52.94.31: icmp_seq=2 ttl=127 time=0.446 ms
64 bytes from 10.52.94.31: icmp_seq=3 ttl=127 time=0.480 ms
^C
--- 10.52.94.31 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.362/0.429/0.480/0.052 ms

[root@localhost /]# telnet 10.52.94.31 5666
Trying 10.52.94.31...
Connected to 10.52.94.31.
Escape character is '^]'.
Connection closed by foreign host.

the services status is same.the services status is WARNING and status information is "could not fetch information from the server"

Re: nagios service restart failed.

Posted: Thu Jul 27, 2017 4:33 pm
by anoopjeev
I see only Uptime is service is working on ia0cw007. pls check the attachment.

Re: nagios service restart failed.

Posted: Fri Jul 28, 2017 11:03 am
by bolson
Try this from a command line on your Nagios server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.52.94.31 
Also, look through this guide and make sure you followed all of the necessary steps to enable nrpe on your Windows box.

https://assets.nagios.com/downloads/nag ... -0.3.x.pdf

Re: nagios service restart failed.

Posted: Tue Aug 01, 2017 12:18 pm
by anoopjeev
Thank you, it worked. :D
Can you leave this open for 2 days more. I would try adding 2 more hosts and would post updates.