Page 1 of 1

Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 2:30 pm
by srikgali
My Nagios Server is running on CentOS server. and monitoring for all hosts configured in nagios working fine. but Nagios server monitoring is not working.

Error for all services is CHECK_NRPE: Error - Could not complete SSL handshake.

HOw do i configure nagios server in nagios?

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 2:44 pm
by rkennedy
You shouldn't need to use check_nrpe against localhost because it's used as an agent. You can call to all of the files locally.

It has to do with resolution though, it will work if you use 127.0.0.1 where as localhost will not.

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 127.0.0.1
NRPE v2.15
[root@localhost libexec]# ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@localhost libexec]#

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 3:15 pm
by srikgali
Can i know how can i call All services Locally? (from Nagios server)

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 3:18 pm
by rkennedy
Could you please clarify?

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 3:24 pm
by srikgali
if I have a script called CPU_check, Can i know HOw can i configure the the service for the cpu_check locally.

I know how to configure services for remote hosts through check_nrpe. but not sure to configure services locally as you mentioned( You can call to all of the files locally).

My intention is to configure services for localhost( Nagios server).

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Tue Aug 30, 2016 3:46 pm
by tgriep
When an Xi server is created, it should create local checks on the server for you.
Take a look under the Core Config Manager > services menu and see if they are still there. Look under the localhost config settings.
If they are not there, you can re-create them. The checks are defined like check_local_XXXXXXX. Take a look at the example below for the check_local_load settings.
Local_check.PNG

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Wed Aug 31, 2016 1:15 pm
by srikgali
Thanks It is working now..

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Wed Aug 31, 2016 1:41 pm
by tgriep
Your welcome, glad it is working. Shall we mark this post as solved and lock it up for you?

Re: Nagios Xi Server ( Localhost) monitoring not working

Posted: Wed Aug 31, 2016 2:47 pm
by srikgali
Yes, sure...