XI: method to poll values for "Monitoring Engine Event Queue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
inversecow
Posts: 44
Joined: Wed Sep 25, 2019 4:17 pm

XI: method to poll values for "Monitoring Engine Event Queue

Post by inversecow »

Ahoy folks,

We maintain several Nagios XI instances within our ENVs (some large deployments, some small).
Through this, we have developed a sort of common interface for the "Dashboard" view of XI, which includes "Monitoring Engine Event Queue: Scheduled Events Over Time".
In our dashboard view, this typically takes the form of a yellow graph of sorts (we affectionately refer to as the "banana road"), but realize it can be green or other colors also.

Is there a way to query this widget (or its data-source) via some CLI or API method(s)?
I ask, in the context of wanting to monitor this "queue" for performance reasons (so we may respond if required).

Please consider and advise?

Nagios XI 5.8.x release series (5.8.6 at current writing)
MariaDB 5.5.64 (mix of on-box && off-box depending on ENV)

Thank you,

- Rowan
“And who better understands the Unix-nature?” Master Foo asked.
“Is it he who writes the ten thousand lines, or he who, perceiving the emptiness of the task, gains merit by not coding?”
Master Foo - The ten thousand Lines
Unix Koans of Master Foo
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI: method to poll values for "Monitoring Engine Event Q

Post by ssax »

I'm investigating and will update shortly.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: XI: method to poll values for "Monitoring Engine Event Q

Post by ssax »

I found this that can check the nagiostats output:

https://exchange.nagios.org/directory/P ... 29/details

It basically parses the output from this command:

Code: Select all

/usr/local/nagios/bin/nagiostats
There isn't an easy way to monitor the exact SQL query that the Monitoring Engine Event Queue is using in order to build that graph as they are just datapoints.