From 1f222df73c01b8e641e0d7a8cbbcc18173af18b2 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 21 Feb 2010 05:09:58 +0000 Subject: [PATCH] perhaps it would be best to actually include the junos polling script. git-svn-id: http://www.observium.org/svn/observer/trunk@911 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/processors-junos.inc.php | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 includes/discovery/processors-junos.inc.php diff --git a/includes/discovery/processors-junos.inc.php b/includes/discovery/processors-junos.inc.php new file mode 100755 index 000000000..ced11c37a --- /dev/null +++ b/includes/discovery/processors-junos.inc.php @@ -0,0 +1,28 @@ + $entry) { + + if($entry['jnxOperatingDRAMSize'] && !strpos($entry['jnxOperatingDescr'], "sensor") && !strstr($entry['jnxOperatingDescr'], "fan")) { + echo($index . " " . $entry['jnxOperatingDescr'] . " -> " . $entry['jnxOperatingCPU'] . " -> " . $entry['jnxOperatingDRAMSize'] . "\n"); + + $usage_oid = ".1.3.6.1.4.1.2636.3.1.13.1.8." . $index; + $descr = $entry['jnxOperatingDescr']; + $usage = $entry['jnxOperatingCPU']; + if(!strstr($descr, "No") && !strstr($usage, "No") && $descr != "" ) { + discover_processor($valid_processor, $device, $usage_oid, $index, "junos", $descr, "1", $usage, NULL, NULL); + } + } + } +} ## End JUNOS Processors + + unset ($processors_array); + +?>