show all failed connections in report
This commit is contained in:
@@ -14,8 +14,10 @@ register_admin_task({
|
|||||||
|
|
||||||
ajax '/ajax/content/admin/timedoutdevices' => require_role admin => sub {
|
ajax '/ajax/content/admin/timedoutdevices' => require_role admin => sub {
|
||||||
my @results = schema('netdisco')->resultset('DeviceSkip')->search({
|
my @results = schema('netdisco')->resultset('DeviceSkip')->search({
|
||||||
deferrals => { '>=' => setting('workers')->{'max_deferrals'} }
|
deferrals => { '>' => 0 }
|
||||||
},{ order_by => { -asc => [qw/backend device/] } })->hri->all;
|
},{ order_by =>
|
||||||
|
[{ -desc => 'deferrals' }, { -asc => [qw/device backend/] }]
|
||||||
|
})->hri->all;
|
||||||
|
|
||||||
content_type('text/html');
|
content_type('text/html');
|
||||||
template 'ajax/admintask/timedoutdevices.tt', {
|
template 'ajax/admintask/timedoutdevices.tt', {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="nd_center-cell">Poller Host</th>
|
<th class="nd_center-cell">Poller Host</th>
|
||||||
<th class="nd_center-cell">Device</th>
|
<th class="nd_center-cell">Device</th>
|
||||||
|
<th class="nd_center-cell">Failed Connections</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
<td class="nd_center-cell">[% row.backend | html_entity %]</td>
|
<td class="nd_center-cell">[% row.backend | html_entity %]</td>
|
||||||
<td class="nd_center-cell"><a class="nd_linkcell"
|
<td class="nd_center-cell"><a class="nd_linkcell"
|
||||||
href="[% uri_for('/device') %]?q=[% row.device | uri %]">[% row.device | html_entity %]</a></td>
|
href="[% uri_for('/device') %]?q=[% row.device | uri %]">[% row.device | html_entity %]</a></td>
|
||||||
|
<td class="nd_center-cell">[% row.deferrals | html_entity %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user