check_jmx state

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mansonli
Posts: 60
Joined: Wed Aug 05, 2020 1:54 am

check_jmx state

Post by mansonli »

What're possible states of check_jmx return? How to send out alert if state is changed except "connection refused"?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_jmx state

Post by cdienger »

Nagios is only concerned with 4 states:

https://assets.nagios.com/downloads/nag ... inapi.html

"connection refused" is not a state but is output that a plugin can return with a state(exit code).

If you wish to change the state that is returned with a message, then you'd need to either modify the plugin or use a wrapper script to call the plugin, inspect the results, and make any necessary modifications. The /usr/local/nagios/libexec/negate plugin is an example plugin that can be used to change the state and output of a plugin, but it only does this based on the state returned by the called plugin and not by the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked