Nagios Xi Server ( Localhost) monitoring not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Nagios Xi Server ( Localhost) monitoring not working

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post 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]#
Former Nagios Employee
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post by srikgali »

Can i know how can i call All services Locally? (from Nagios server)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post by rkennedy »

Could you please clarify?
Former Nagios Employee
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post 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).
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post by srikgali »

Thanks It is working now..
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post by tgriep »

Your welcome, glad it is working. Shall we mark this post as solved and lock it up for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikgali
Posts: 46
Joined: Thu Apr 07, 2016 9:18 am

Re: Nagios Xi Server ( Localhost) monitoring not working

Post by srikgali »

Yes, sure...
Locked