Operation Center

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosxi_dxc
Posts: 3
Joined: Tue Dec 29, 2020 6:24 am

Operation Center

Post by nagiosxi_dxc »

Hi,
I would also like to sort the "Status Information" field in "Operations Center".
I think the part of the code that needs to be changed, in the nocscreenapi.php script, is this:

$table = "
<div id='servicediv'>
<table id='servicetable' class='tablesorter servicestatustable table table-condensed table-striped table-bordered'><thead>
<tr>
<th class='sort-header host_order $sort_header'>" . _("Host Name") . "</th>";
$sort_header = "";
if ($service_orderby == 'service_description:a') $sort_header = "headerSortDown";
if ($service_orderby == 'service_description:d') $sort_header = "headerSortUp";
$table .= "<th class='sort-header service_order $sort_header'>" . _("Service") . "</th>";
$sort_header = "";
if ($service_orderby == 'last_state_change:a') $sort_header = "headerSortDown";
if ($service_orderby == 'last_state_change:d') $sort_header = "headerSortUp";
$table .= "<th><div class='sort-header duration_order $sort_header duration'>" . _("Duration") . "</div></th>
$sort_header = "";
if ($service_orderby == 'state:a') $sort_header = "headerSortDown";
if ($service_orderby == 'state:d') $sort_header = "headerSortUp";
$table .= "<th><div class='sort-header state_order $sort_header state'>" . _("Status Information") . "</div></th>

Can someone help me?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Operation Center

Post by ssax »

I apologize but implementing new functionality/helping you modify the source code to add new functionality isn't included as a part of support. Additionally, we also do not recommend you modify the source code as when you upgrade the changes you make will be overwritten and then you'll not want to upgrade because of those customizations. I can submit a request to development requesting they add that as a feature if you'd like?
nagiosxi_dxc
Posts: 3
Joined: Tue Dec 29, 2020 6:24 am

Re: Operation Center

Post by nagiosxi_dxc »

OK, thanks!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Operation Center

Post by ssax »

I have created the feature request:

Code: Select all

FR: XI - Operations Center - Add the functionality to sort by Status Information
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Let us know when we're okay to lock this up.
nagiosxi_dxc
Posts: 3
Joined: Tue Dec 29, 2020 6:24 am

Re: Operation Center

Post by nagiosxi_dxc »

Ok, thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Operation Center

Post by ssax »

Locking the topic, thank you!
Locked