# Add this line, it is missing in the NRPE3 configuration file ! cat "Add commandacheck_centreon_plugins]=/usr/lib/centreon/plugins/centreon_linux_local.pl --plugin=$ARG1$ --mode=$ARG2$ $ARG3$" >> /etc/nrpe/centreon-nrpe3.cfg
Restart and check the centreon-nrpe3 service.
Test on the poller: /usr/lib/nagios/plugins/check_nrpe -H 172.23.202.143 -p 5666 -t 5 -u -c check_centreon_plugins -a 'os::linux::local::plugin' 'cpu-detailed' ' --warning-idle= --critical-idle= --statefile-dir=/var/log/nrpe/centplugins'
Actually, NRPE on Centreon is not an easy way !
Hi,
Important: the host model should be modified for calling the check_nrpe client macro.
Hi,
i dig out this post and i want to know if this possible to install nagios-nrpe-server from the source but keep the /usr/lib64/nagios/plugins/check_centreon_nrpe3.
The reason, we accounter a nrpe error for check a debian 11.
we are on Centreon 23.04 and we actually use nrpe3 from centreon source for check all our linux (rhel server. But we have now some debian 11 to check and it’s seem not working on some of them ...
@SavCent what exactly is not working?
Hi @ponchoh
all my tests give me
Status information
CHECK_NRPE: Error - Could not connect to 10.10.10.10. Check system logs on 10.10.10.10
in the nrpe log on 10.10.10.10 where my poller comme from 10.10.100.159:
<1720421189] CONN_CHECK_PEER: checking if host is allowed: 10.10.100.159 port 695 1720421189] Connection from 10.10.100.159 port 695 1720421189] is_an_allowed_host (AF_INET): is host >10.10.100.159< an allowed host >10.10.100.159< 1720421189] is_an_allowed_host (AF_INET): host is in allowed host list! 1720421189] Host address is in allowed_hosts 1720421189] CONN_CHECK_PEER: checking if host is allowed: 10.10.100.159 port 34356 1720421189] Connection from 10.10.100.159 port 34356 1720421189] is_an_allowed_host (AF_INET): is host >10.10.100.159< an allowed host >10.10.100.159< 1720421189] is_an_allowed_host (AF_INET): host is in allowed host list! 1720421189] Host address is in allowed_hosts 1720421189] Error: (ERR_get_error_line_data = 337092801), Could not complete SSL handshake with 10.10.100.159: no shared cipher 1720421189] Error: This could be because you have not specified certificate or ca-certificate files 1720421189] Connection from 10.10.100.159 closed. 1720421189] Error: (nerrs = 0) Could not complete SSL handshake with 10.10.100.159: 5 1720421189] Connection from 10.10.100.159 closed.
Thank you, this helps:
Could not complete SSL handshake with 10.10.100.159: no shared cipherm1720421189] Error: This could be because you have not specified certificate or ca-certificate filesm1720421189] Connection from 10.10.100.159 closed.m1720421189] Error: (nerrs = 0) Could not complete SSL handshake with 10.10.100.159: 5m1720421189] Connection from 10.10.100.159 closed.
Do you have something like this?
; CERTIFICATE - Ssl certificate to use for the ssl server certificate = ${certificate-path}/certificate.pem
I finally find a solution for my problem:
sous debian
sed -i "s/NRPE_OPT=\"\"/NRPE_OPT="\"-n\""/g" /etc/default/centreon-nrpe3
systemctl restart centreon-nrpe3.service
sous rhel
sed -i "s/NRPE_OPT=\"\"/NRPE_OPT="\"-n\""/g" /etc/sysconfig/centreon-nrpe3
systemctl restart centreon-nrpe3.service
you need to add a parameter in the host config nrpe extra option macro : -n