mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update PingCheck.php to remove duplicate "Device status changed to ... from icmp check." event (#14785)
* Update PingCheck.php Remove duplicate log entry per https://github.com/librenms/librenms/issues/14751 * Update PingCheck.php Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\Device;
|
||||
use App\Models\Eventlog;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
@@ -254,7 +253,6 @@ class PingCheck implements ShouldQueue
|
||||
// if changed, update reason
|
||||
$device->status_reason = $device->status ? '' : 'icmp';
|
||||
$type = $device->status ? 'up' : 'down';
|
||||
Eventlog::log('Device status changed to ' . ucfirst($type) . ' from icmp check.', $device->device_id, $type);
|
||||
}
|
||||
|
||||
$device->save(); // only saves if needed (which is every time because of last_ping)
|
||||
|
Reference in New Issue
Block a user