mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove speed from fan name
git-svn-id: http://www.observium.org/svn/observer/trunk@1066 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -64,6 +64,8 @@ if ($device['os'] == "linux")
|
|||||||
$precision = 1;
|
$precision = 1;
|
||||||
$monitor = snmp_get($device, $monitor_oid, "-Oqv", "SUPERMICRO-HEALTH-MIB");
|
$monitor = snmp_get($device, $monitor_oid, "-Oqv", "SUPERMICRO-HEALTH-MIB");
|
||||||
$descr = str_replace(' Fan Speed','',$descr);
|
$descr = str_replace(' Fan Speed','',$descr);
|
||||||
|
$descr = str_replace(' Speed','',$descr);
|
||||||
|
|
||||||
if ($monitor == 'true')
|
if ($monitor == 'true')
|
||||||
{
|
{
|
||||||
echo discover_fan($device, $fan_oid, $index, $type, $descr, $precision, $limit, NULL, $current);
|
echo discover_fan($device, $fan_oid, $index, $type, $descr, $precision, $limit, NULL, $current);
|
||||||
|
Reference in New Issue
Block a user