mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
storage legend fix (lazy sid3windr!) add generic ucd processor discovery/poller
git-svn-id: http://www.observium.org/svn/observer/trunk@1089 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -4,10 +4,17 @@ $query = "SELECT * FROM processors WHERE device_id = '" . $device['device_id'] .
|
||||
$proc_data = mysql_query($query);
|
||||
while($processor = mysql_fetch_array($proc_data)) {
|
||||
|
||||
$proc = snmp_get ($device, $processor['processor_oid'], "-O Uqnv");
|
||||
|
||||
echo("Checking CPU " . $processor['processor_descr'] . "... ");
|
||||
|
||||
$file = $config['install_dir']."/includes/polling/processors-".$processor['processor_type'].".inc.php";
|
||||
if(is_file($file)) {
|
||||
include($file);
|
||||
} else {
|
||||
$proc = snmp_get ($device, $processor['processor_oid'], "-O Uqnv");
|
||||
}
|
||||
|
||||
|
||||
|
||||
$procrrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("processor-" . $processor['processor_type'] . "-" . $processor['processor_index'] . ".rrd");
|
||||
|
||||
if (!is_file($procrrd)) {
|
||||
|
||||
Reference in New Issue
Block a user