Page 1 of 1

Warning to Critical output change

Posted: Fri Dec 11, 2020 11:35 am
by G_Deshpande
Hello There,

Is it possible to have output in Nagios as 'Critical' for 'Warning' alerts? so can we convert warning alert to critical?
Because for certain services we are getting output as critical & for some as warning, so instead of that warning alert should be treated as critical & we should get output as critical.
Where we need to make changes to get desired output?

Note- there is no separate threshold mentioned for such warning service alerts, they are log file monitoring alerts configured with the help NRPE wizard.

Screenshot attached for your reference.

Re: Warning to Critical output change

Posted: Fri Dec 11, 2020 4:30 pm
by ssax
It depends on what plugin you're using for them and if they are passive checks, are they passive checks or active checks? Which plugin are they using?

If it's an active check or a linux server, one option would be to use the negate plugin in front of your current command in Configure > Core Config Manager > Commands (or on the remote agent passive definition) to change the warning to critical:

Code: Select all

$USER1$/negate -w CRITICAL -s $USER1$/yourplugin ... ...  ... ... 

Re: Warning to Critical output change

Posted: Mon Dec 14, 2020 10:18 am
by G_Deshpande
Thanks for revert on this topic, this is for active checks.
Commands/plug-in we are using it-
check_nrpe
check_xi_service_http
check_xi_service_http_cert

And we are not using any warning threshold or something like that.

I think negate feature will not serve the purpose, what best solution you can suggest here?

Re: Warning to Critical output change

Posted: Tue Dec 15, 2020 6:39 pm
by ssax
It's up to the plugin if it has default warning/critical thresholds. So check_nrpe is reaching out and calling another plugin it's the end plugin that matters for the default thresholds.

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

Re: Warning to Critical output change

Posted: Wed Dec 16, 2020 2:49 am
by G_Deshpande
Thanks for the revert, kindly ignore this, i have sorted this out.

You can close the thread.

Re: Warning to Critical output change

Posted: Wed Dec 16, 2020 9:47 am
by scottwilkerson
G_Deshpande wrote:Thanks for the revert, kindly ignore this, i have sorted this out.

You can close the thread.
Locking thread