Nagios XI "Operations Screen"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Nagios XI "Operations Screen"

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI "Operations Screen"

Post 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";
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: Nagios XI "Operations Screen"

Post 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";
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI "Operations Screen"

Post by ssax »

You were missing the _ between state and change.

Code: Select all

$query .= " ORDER BY nagios_servicestatus.last_state_change DESC";
Locked