nagios service restart failed.

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.
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post 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...
bolson

Re: nagios service restart failed.

Post 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
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post 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?
bolson

Re: nagios service restart failed.

Post by bolson »

No need for that... short host name should rexolve.
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post 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.
Attachments
fw.JPG
bolson

Re: nagios service restart failed.

Post 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?
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post 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"
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post by anoopjeev »

I see only Uptime is service is working on ia0cw007. pls check the attachment.
Attachments
nag.JPG
bolson

Re: nagios service restart failed.

Post 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
anoopjeev
Posts: 29
Joined: Wed Jul 26, 2017 6:58 pm

Re: nagios service restart failed.

Post 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.
Locked