mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Small correction
This commit is contained in:
@@ -43,7 +43,7 @@ class UpsTrapsOnBattery implements SnmptrapHandler
|
||||
{
|
||||
$min_remaining = $trap->getOidData($trap->findOid('UPS-MIB::upsEstimatedMinutesRemaining.0'));
|
||||
$sec_time = $trap->getOidData($trap->findOid('UPS-MIB::upsSecondsOnBattery.0'));
|
||||
Log::event("UPS running on battery for $sec_time seconds. Estimated $min_remaining minutes remaining", $trap->getDevice(), 'trap', 5);
|
||||
Log::event("UPS running on battery for $sec_time. Estimated $min_remaining remaining", $trap->getDevice(), 'trap', 5);
|
||||
$sensor_remaining = $device->sensors()->where('sensor_index', '200')->where('sensor_type', 'rfc1628')->first();
|
||||
if(!$sensor_remaining){
|
||||
Log::warning("Snmptrap UpsTraps: Could not find matching sensor \'Estimated battery time remaining\' for device: " . $device->hostname);
|
||||
|
Reference in New Issue
Block a user