mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
move divider for voltages into discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@807 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -67,11 +67,11 @@ if ($device['os'] == "linux")
|
||||
$monitor_oid = "1.3.6.1.4.1.10876.2.1.1.1.1.10$oid";
|
||||
$limit_oid = "1.3.6.1.4.1.10876.2.1.1.1.1.5$oid";
|
||||
$lowlimit_oid = "1.3.6.1.4.1.10876.2.1.1.1.1.6$oid";
|
||||
$descr = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $descr_oid"));
|
||||
$volt = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $volt_oid"));
|
||||
$monitor = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $monitor_oid"));
|
||||
$limit = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $limit_oid"));
|
||||
$lowlimit = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $lowlimit_oid"));
|
||||
$descr = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $descr_oid")) / 1000;
|
||||
$volt = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $volt_oid")) / 1000;
|
||||
$monitor = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $monitor_oid")) / 1000;
|
||||
$limit = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $limit_oid")) / 1000;
|
||||
$lowlimit = trim(shell_exec($config['snmpget'] . " -m SUPERMICRO-HEALTH-MIB -O qv -$snmpver -c $community $hostname:$port $lowlimit_oid")) / 1000;
|
||||
if ($monitor == 'true')
|
||||
{
|
||||
$descr = trim(str_ireplace("Voltage", "", $descr));
|
||||
|
||||
Reference in New Issue
Block a user