Page 2 of 2

Re: NagiosXI set alert as Critical instead of Warning.

Posted: Fri Jan 15, 2021 3:02 pm
by nshah
Yes, You are right. It was the copy-paste issue. Everything is working fine after I change the variables.

The only thing that is not working is color coding for Host notification. For service notification, it is working perfectly but not the host notification.

I have CSS configured for host and service notification exactly the same. But somehow it is not working for hostnotification but working fine with service notification. And I am not able to figure out what am I missing here.

And thanks for the %hostsduration% that was a good catch and it is working after I made changes as you suggested.

Re: NagiosXI set alert as Critical instead of Warning.

Posted: Mon Jan 18, 2021 4:36 pm
by benjaminsmith
Hi @nshah,
I have CSS configured for host and service notification exactly the same. But somehow it is not working for host notification but working fine with service notification.
The hosts return different state types, UP, DOWN, or UNREACHABLE, so I think that's why the CSS is not getting applied, Try:

Code: Select all

<style>.UP {color:green;}.DOWN {color:red;}.UNREACHABLE {color:orange}</style>
for the host message (whatever colors you'd like) and let me know if that works.

Regards,
Benjamin

Reference:
https://assets.nagios.com/downloads/nag ... hecks.html

Re: NagiosXI set alert as Critical instead of Warning.

Posted: Mon Jan 18, 2021 6:09 pm
by nshah
That was really helpful.Thank you!

Please go ahead and mark this post as resolved.

Thank you,
Nish

Re: NagiosXI set alert as Critical instead of Warning.

Posted: Tue Jan 19, 2021 8:27 am
by scottwilkerson
nshah wrote:That was really helpful.Thank you!

Please go ahead and mark this post as resolved.

Thank you,
Nish
Locking thread