diff options
author | Fabio Rueda <fabio@vizzuality.com> | 2013-02-27 18:22:18 +0100 |
---|---|---|
committer | Fabio Rueda <fabio@vizzuality.com> | 2013-02-27 18:22:18 +0100 |
commit | 93b35b06f953e868de4b79e420c0c967ca78feaf (patch) | |
tree | ff76faf816c79dae6179753646140424b5774aeb /contrib | |
parent | 0ac1a30e7a48acfaa2ffb55a443bd66a497a13ac (diff) | |
download | monitoring-plugins-93b35b06f953e868de4b79e420c0c967ca78feaf.tar.gz |
working on ubuntu precise12.04
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/check_nmap.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py index b7a87385..481a62bf 100644 --- a/contrib/check_nmap.py +++ b/contrib/check_nmap.py | |||
@@ -207,8 +207,7 @@ class CheckNmap: | |||
207 | # _if_ two processes in deed get the same tmp-file | 207 | # _if_ two processes in deed get the same tmp-file |
208 | # the only result is a normal error message to nagios | 208 | # the only result is a normal error message to nagios |
209 | # | 209 | # |
210 | r=random.random() | 210 | self.tmp_file=tempfile.mktemp('.%s') % random.randint(0,100000) |
211 | self.tmp_file=tempfile.mktemp('.%s')%r.randint(0,100000) | ||
212 | if self.debug: | 211 | if self.debug: |
213 | print 'Tmpfile is: %s'%self.tmp_file | 212 | print 'Tmpfile is: %s'%self.tmp_file |
214 | # | 213 | # |