Page 1 of 1
Nagios XI "Operations Screen"
Posted: Fri Feb 27, 2015 5:18 am
by michaelli
Hi,
In Operations screen, it is sort by "Host" for every 10 seconds. Is it possible to sort by "Lastcheck" so that we can get the alert in the first moment?
Re: Nagios XI "Operations Screen"
Posted: Fri Feb 27, 2015 10:55 am
by ssax
There is no official way to change the sort order in the operations screen, a future version may have a sorting mechanism implemented. You are welcome to create a feature request at
http://tracker.nagios.com.
An solution that should work for you is to follow the instructions below.
* Any upgrades that occur will overwrite the file reverting any of your changes, you would have to redo it after every upgrade.
* If you do need additional modifications, we do offer custom development for significant changes.
Edit the following file:
Code: Select all
/usr/local/nagiosxi/html/includes/components/opscreen/merlin.php
Depending on your version,
around line 276 (you may have to search for it), you can change:
Code: Select all
$query .= " ORDER BY obj1.name1 ASC, obj1.name2 ASC";
To:
Code: Select all
$query .= " ORDER BY nagios_servicestatus.last_check DESC";
Re: Nagios XI "Operations Screen"
Posted: Mon Mar 23, 2015 11:31 pm
by michaelli
Hi!
If I want to sort by "Last statechange", I have change to below setting but failed. What is the correct syntax to display order by last statechange
$query .= " ORDER BY nagios_servicestatus.last_statechange DESC";
Re: Nagios XI "Operations Screen"
Posted: Tue Mar 24, 2015 9:41 am
by ssax
You were missing the _ between state and change.
Code: Select all
$query .= " ORDER BY nagios_servicestatus.last_state_change DESC";