NagiosXI set alert as Critical instead of Warning.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nshah
Posts: 20
Joined: Tue Oct 01, 2019 3:47 pm

Re: NagiosXI set alert as Critical instead of Warning.

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI set alert as Critical instead of Warning.

Post 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
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!
nshah
Posts: 20
Joined: Tue Oct 01, 2019 3:47 pm

Re: NagiosXI set alert as Critical instead of Warning.

Post by nshah »

That was really helpful.Thank you!

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.

Post by scottwilkerson »

nshah wrote:That was really helpful.Thank you!

Please go ahead and mark this post as resolved.

Thank you,
Nish
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked