X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-entropy;h=e2c61e22d9aea6ace7eb4e34fa8321d57c7f3675;hb=d6e0e373c910d25d8b89a0f34f777304132e807c;hp=42bb5fd64183595dbba553c8e663a4236efdc2fe;hpb=c9f3bc1a03ecc92b3df1177270f1bc183cd433be;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-entropy b/dsa-nagios-checks/checks/dsa-check-entropy index 42bb5fd..e2c61e2 100755 --- a/dsa-nagios-checks/checks/dsa-check-entropy +++ b/dsa-nagios-checks/checks/dsa-check-entropy @@ -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: