Feature: Added alerts output to capture system (#4574)

* Feature: Added alerts output to capture system

* Renamed $output to $content

* removed duplicate functions
This commit is contained in:
Neil Lathwood
2016-09-26 22:27:27 +01:00
committed by Tony Murray
parent 601074606d
commit 9936aa77ff
5 changed files with 92 additions and 14 deletions

View File

@@ -36,13 +36,15 @@ if (!is_admin()) {
<li role="presentation" class="active"><a data-toggle="tab" href="#discovery">Discovery</a></li>
<li role="presentation"><a data-toggle="tab" href="#poller">Poller</a></li>
<li role="presentation"><a data-toggle="tab" href="#snmp">SNMP</a></li>
<li role="presentation"><a data-toggle="tab" href="#alerts">Alerts</a></li>
</ul>
<div class="tab-content">
<?php
$tabs = array(
'discovery' => 'ajax_output.php?id=capture&format=text&type=discovery&hostname='.$device['hostname'],
'poller' => 'ajax_output.php?id=capture&format=text&type=poller&hostname='.$device['hostname'],
'snmp' => 'ajax_output.php?id=capture&format=text&type=snmpwalk&hostname='.$device['hostname'],
'poller' => 'ajax_output.php?id=capture&format=text&type=poller&hostname='.$device['hostname'],
'snmp' => 'ajax_output.php?id=capture&format=text&type=snmpwalk&hostname='.$device['hostname'],
'alerts' => 'ajax_output.php?id=query&format=text&type=alerts&hostname='.$device['hostname'],
);
foreach ($tabs as $tab => $url) {