Merge branch 'master' of ssh://db.debian.org/git/dsa-nagios
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-entropy
index 42bb5fd..e2c61e2 100755 (executable)
@@ -37,7 +37,7 @@ parser.add_option("-s", "--sleep", dest="sleep", metavar="MSECS",
   help="Amount of time to wait between reads [250msec].")
 parser.add_option("-w", "--watermark", dest="watermark", metavar="BYTES",
   type="int", default=800,
-  help="Minimum number of expected bytes in the entropy pool.")
+  help="Minimum number of expected bytes in the entropy pool [800].")
 (options, args) = parser.parse_args()
 
 if len(args) != 0:
@@ -73,7 +73,7 @@ while tries <= options.retries:
     time.sleep(1.0 * options.sleep / 1000)
     tries += 1
 
-print "WARNING: Too little entropy in the pool (min: %d, max: %d in %d reads)"%(min(values), max(values), tries)
+print "WARNING: Too little entropy in the pool (min: %d, max: %d in %d reads)"%(min(values), max(values), tries-1)
 sys.exit(1)
 
 # vim:set et: