mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
vastly improved entity-sensors and cisco-entity-sensors speed. improved entity-mib inventory. removed device_id element from oid caches. add min/max ranges to sensor graphs.
git-svn-id: http://www.observium.org/svn/observer/trunk@1669 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+4
-4
@@ -32,9 +32,9 @@ if($argv[1] == "--device" && $argv[2]) {
|
||||
}
|
||||
|
||||
if ($argv[2] == "--type" && $argv[3]) {
|
||||
$type = $argv[3];
|
||||
$discovery_type = $argv[3];
|
||||
} elseif ($argv[3] == "--type" && $argv[4]) {
|
||||
$type = $argv[4];
|
||||
$discovery_type = $argv[4];
|
||||
} else {
|
||||
echo("Require valid discovery type.\n");
|
||||
exit;
|
||||
@@ -42,7 +42,7 @@ if ($argv[2] == "--type" && $argv[3]) {
|
||||
|
||||
$devices_polled = 0;
|
||||
|
||||
echo("includes/discovery/".$type.".php \n");
|
||||
echo("includes/discovery/".$discovery_type.".php \n");
|
||||
|
||||
#$debug = 1;
|
||||
|
||||
@@ -53,7 +53,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
echo($device['hostname'] . "(".$device['sysName']."|".$device['device_id'].")\n");
|
||||
if($config['os'][$device['os']]['group']) {$device['os_group'] = $config['os'][$device['os']]['group']; echo "(".$device['os_group'].")";}
|
||||
|
||||
include("includes/discovery/".$type);
|
||||
include("includes/discovery/".$discovery_type);
|
||||
|
||||
echo("\n"); $devices_polled++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user