Page 1 of 1

nagios check data augmentation

Posted: Fri Mar 23, 2018 3:19 am
by Olin
Hi there,
I have a requirement: use JMX protocols to check the data augmentation.
For example :
the first:
I check the failureCount of something , it was 100.
the second :
I check the failureCount of something , it was 200.
when 200-100 = 100 , the increment is 100.
I set threshold for increment to be 50, so 100 > 50 , it should be alerting.
how to configure in nagiosxi to implement this functionality?

Re: nagios check data augmentation

Posted: Fri Mar 23, 2018 9:24 am
by mcapra
Here's the official documentation for monitoring JMX with Nagios XI:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

As far as checking deltas over time, that sort of functionality would need to come from the plugin itself. Though I do know Nagios XI is getting an overhaul for it's performance data handling; Perhaps this comes with some new set of time-series based monitoring plugins? That would solve your problem if it is indeed future functionality.

In other words, in the case of the check_jmx plugin mentioned in the above documentation, it is unable to look at results in a time-series fashion. It would need to be modified to support that sort of functionality.

Here's a post I made a few days ago regarding "white-box" versus "black-box" monitoring strategies:
https://support.nagios.com/forum/viewto ... 16#p247216

Re: nagios check data augmentation

Posted: Fri Mar 23, 2018 1:04 pm
by cdienger
As @mcapra pointed out, we're not quite there with a time-series aware plugin and the jmx check would need to be modified. This isn't something we're able to do in support but the option is always available to you if you're so inclined. Below are some links to help with creating custom plugins if this is a route you'd like to explore:

https://exchange.nagios.org/directory/T ... pt/details
https://assets.nagios.com/downloads/nag ... inapi.html
https://assets.nagios.com/downloads/nag ... inapi.html
http://nagios-plugins.org/doc/guidelines.html

Re: nagios check data augmentation

Posted: Mon Mar 26, 2018 4:25 am
by Olin
thanks you , i will write shell to get the perfdata xml file and jmx values to comparison.