Page 1 of 1

NCPA Check Interval not working

Posted: Fri May 17, 2024 2:19 pm
by BanditBBS
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:

Code: Select all

[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.

Re: NCPA Check Interval not working

Posted: Mon May 20, 2024 10:28 am
by bbahn
Hello @BanditBBS,

Thanks for letting us know about this issue. I will file an issue on the NCPA github and will investigate it when I get time.

Re: NCPA Check Interval not working

Posted: Mon May 20, 2024 1:20 pm
by snapier3
I ran into the same issue and think I found the issue.
https://github.com/NagiosEnterprises/ncpa/issues/1169

It's in nagioshandler.py, I was able to workaround this by modifying the service check definition in the passive config.
passive-workaround.PNG
Hope this helps until they get it patched...

Re: NCPA Check Interval not working

Posted: Wed Aug 07, 2024 9:56 am
by bbahn
@BanditBBS,

I have been unable to replicate this issue. Are you sure you restarted NCPA after configuring your passive interval and that you aren't just looking at how often the log is updated per check? The ncpa_passive.log will be updated every minute for each check, but it only sends at the specified intervals.

As I have been unable to replicate this issue, I will close the issue if I don't hear of anyone encountering this within two weeks.