- add a checked time to each record.
[monitor.git] / findbadpcu.py
index 7fe45c3..ba3270d 100755 (executable)
@@ -187,7 +187,7 @@ def collectPingAndSSH(pcuname, cohash):
                #### RUN NMAP ###############################
                if continue_probe:
                        nmap = soltesz.CMD()
-                       (oval,eval) = nmap.run_noexcept("nmap -oG - -p22,23,80,443,5869,16992 %s | grep Host:" % pcu_name(values))
+                       (oval,eval) = nmap.run_noexcept("nmap -oG - -P0 -p22,23,80,443,5869,16992 %s | grep Host:" % pcu_name(values))
                        # NOTE: an empty / error value for oval, will still work.
                        (values['portstatus'], continue_probe) = nmap_portstatus(oval)
 
@@ -235,6 +235,7 @@ def collectPingAndSSH(pcuname, cohash):
                errors['traceback'] = traceback.format_exc()
                print errors['traceback']
 
+       values['checked'] = time.time()
        return (pcuname, values, errors)
 
 def recordPingAndSSH(request, result):