Page 1 of 1

Operation Center

Posted: Fri May 21, 2021 7:13 am
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?

Re: Operation Center

Posted: Fri May 21, 2021 4:44 pm
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?

Re: Operation Center

Posted: Mon May 24, 2021 2:12 am
by nagiosxi_dxc
OK, thanks!

Re: Operation Center

Posted: Mon May 24, 2021 10:34 am
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.

Re: Operation Center

Posted: Wed May 26, 2021 8:35 am
by nagiosxi_dxc
Ok, thanks

Re: Operation Center

Posted: Thu May 27, 2021 10:46 am
by ssax
Locking the topic, thank you!