forked from librenms/librenms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused function (librenms#14283)
duplicates other functionality
- Loading branch information
Showing
2 changed files
with
4 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,10 @@ | |
* @copyright 2017 Neil Lathwood | ||
* @author Neil Lathwood <[email protected]> | ||
*/ | ||
$value = return_number(snmp_get($device, 'climateHumidity', '-Oqv', 'GEIST-MIB-V3')); | ||
|
||
use LibreNMS\Util\Number; | ||
|
||
$value = Number::cast(SnmpQuery::get('GEIST-MIB-V3::climateHumidity')->value()); | ||
if ($value) { | ||
$current_oid = '.1.3.6.1.4.1.21239.2.2.1.7.1'; | ||
$descr = 'Humidity'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters