Open joschi99 opened 7 months ago
are there any news on this?
Hello :)
This is not a voluntarily generated OK in fact the result table is empty but no error is reported (which in itself is a problem I completely agree). At the end of the result parse (line 372) something like this should be added:
if (scalar(keys %{$self->{databases}}) <= 0 && defined($self->{option_results}->{filter_database}) && $self->{option_results}->{filter_database} ne '') {
$self->{output}->add_option_msg(short_msg => "No database matching with filter: ".$self->{option_results}->{filter_database});
$self->{output}->option_exit();
}
(This is a proposition that I was not able to test it on my own.)
If you are monitor a non existing MS SQL database using the option
--filter-database=
the plugin returns OK, when you filter for a non existing database. Example:This is a big issue and in this case the plugin should return CRITICAL or UNKNOWN, but not OK.