Home » Categories » Multiple Categories

Nagios XI - Create Host And Service URLs With Filters


This article will show you how to create a host or service URL in Nagios XI that is restricted to a set of filters.

First you will be shown how to show services in a WARNING or CRITICAL state.

Then you will be shown how to restrict this to only services in a HARD state.


How To

Open Nagios XI

On the Home menu, under Quick View click Tactical Overview

Right click on the services column X Critical and select Open Link in New Tab

Look at the url, it ends with &servicestatustypes=16

Do the same for the services column X Warning and select Open Link in New Tab

Look at the url, it ends with &servicestatustypes=4

4+ 16 = 20

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



All of these numbers are defined in the file /usr/local/nagiosxi/html/includes/constants.inc.php

define("SERVICESTATE_OK", 2);
define("SERVICESTATE_ANY", 31);


In relation to only showing services in a HARD state, looking in the file constants.inc.php we find the following:



You can add &serviceattr=262144 to the URL and it will only show the HARD states. Your final URL would look something like:






Final Thoughts

For any support related questions please visit the Nagios Support Forums at:


3 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - SNMP Trap Hardening
Viewed 4933 times since Tue, Nov 6, 2018
Nagios XI - How To Write Custom Components
Viewed 2282 times since Thu, Jan 28, 2016
Nagios XI - Group Deployment of Service Checks - NWC15
Viewed 2354 times since Mon, Feb 8, 2016
Nagios Core - Understanding retention.dat and modified_attributes
Viewed 4939 times since Fri, Jul 15, 2016
Nagios XI - Standard Edition Reports
Viewed 1299 times since Tue, Jul 18, 2017
Nagios XI - Redundancy And Security Planning
Viewed 1490 times since Sun, Mar 25, 2018
Nagios XI - Installing Dashlets
Viewed 1643 times since Wed, Jan 27, 2016
Nagios XI - Integrating NagVis With Nagios XI
Viewed 2165 times since Thu, Jan 28, 2016
Nagios XI - Exploring the Graph Explorer
Viewed 2001 times since Mon, Aug 3, 2015
Nagios XI - Utilizing a RAM Disk in Nagios XI
Viewed 2186 times since Thu, Jan 28, 2016