[nagiosplug] working on ubuntu precise12.04

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Thu Aug 15 11:40:17 CEST 2013


 Module: nagiosplug
 Branch: master
 Commit: 93b35b06f953e868de4b79e420c0c967ca78feaf
 Author: Fabio Rueda <fabio at vizzuality.com>
   Date: Wed Feb 27 18:22:18 2013 +0100
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=93b35b0

working on ubuntu precise12.04

---

 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 b7a8738..481a62b 100644
--- a/contrib/check_nmap.py
+++ b/contrib/check_nmap.py
@@ -207,8 +207,7 @@ class CheckNmap:
 	# _if_ two processes in deed get the same tmp-file
 	# the only result is a normal error message to nagios
 	#
-	r=random.random()
-	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
 	#





More information about the Commits mailing list