mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Cleanup poller include files (#4751)
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] == 'asa' || $device['os'] == 'pix') {
|
||||
echo "ALTIGA-MIB SSL VPN Statistics \n";
|
||||
|
||||
$tags = array();
|
||||
|
||||
$oids = array(
|
||||
'alSslStatsTotalSessions',
|
||||
'alSslStatsActiveSessions',
|
||||
'alSslStatsMaxSessions',
|
||||
'alSslStatsPreDecryptOctets',
|
||||
'alSslStatsPostDecryptOctets',
|
||||
'alSslStatsPreEncryptOctets',
|
||||
'alSslStatsPostEncryptOctets',
|
||||
);
|
||||
|
||||
$tags['rrd_def'] = array(
|
||||
'DS:TotalSessions:COUNTER:600:U:100000',
|
||||
'DS:ActiveSessions:GAUGE:600:0:U',
|
||||
'DS:MaxSessions:GAUGE:600:0:U',
|
||||
'DS:PreDecryptOctets:COUNTER:600:U:100000000000',
|
||||
'DS:PostDecryptOctets:COUNTER:600:U:100000000000',
|
||||
'DS:PreEncryptOctets:COUNTER:600:U:100000000000',
|
||||
'DS:PostEncryptOctets:COUNTER:600:U:100000000000',
|
||||
);
|
||||
|
||||
$data_array = snmpwalk_cache_oid($device, $proto, array(), 'ALTIGA-SSL-STATS-MIB');
|
||||
|
||||
$fields = array();
|
||||
|
||||
$got_value = false;
|
||||
foreach ($oids as $oid) {
|
||||
if (is_numeric($data_array[0][$oid])) {
|
||||
$value = $data_array[0][$oid];
|
||||
if ($value > 0) {
|
||||
$got_value = true;
|
||||
}
|
||||
} else {
|
||||
$value = '0';
|
||||
}
|
||||
$fields[$oid] = $value;
|
||||
}
|
||||
|
||||
if ($got_value) {
|
||||
data_update($device, 'altiga-ssl', $tags, $fields);
|
||||
}
|
||||
|
||||
unset($tags, $fields, $oids, $data_array);
|
||||
}//end if
|
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
require 'netstats-ip.inc.php';
|
||||
require 'netstats-tcp.inc.php';
|
||||
require 'netstats-udp.inc.php';
|
||||
require 'netstats-icmp.inc.php';
|
||||
require 'netstats-snmp.inc.php';
|
||||
require 'netstats-ip_forward.inc.php';
|
||||
require 'netstats/netstats-ip.inc.php';
|
||||
require 'netstats/netstats-tcp.inc.php';
|
||||
require 'netstats/netstats-udp.inc.php';
|
||||
require 'netstats/netstats-icmp.inc.php';
|
||||
require 'netstats/netstats-snmp.inc.php';
|
||||
require 'netstats/netstats-ip_forward.inc.php';
|
||||
|
||||
echo "\n";
|
||||
|
@@ -10,4 +10,4 @@ list($version,$features) = explode(':', $version);
|
||||
list(,$version) = explode(' ', $version);
|
||||
list($features) = explode(',', trim($features));
|
||||
|
||||
require 'includes/polling/netscaler-stats.inc.php';
|
||||
require 'includes/polling/os/misc/netscaler-stats.inc.php';
|
||||
|
@@ -679,22 +679,17 @@ foreach ($ports as $port) {
|
||||
// End Update PAgP
|
||||
// Do EtherLike-MIB
|
||||
if ($config['enable_ports_etherlike']) {
|
||||
include 'port-etherlike.inc.php';
|
||||
include 'ports/port-etherlike.inc.php';
|
||||
}
|
||||
|
||||
// Do ADSL MIB
|
||||
if ($config['enable_ports_adsl']) {
|
||||
include 'port-adsl.inc.php';
|
||||
include 'ports/port-adsl.inc.php';
|
||||
}
|
||||
|
||||
// Do PoE MIBs
|
||||
if ($config['enable_ports_poe']) {
|
||||
include 'port-poe.inc.php';
|
||||
}
|
||||
|
||||
// Do Alcatel Detailed Stats
|
||||
if ($device['os'] == 'aos') {
|
||||
include 'port-alcatel.inc.php';
|
||||
include 'ports/port-poe.inc.php';
|
||||
}
|
||||
|
||||
foreach ($port['update'] as $key => $val_check) {
|
||||
|
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
print_r(snmpwalk_cache_oid($device, 'system', array()));
|
||||
|
||||
print_r(snmp_cache_oid('system', $device, array()));
|
Reference in New Issue
Block a user