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