Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect CRITICAL alert assignment #44

Closed
henriknoerr opened this issue Sep 12, 2019 · 1 comment
Closed

incorrect CRITICAL alert assignment #44

henriknoerr opened this issue Sep 12, 2019 · 1 comment
Assignees

Comments

@henriknoerr
Copy link

I have a usability request regarding the CRITICAL alert when polling VPX'es for lbvserver and csvserver state which does not have any configured. This is reported as critical.

I think this should be customizable. I have manually edited the script to report OK.
if ( !scalar($response) ) {
$plugin->nagios_exit( OK, $plugin->opts->command . ': no ' . $plugin->opts->objecttype . ' found in configuration' );
}

This allows me to poll all VPX'es for lb/cs state, without knowing whether the VPX hold lb/csvservers or not, but still ensuring that future VIPs are monitored.

/Henrik

@slauger
Copy link
Owner

slauger commented Sep 19, 2019

Fixed in develop. The basic state check for all objects (w/o an given objectname) does now return OK when the response is empty. If an objectname is set and the given object is not found, the plugin will still return CRITICAL.

@slauger slauger self-assigned this Sep 19, 2019
@slauger slauger closed this as completed Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants