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