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.
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
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
// PSEUDO-STATES (USED IN LINKS, ETC)
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:
For any support related questions please visit the Nagios Support Forums at:
|Posted by: tlea - Sun, Feb 28, 2016 at 10:18 PM. This article has been viewed 5525 times.|
|Online URL: https://support.nagios.com/kb/article/nagios-xi-create-host-and-service-urls-with-filters-479.html|
Powered by PHPKB (Knowledge Base Software)