Blob Blame History Raw
--- a/fence/agents/lib/fencing.py.py	2017-09-28 13:23:38.300085104 +0200
+++ b/fence/agents/lib/fencing.py.py	2017-09-28 13:43:36.007103410 +0200
@@ -1025,10 +1028,15 @@
 						print outlet_id + options["--separator"] + alias + options["--separator"] + status
 			return
 
-		status = get_multi_power_fn(tn, options, get_power_fn)
-
-		if status != "on" and status != "off":
-			fail(EC_STATUS)
+		if options["--action"] == "monitor" and not "port" in options["device_opt"] and "no_status" in options["device_opt"]:
+			# Unable to do standard monitoring because 'status' action is not available
+			return 0
+
+		status = None
+		if not "no_status" in options["device_opt"]:
+			status = get_multi_power_fn(tn, options, get_power_fn)
+			if status != "on" and status != "off":
+				fail(EC_STATUS)
 
 		if options["--action"] == status:
 			if not (status == "on" and "force_on" in options["device_opt"]):