mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Add PanOS and ArubaOS support, patch by vendis / Christer.
git-svn-id: http://www.observium.org/svn/observer/trunk@2806 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// ArubaOS (MODEL: Aruba3600), Version 6.1.2.2 (29541)
|
||||
$badchars = array("(", ")", ",");
|
||||
list(,,$hardware,,$version,) = str_replace($badchars, "", explode (" ", $poll_device[sysDescr]));
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$hardware = trim(snmp_get($device, "1.3.6.1.4.1.25461.2.1.2.2.1.0", "-OQv", "", ""),'" ');
|
||||
$version = trim(snmp_get($device, "1.3.6.1.4.1.25461.2.1.2.1.1.0", "-OQv", "", ""),'" ');
|
||||
$serial = trim(snmp_get($device, "1.3.6.1.4.1.25461.2.1.2.1.3.0", "-OQv", "", ""),'" ');
|
||||
|
||||
# list(,,,$hardware) = explode (" ", $poll_device[sysDescr]);
|
||||
|
||||
$sessrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/panos-sessions.rrd";
|
||||
$sessions = snmp_get($device, "1.3.6.1.4.1.25461.2.1.2.3.3.0", "-Ovq");
|
||||
|
||||
if (is_numeric($sessions))
|
||||
{
|
||||
if (!is_file($sessrrd))
|
||||
{
|
||||
rrdtool_create($sessrrd," --step 300 DS:sessions:GAUGE:600:0:3000000 \
|
||||
RRA:AVERAGE:0.5:1:800 RRA:AVERAGE:0.5:6:800 RRA:AVERAGE:0.5:24:800 RRA:AVERAGE:0.5:288:800 \
|
||||
RRA:MAX:0.5:1:800 RRA:MAX:0.5:6:800 RRA:MAX:0.5:24:800 RRA:MAX:0.5:288:800");
|
||||
}
|
||||
rrdtool_update($sessrrd,"N:$sessions");
|
||||
$graphs['panos_sessions'] = TRUE;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user