Description: upsmon: on a comm loss while on battery, wait DEADTIME
 Since 2.8.1 a UPS last seen not fully online is declared dead on the first
 failed poll (DATA-STALE, DRIVER-NOT-CONNECTED, a dropped connection), and a
 secondary shuts its host down at once, ignoring DEADTIME. Upstream restored
 the old handling: the UPS is promoted to OB+LB only after DEADTIME without
 an answer.
Origin: upstream, https://github.com/networkupstools/nut/commit/ad19e07a4f6333c100fe7b40dfc8f0449f813cc5
Bug: https://github.com/networkupstools/nut/issues/2454
Applied-Upstream: 2.8.3, https://github.com/networkupstools/nut/pull/2462
Forwarded: not-needed
Last-Update: 2026-11-08
---
diff --git a/clients/upsmon.c b/clients/upsmon.c
index 1e64c564a7..52d4aac22b 100644
--- a/clients/upsmon.c
+++ b/clients/upsmon.c
@@ -1111,14 +1111,6 @@ static int is_ups_critical(utype_t *ups)
 				ups->sys);
 			return 1;
 		}
-
-		if (ups->linestate == 0) {
-			upslogx(LOG_WARNING,
-				"UPS [%s] was last known to be not fully online "
-				"and currently is not communicating, assuming dead",
-				ups->sys);
-			return 1;
-		}
 	}

 	/* administratively OFF (long enough, see OFFDURATION) */
