View with only critical service/host alarms

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

View with only critical service/host alarms

Post by comfone »

Hi All
We are using the Nagios XI 5.2.3 appliance.
I need to configure a view where only the critical or warning services/hosts and where the notification is not turned off are displayed.
Can you please tell me how to build such a view?
Thank you
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: View with only critical service/host alarms

Post by Box293 »

Go into the Tactical Overview
Right click on the services column X Critical and select open in a new tab
Look at the url, it ends with &servicestatustypes=16

The the same for the services column X Warning and select open in a new tab
Look at the url, it ends with &servicestatustypes=4

4+ 16 = 20

Try changing the URL to &servicestatustypes=20 and now you'll see Warning and Critical on the one page.

If you look in this file /usr/local/nagiosxi/html/includes/constants.inc.php you'll find this:

Code: Select all

// PSEUDO-STATES (USED IN LINKS, ETC)
define("SERVICESTATE_PENDING", 1);
define("SERVICESTATE_OK", 2);
define("SERVICESTATE_WARNING", 4);
define("SERVICESTATE_UNKNOWN", 8);
define("SERVICESTATE_CRITICAL", 16);
define("SERVICESTATE_ANY", 31);
However I don't believe there is a way to use this to display objects that don't have the notifications turned off.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked