NCPA Check Interval not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

NCPA Check Interval not working

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
bbahn
Posts: 385
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA Check Interval not working

Post 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.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
snapier3
Posts: 144
Joined: Tue Apr 23, 2019 7:12 pm

Re: NCPA Check Interval not working

Post 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...
You do not have the required permissions to view the files attached to this post.
bbahn
Posts: 385
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA Check Interval not working

Post 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.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply