Open joschi99 opened 1 year ago
Have you tried the collection mode ?
How it works? Did you have an example?
You have an example here: https://github.com/centreon/centreon-plugins/pull/3112
Hello :)
This question seems old, but can you tell us if the example given by Quentin help you to do what you expected? Thank you for your understanding.
Hi @lucie-dubrunfaut, I don't think that the example from Quentin is the right solution. Using the mode=sql allows to send a custom SQL and to define numeric thresholds for the returned values. But if the returned value is "empty", then a error (maybe UNKNOWN) should be raised, because you cannot deal with numeric thresholds and empty value
Hello :)
Can you give us some examples of commands and returns with the --debug
option to illustrate the situations described above? When you talk about thresholds on NULL or missing SQL returns, you mean WARNING/CRITICAL choices?
we have some situation, where a custom SQL could return no values. It should be nice if we can set thresholds not only on the numeric values but also on NULL or missing SQL returns.