mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
various fixes, add some more netmanplus stats, convert discover_volt and discover_freq to use the by-reference array like discover_temperature
git-svn-id: http://www.observium.org/svn/observer/trunk@1193 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -7,7 +7,7 @@ while($dbcurrent = mysql_fetch_array($current_data)) {
|
||||
echo("Checking current " . $dbcurrent['current_descr'] . "... ");
|
||||
|
||||
$current_cmd = $config['snmpget'] . " -m SNMPv2-MIB -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $dbcurrent['current_oid'] . "|grep -v \"No Such Instance\"";
|
||||
$current = trim(str_replace("\"", "", shell_exec($current_cmd)));
|
||||
$current = trim(shell_exec($current_cmd));
|
||||
|
||||
if ($dbcurrent['current_precision'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user