listInterfaces(); $problem = count($interfaces)==0; #foreach($interfaces as $interface) #{ # if($interface["ID"] == "My-HM-MOD-RPI-PCB" && (time() - $interface["LASTPACKETRECEIVED"] > 3600 || time() - $interface["LASTPACKETSENT"] > 3600)) $problem = true; #} #if($problem) print("{\"status\": 0}"); else print("{\"status\": 1}"); ?>