Page 1 of 1
View with only critical service/host alarms
Posted: Fri Feb 26, 2016 5:39 pm
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
Re: View with only critical service/host alarms
Posted: Sun Feb 28, 2016 9:54 pm
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.