centreon / centreon-archived

Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.
https://www.centreon.com
GNU General Public License v2.0
574 stars 240 forks source link

Probes don't execute at defined interval #10568

Open nicnictout opened 2 years ago

nicnictout commented 2 years ago

Hello,

i have a strange issue with one probe on a client, the probe is scheduled to run every 2h, iit was previously set to run every minute. I change the service definition and now in console i see that probe is launched every 2h. I check centengine.log and see a calling to nrpe agent every 2h. But locally, i add a log mechanism inside the script and i saw that it still launched every minute. NOTE: there is a similar probe launched every 2h that works perfectly on the same node

I edit nrpe.cfg in order to prevent any poller to contact my node, and i still seeing node accepting requests from check_nrpe initiated by pollers. nrpe service is linked to xinetd service, if i launch nrpe client manually script is not executed, as soon i restart it by xinetd, script runs again every minute. I'm not aware of any cache either in nrpe agent neither in xinetd, so now i'm running out of leads to investigate.

This is not the first time i see such behavior, generally after restarting poller, agent, unlink stpl, relink it i finally managed to solved the issue last times its occured, but this time, nothing works...

1) why script is still running every minute even without any call from poller (contabs of all users are empty, script is used in only one STPL and is linked to only this host. Host IP set in Centreon is the correct one) 2) why even with filtering pollers IP with an inexistant IP, client still accepts requests from pollers

Centreon 19.10 nrpe version 2.15

nothing related to this services execution in any logs except in centengine when probe is launched every 2h by poller.

centreon-plugin-Applications-Databases-Mysql-20191219-152203.el7.centos.noarch centreon-engine-extcommands-19.10.8-4.el7.centos.x86_64 centreon-plugin-Network-Cisco-Standard-Snmp-20191219-152203.el7.centos.noarch centreon-broker-storage-19.10.2-1.el7.centos.x86_64 centreon-plugin-Cloud-Prometheus-Api-20200602-094050.el7.centos.noarch centreon-trap-19.10.4-1.el7.centos.noarch centreon-plugin-Applications-Protocol-Dns-20191219-152203.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Database-20191219-152203.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Poller-20191219-152203.el7.centos.noarch centreon-connector-19.10.0-1.el7.centos.x86_64 centreon-plugin-Applications-Monitoring-Centreon-Map4-Jmx-20191219-152203.el7.centos.noarch centreon-connector-perl-19.10.0-1.el7.centos.x86_64 centreon-broker-core-19.10.2-1.el7.centos.x86_64 centreon-plugin-Cloud-Prometheus-Kubernetes-Api-20200602-094050.el7.centos.noarch centreon-plugin-Operatingsystems-Windows-Snmp-20191219-152203.el7.centos.noarch centreon-agent-rh7-afkl-1.0-16259.noarch centreon-broker-19.10.2-1.el7.centos.x86_64 centreon-plugin-Applications-Protocol-Http-20191219-152203.el7.centos.noarch centreon-common-19.10.4-1.el7.centos.noarch centreon-plugin-Applications-Monitoring-Centreon-Central-20191219-152203.el7.centos.noarch centreon-poller-centreon-engine-19.10.4-1.el7.centos.noarch centreon-engine-19.10.8-4.el7.centos.x86_64 centreon-plugin-Applications-Protocol-Ftp-20191219-152203.el7.centos.noarch centreon-perl-libs-19.10.4-1.el7.centos.noarch centreon-plugin-Hardware-Printers-Generic-Snmp-20191219-152203.el7.centos.noarch centreon-clib-19.10.0-6.el7.centos.x86_64 centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp-20191219-152203.el7.centos.noarch centreon-engine-daemon-19.10.8-4.el7.centos.x86_64 centreon-plugin-Applications-Protocol-Ldap-20191219-152203.el7.centos.noarch centreon-connector-ssh-19.10.0-1.el7.centos.x86_64 centreon-plugin-Operatingsystems-Linux-Snmp-20191219-152203.el7.centos.noarch centreon-broker-cbmod-19.10.2-1.el7.centos.x86_64 centreon-plugin-Cloud-Kubernetes-Api-20200602-094050.el7.centos.noarch

Many thx for your help and especially for any leads that could help me to find a way to fix it ^^

nicnictout commented 2 years ago

Hi,

2) why even with filtering pollers IP with an inexistant IP, client still accepts requests from pollers i read again carefully nrpe.cfg and see that this feature is not available when nrpe is launched by inetd ou xinetd. I choose to update my hosts.allow file to make it works.

Still investigating about script launched without any poller calling