[nagiosplug] ported use whrandom to random
"Nagios Plugin Development" <[email protected]> Thu, 15 Aug 2013 09:40:16 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 0ac1a30e7a48acfaa2ffb55a443bd66a497a13ac Author: Fabio Rueda <[email protected]> Date: Wed Feb 27 18:11:47 2013 +0100 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=0ac1a30 ported use whrandom to random --- contrib/check_nmap.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py index 07f6d7f..b7a8738 100644 --- a/contrib/check_nmap.py +++ b/contrib/check_nmap.py @@ -43,7 +43,7 @@ _version_ = '1.21' # 0.20 2000-07-10 jaclu Initial release -import sys, os, string, whrandom +import sys, os, string, random import tempfile from getopt import getopt @@ -207,7 +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=whrandom.whrandom() + r=random.random() self.tmp_file=tempfile.mktemp('.%s')%r.randint(0,100000) if self.debug: print 'Tmpfile is: %s'%self.tmp_file @@ -388,7 +388,7 @@ Version: %s""" % _version_ def doc_syntax(): print """ -Usage: check_ports [-v|--debug] [-H|--host host] [-V|--version] [-h|--help] +Usage: check_nmap.py [-v|--debug] [-H|--host host] [-V|--version] [-h|--help] [-o|--optional port1,port2,port3 ...] [-r|--range range] [-p|--port port1,port2,port3 ...] [-t|--timeout timeout]""" ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk