--- contrib/check_nmap.py 2004-12-01 04:50:37.000000000 +0100 +++ contrib/check_nmap.py.oden 2006-09-06 14:30:38.000000000 +0200 @@ -43,7 +43,7 @@ # 0.20 2000-07-10 jaclu Initial release -import sys, os, string, whrandom +import sys, os, string, random import tempfile from getopt import getopt @@ -54,7 +54,7 @@ import utils # Where temp files should be placed -tempfile.tempdir='/usr/local/nagios/var' +tempfile.tempdir='/tmp' # Base name for tempfile tempfile.template='check_nmap_tmp.' @@ -207,8 +207,7 @@ # _if_ two processes in deed get the same tmp-file # the only result is a normal error message to nagios # - r=whrandom.whrandom() - self.tmp_file=tempfile.mktemp('.%s')%r.randint(0,100000) + self.tmp_file=tempfile.mktemp('.%s')%random.randint(0,100000) if self.debug: print 'Tmpfile is: %s'%self.tmp_file #