Skip to main content
Solved

Centreon NSClient install and not able view in centreon server hosts

  • Sep 4, 2023 1:14 PM UTC
  • 10 replies
  • 489 views

Forum|alt.badge.img+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.

Best answer by Jul3s

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

View original

10 replies

Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 6, 2023 2:07 PM UTC

Hi Team,

Any update . Request your help here.


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 8, 2023 1:08 PM UTC

Hi Team,

can you help me here.

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

 


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 8, 2023 1:44 PM UTC

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++>

 


Forum|alt.badge.img+3
  • Steward **
  • Sep 8, 2023 1:57 PM UTC

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.


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 8, 2023 2:44 PM UTC

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++


Forum|alt.badge.img+3
  • Steward **
  • Sep 8, 2023 3:38 PM UTC

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


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 9, 2023 9:22 AM UTC

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
 


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 9, 2023 5:16 PM UTC

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


Forum|alt.badge.img+3
  • Steward **
  • Answer
  • Sep 11, 2023 1:31 PM UTC

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


Forum|alt.badge.img+3
  • Author
  • Steward ***
  • Sep 11, 2023 1:56 PM UTC

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.