Skip to main content

Good morning,

I don't understand why when I query an OID with the plugin, it doesn't go critical as requested.
Am I doing it wrong? the format is not correct?
If anyone can guide me please :)

it's always OK

Thank you in advance for your help,
Sincerely

 

Hi,

For threshold and ranges, you should read that nagios page :

https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT

Try 3 instead 2 in CRITICAL field.

Regards


Thank you for this feedback, 
I didn't understand that they were thresholds!
The problem is that my oid returns: 2=OK and 1=KO...
How can I act on these results please?
Sincerely


Hi,

 

Centreon documentation :

https://docs.centreon.com/docs/24.04/monitoring/metrics/#syntax-of-metric-thresholds

 

 

You can try 2:2. It will be OK when return value is 2 and CRITICAL when return value is different.

 

Regards.


Thank you very much for your help,
It works perfectly now, I have a lot of trouble with syntax and regex 🙂.

Thank you and the entire community.
Sincerely


Reply