mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update Files and Added processor
This commit is contained in:
11
includes/discovery/processors/datacom.inc.php
Normal file
11
includes/discovery/processors/datacom.inc.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if ($device['os'] == "datacom") {
|
||||
echo("Datacom Switch : ");
|
||||
$descr = "Processor";
|
||||
$usage = snmp_get($device, "swCpuUsage.0", "-Ovq", "DMswitch-MIB");
|
||||
echo $usage."\n";
|
||||
if (is_numeric($usage)) {
|
||||
discover_processor($valid['processor'], $device, "swCpuUsage", "0", "datacom", $descr, "1", $usage, NULL, NULL);
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.3709")) { $os = "datacom"; }
|
||||
}
|
||||
$hardware = "Datacom ".str_replace("dmSwitch","DM",snmp_get($device, "swChassisModel.0", "-Ovq", "DMswitch-MIB"));
|
||||
$version = snmp_get($device, "swFirmwareVer.1", "-Ovq", "DMswitch-MIB");
|
||||
$features = snmp_get($device, "sysDescr.0", "-Oqv", "SNMPv2-MIB");
|
||||
$serial = snmp_get($device, "DMswitch-MIB::swSerialNumber.1", "-Ovq","DMswitch-MIB");
|
||||
?>
|
3
includes/polling/processors/datacom.inc.php
Normal file
3
includes/polling/processors/datacom.inc.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$proc = snmp_get($device, "swCpuUsage.0", "-Ovq", "DMswitch-MIB");
|
||||
?>
|
Reference in New Issue
Block a user