I'm currently using Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Beemsty
Posts: 1
Joined: Tue Sep 10, 2024 10:51 pm

I'm currently using Nagios xi

Post by Beemsty »

I'm currently using Nagios xi, and I have configured three states of alerts: CRITICAL, WARNING, and OK. However, I have a specific requirement to add a custom hard state called FATAL for extreme issues, such as when the server or a specific component (in this case, a Java jar component) is down. Presently, when the host is down, I receive a "DOWN" message, and when the component is down, I receive a "URL Status is CRITICAL" notification. But I want to modify it to display "URL Status is FATAL" instead. I would like to know if it's possible to add this custom state in Nagios and how I can accomplish it.
bbahn
Posts: 320
Joined: Thu Jan 12, 2023 5:42 pm

Re: I'm currently using Nagios xi

Post by bbahn »

Hello @Beemsty,

You can customize your notification output in Admin->Users->Notification Management. You can change the subject and the contents of the notification there and can use the various Nagios macros (as can be seen here: Standard Macros in Nagios).

There is no "FATAL" option, but %HOSTSTATE% will be filled by UP/DOWN/UNREACHABLE, which is what you are looking for.

The reason your notifications are showing CRITICAL instead of DOWN is because the service is in a CRITICAL state, but the the host is still up. Any host notifications will show %type% Host Alert - %host% is %hoststate% by default (i.e. ... - Nagios.com is UP), so unless it has been altered, that will be the notification received.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.