Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passive checks not respecting intervals #1169

Open
ne-bbahn opened this issue May 20, 2024 · 2 comments
Open

Passive checks not respecting intervals #1169

ne-bbahn opened this issue May 20, 2024 · 2 comments

Comments

@ne-bbahn
Copy link
Contributor

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
Copy link

SNapier commented May 20, 2024

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
Copy link

SNapier commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants