fix globals in discovery modules

git-svn-id: http://www.observium.org/svn/observer/trunk@2234 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-04 09:13:32 +00:00
parent 00121fd3f8
commit 57e292907a
8 changed files with 19 additions and 5 deletions
@@ -2,6 +2,8 @@
echo("Discovery protocols:");
global $link_exists;
$community = $device['community'];
if ($device['os'] == "ironware")
+1
View File
@@ -1,4 +1,5 @@
<?php
echo("Frequencies: ");
include_dir("includes/discovery/frequencies");
@@ -2,6 +2,8 @@
echo("IPv6 Addresses : ");
global $valid_v6;
$oids = snmp_walk($device, "ipAddressIfIndex.ipv6", "-Ln -Osq", "IP-MIB");
$oids = str_replace("ipAddressIfIndex.ipv6.", "", $oids);
$oids = str_replace("\"", "", $oids);
+2
View File
@@ -2,6 +2,8 @@
echo("Memory : ");
global $valid_mempool; ## FIXME PLEASE!
include_dir("includes/discovery/mempools");
### Remove memory pools which weren't redetected here
+1
View File
@@ -1,4 +1,5 @@
<?php
echo("Power: ");
include_dir("includes/discovery/power");
+2
View File
@@ -2,6 +2,8 @@
echo("Processors : ");
global $valid_processor;
include_dir("includes/discovery/processors");
## Last-resort discovery here
+2
View File
@@ -1,5 +1,7 @@
<?php
global $valid_sensor;
$valid_sensor = array();
echo("Sensors: ");
+2
View File
@@ -2,6 +2,8 @@
echo("Storage : ");
global $valid_storage;
include_dir("includes/discovery/storage");