mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add force10 mibs and os type detection. move per-os polling scripts from includes/polling/device-* to includes/polling/os/*
git-svn-id: http://www.observium.org/svn/observer/trunk@1442 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
34
includes/polling/os/junose.inc.php
Normal file
34
includes/polling/os/junose.inc.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
echo("Doing Juniper JunOSe ");
|
||||
|
||||
if(strpos($sysDescr, "olive")) {
|
||||
$hardware = "Olive";
|
||||
$serial = "";
|
||||
} else {
|
||||
$junose_hardware = snmp_get($device, "sysObjectID.0", "-Ovqs", "+Juniper-Products-MIB", "+".$config['install_dir']."/mibs/junose");
|
||||
$junose_version = snmp_get($device, "juniSystemSwVersion.0", "-Ovqs", "+Juniper-System-MIB", "+".$config['install_dir']."/mibs/junose");
|
||||
$junose_serial = "";
|
||||
|
||||
$hardware = "Juniper " . rewrite_junose_hardware($junose_hardware);
|
||||
}
|
||||
|
||||
list($version) = explode(" ", $junose_version);
|
||||
list(,$version) = explode("(", $version);
|
||||
list($features) = explode("]", $junose_version);
|
||||
list(,$features) = explode("[", $features);
|
||||
|
||||
echo("$hardware - $version - $features - $serial\n");
|
||||
|
||||
$cpurrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/junose-cpu.rrd";
|
||||
|
||||
#$cpu_cmd = $config['snmpget'] . " -m JUNIPER-MIB -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];
|
||||
#$cpu_cmd .= " .1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0";
|
||||
#$cpu_usage = trim(shell_exec($cpu_cmd));
|
||||
|
||||
include("hr-mib.inc.php");
|
||||
include("junose-atm-vp.inc.php");
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user