mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
Fix for real...
This commit is contained in:
parent
58e1233d77
commit
486e0824b1
@ -30,10 +30,9 @@ use App\Models\Notification;
|
||||
use Auth;
|
||||
use Cache;
|
||||
use Carbon\Carbon;
|
||||
use DB;
|
||||
use Dotenv\Dotenv;
|
||||
use Toastr;
|
||||
use LibreNMS\Config;
|
||||
use Toastr;
|
||||
|
||||
class Checks
|
||||
{
|
||||
@ -167,7 +166,7 @@ class Checks
|
||||
Toastr::error("<a href='notifications/'>$notification->body</a>", $notification->title);
|
||||
}
|
||||
|
||||
if (Device::isUp()->whereTime('last_polled', '<=', DB::raw('DATE_SUB(NOW(), INTERVAL 15 MINUTE)'))->exists()) {
|
||||
if (Device::isUp()->where('last_polled', '<=', Carbon::now()->subMinutes(15))->exists()) {
|
||||
Toastr::warning('<a href="poll-log/filter=unpolled/">It appears as though you have some devices that haven\'t completed polling within the last 15 minutes, you may want to check that out :)</a>', 'Devices unpolled');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user