diff --git a/html/includes/table/alerts.inc.php b/html/includes/table/alerts.inc.php
index dc8661fa77f0..9c2108475856 100644
--- a/html/includes/table/alerts.inc.php
+++ b/html/includes/table/alerts.inc.php
@@ -2,7 +2,7 @@
require_once $config['install_dir'].'/includes/device-groups.inc.php';
-$where = 1;
+$where = ' `devices`.`disabled` = 0';
$alert_states = array(
// divined from librenms/alerts.php