NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
176 stars 95 forks source link

Passive checks not respecting intervals #1169

Open ne-bbahn opened 1 month ago

ne-bbahn commented 1 month ago

https://support.nagios.com/forum/viewtopic.php?p=356948#p356948

Have a situation where I want to start using passive checks. I installed NCPA 3.1 onto my laptop just now to test. I have this in my checks section:

[passive checks]
%HOSTNAME%|__HOST__ = system/agent_version
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi

%HOSTNAME%|CPU Usage|3600 = cpu/percent --warning 60 --critical 80 --aggregate avg sleep is set to 300 in nrdp.cfg and every 5 minutes in unconfigured objects the last seen gets updated for the host, Disk and CPU. It doesn't seem to be respecting the 3600 interval for CPU.

SNapier commented 1 month ago

Looks like this is in the handler, the entities of the split will never total greater than two (one yes, two no) thus the default of 300 is being set due to the error. image

Was having same issue, thanks for posting.

SNapier commented 1 month ago

It seems you can work around this in the sort term by adding a another pipe in the service check definition. image