Is BPI "XML Cache Threshold" worth changing?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Is BPI "XML Cache Threshold" worth changing?

Post by eloyd »

Does changing the BPI paramater "XML Cache Threshold" affect the delay in how long it takes BPI to calculate that a group has changed state (and thus, alert)? And I'm assuming that this value is in seconds, since the PHP code is using filemtime, but there is no such indication in the documentation or help text. I'd suggest adding that.

Basically, we have a customer that thinks their BPI group logic takes too long to notify them when something is amiss. I'm wondering if changing this setting from the default of 90 seconds to something like 30 seconds would fix that?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Is BPI "XML Cache Threshold" worth changing?

Post by ssax »

From looking at the code it does look like that is the case, I'll create a documentation task for it.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Is BPI "XML Cache Threshold" worth changing?

Post by ssax »

Actually, it does seem to talk about it here:
bpi.xml

When service checks are run, the first time a BPI service check is run the BPI Group states are dumped to the bpi.xml file. After that
the service checks check the file age of the XML file, and if the age threshold is exceeded, a new file will be made. Otherwise, the
check plugin will used the cached results in the XML file. This file can also be used as a data API for use with external applications.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Is BPI "XML Cache Threshold" worth changing?

Post by eloyd »

I did read that, but it's not clear how often the BPI status itself was updated, just the XML file. So I'm guessing that you're saying that if at time zero, two service checks go bad, and they're part of a BPI group, that the XML Cache Threshold value determines how many seconds until the BPI group goes bad, too?

The way the help is written, it is not clear to me that that is the case, and that it is possible that the XML file is simply updated every 90 seconds by default, but the BPI status update could be some random number, or it could be instantaneous.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Is BPI "XML Cache Threshold" worth changing?

Post by ssax »

I've created the documentation task with a link back to here:

Code: Select all

Task Detail: BPI - Explain in more detail about BPI XML cache and its effect on BPI checks
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Is BPI "XML Cache Threshold" worth changing?

Post by Box293 »

The following KB article was created that explains the XML Cache Threshold in detail:

https://support.nagios.com/kb/article.php?id=568
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked