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.
NagiosXI set alert as Critical instead of Warning.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI set alert as Critical instead of Warning.
Hi @nshah,
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
The hosts return different state types, UP, DOWN, or UNREACHABLE, so I think that's why the CSS is not getting applied, Try: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.
Code: Select all
<style>.UP {color:green;}.DOWN {color:red;}.UNREACHABLE {color:orange}</style>
Regards,
Benjamin
Reference:
https://assets.nagios.com/downloads/nag ... hecks.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI set alert as Critical instead of Warning.
That was really helpful.Thank you!
Please go ahead and mark this post as resolved.
Thank you,
Nish
Please go ahead and mark this post as resolved.
Thank you,
Nish
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NagiosXI set alert as Critical instead of Warning.
Locking threadnshah wrote:That was really helpful.Thank you!
Please go ahead and mark this post as resolved.
Thank you,
Nish