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.
Warning to Critical output change
-
G_Deshpande
- Posts: 19
- Joined: Tue Mar 17, 2020 1:50 pm
Warning to Critical output change
You do not have the required permissions to view the files attached to this post.
Re: Warning to Critical output change
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:
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
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?
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
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.
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
Thanks for the revert, kindly ignore this, i have sorted this out.
You can close the thread.
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
Locking threadG_Deshpande wrote:Thanks for the revert, kindly ignore this, i have sorted this out.
You can close the thread.