mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
junos processor detection change
git-svn-id: http://www.observium.org/svn/observer/trunk@1542 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -15,7 +15,7 @@ if($device['os'] == "junos")
|
|||||||
{
|
{
|
||||||
foreach ($processors_array[$device['device_id']] as $index => $entry)
|
foreach ($processors_array[$device['device_id']] as $index => $entry)
|
||||||
{
|
{
|
||||||
if ($entry['jnxOperatingDRAMSize'] && !strpos($entry['jnxOperatingDescr'], "sensor") && !strstr($entry['jnxOperatingDescr'], "fan"))
|
if ($entry['jnxOperatingDescr'] == "Routing Engine" || $entry['jnxOperatingDRAMSize'] && !strpos($entry['jnxOperatingDescr'], "sensor") && !strstr($entry['jnxOperatingDescr'], "fan"))
|
||||||
{
|
{
|
||||||
if ($debug) { echo($index . " " . $entry['jnxOperatingDescr'] . " -> " . $entry['jnxOperatingCPU'] . " -> " . $entry['jnxOperatingDRAMSize'] . "\n"); }
|
if ($debug) { echo($index . " " . $entry['jnxOperatingDescr'] . " -> " . $entry['jnxOperatingCPU'] . " -> " . $entry['jnxOperatingDRAMSize'] . "\n"); }
|
||||||
$usage_oid = ".1.3.6.1.4.1.2636.3.1.13.1.8." . $index;
|
$usage_oid = ".1.3.6.1.4.1.2636.3.1.13.1.8." . $index;
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
list($hardware, $features, $version) = explode(",", str_replace(", ", ",", $sysDescr));
|
list($hardware, $features, $version) = explode(",", str_replace(", ", ",", $sysDescr));
|
||||||
list($version) = explode("(", $version);
|
list($version) = explode("(", $version);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$cpurrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/procurve-cpu.rrd";
|
$cpurrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/procurve-cpu.rrd";
|
||||||
$memrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/procurve-mem.rrd";
|
$memrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/procurve-mem.rrd";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user