Solved

Centreon NSClient install and not able view in centreon server hosts

  • 4 September 2023
  • 10 replies
  • 166 views

Badge +3

Hi Team,

I had successfully installed centreon NSClient on windows server 2019 and modified the parameter in 

nsclient.in file and add my poller servers IP address like 172.24.XX.XX/32. 

restarted the nscp service. 

what is the next step ? unable to view the systems in Centreon Server’s host for monitoring.

Please help.  Thanks.

icon

Best answer by Jul3s 11 September 2023, 15:31

View original

10 replies

Badge +3

Hi Team,

Any update . Request your help here.

Badge +3

Hi Team,

can you help me here.

let me know what needs to be modified  in nsclien.ini file monitor Windows 2019 server.

 

Badge +3

Hi

I am getting below error .

 

C:\Program Files\Centreon NSClient++>check_nrpe.exe host=127.0.0.1 port=5666 payload-length=8192 ssl=1
Error: Failed to connect to: 127.0.0.1:5666 :An existing connection was forcibly closed by the remote host
C:\Program Files\Centreon NSClient++>

 

Badge +3

Hi there,

First thing first, did you add the centreon server in allowed host parameter on nsclient.ini ?

Then test communication between centreon and your client with telnet.

telnet <client IP> <port>

If telnet is working on port you defined, test communication from centreon with your plugin

check_nt -H <client IP> -p 12489 -v CLIENTVERSION

Regards,

J.

Badge +3

Hi  Jul3s,

i am able to telnet from Centeron poller to client ip with port 5666

Below command is correct to test the connectivity from Centeron poller to below client ip

 check_nt -H 172.24.xx.xx -p 12489 -v Centreon NSClient++

Badge +3

Please try those commands from centreon server :

check_nt -H <client ip> -p 12489 -v USEDDISKSPACE  -l C -w 80 -c 90

check_nt -H <client ip> -p 12489 -v CPULOAD  -l 2,95,100

 

If both are working, that means you can, at least, monitor space and cpu.

 

Next step, will be to create the client host and the services if not already created on your centreon WUI

Badge +3

Hi

please see below for the error while running the command. help me to resolve this issue. Thanks.

 

[root@ACL-Centreon-PROD ~]# check_nt -H 172.24.xx.xx -p 12489 -v USEDDISKSPACE  -l C -w 80 -c 90
-bash: check_nt: command not found
 

Badge +3

Pl refer below for the error from Centreon server - adding services of host.

 

 

Status information

CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with 172.24.xx.xx: 1

Badge +3

Hi

please see below for the error while running the command. help me to resolve this issue. Thanks.

 

[root@ACL-Centreon-PROD ~]# check_nt -H 172.24.xx.xx -p 12489 -v USEDDISKSPACE  -l C -w 80 -c 90
-bash: check_nt: command not found
 

You got to put the complete path to check_nt if not defined in your PATH env variable.

Exemple : /usr/lib64/nagios/plugins/check_nt -H 172.24.xx.xx -p 12489 -v USEDDISKSPACE  -l C -w 80 -c 90

Badge +3

Hi Jul3s,

 

Thanks for the update. issue resolved now.

For notification I had configured Postfix on Centreon server and tested the smpt and able to receive email from Centreon by using SMTP commands. Still notification is not receiving for critical event generated Centreon WUI.

 

 

Reply