Warning to Critical output change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
G_Deshpande
Posts: 19
Joined: Tue Mar 17, 2020 1:50 pm

Warning to Critical output change

Post 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.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Warning to Critical output change

Post 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 ... ...  ... ... 
G_Deshpande
Posts: 19
Joined: Tue Mar 17, 2020 1:50 pm

Re: Warning to Critical output change

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Warning to Critical output change

Post 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.
G_Deshpande
Posts: 19
Joined: Tue Mar 17, 2020 1:50 pm

Re: Warning to Critical output change

Post by G_Deshpande »

Thanks for the revert, kindly ignore this, i have sorted this out.

You can close the thread.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Warning to Critical output change

Post by scottwilkerson »

G_Deshpande wrote:Thanks for the revert, kindly ignore this, i have sorted this out.

You can close the thread.
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked