mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
make ipv6 polling standard
git-svn-id: http://www.observium.org/svn/observer/trunk@272 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,9 +39,12 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
## Discover Interfaces
|
||||
include("includes/discovery/interfaces.php");
|
||||
|
||||
## Discover IP Addresses
|
||||
## Discover IPv4 Addresses
|
||||
include("includes/discovery/ipaddresses.php");
|
||||
|
||||
## Discovery IPv6 Addresses
|
||||
include("includes/discovery/ipv6-addresses.php");
|
||||
|
||||
## Discover Temperatures
|
||||
include("includes/discovery/temperatures.php");
|
||||
|
||||
|
11
ipv6.php → includes/discovery/ipv6-addresses.php
Executable file → Normal file
11
ipv6.php → includes/discovery/ipv6-addresses.php
Executable file → Normal file
@@ -1,13 +1,6 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
include("config.php");
|
||||
include("includes/functions.php");
|
||||
|
||||
$sql = "SELECT * FROM devices WHERE device_id LIKE '%$argv[1]' AND status = '1' AND os != 'Snom' order by device_id DESC";
|
||||
$q = mysql_query($sql);
|
||||
while ($device = mysql_fetch_array($q)) {
|
||||
|
||||
echo("\n" . $device['hostname'] . " : ");
|
||||
echo("IPv6 Addresses : ");
|
||||
|
||||
$oids = trim(shell_exec($config['snmpwalk']." -".$device['snmpver']." -c ".$device['community']." ".$device['hostname']." ipAddressIfIndex.ipv6 -Osq"));
|
||||
$oids = str_replace("ipAddressIfIndex.ipv6.", "", $oids); $oids = str_replace("\"", "", $oids); $oids = trim($oids);
|
||||
@@ -51,5 +44,5 @@ while ($device = mysql_fetch_array($q)) {
|
||||
}
|
||||
} else { echo("."); }
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user