summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3857e36)
raw | patch | inline | side by side (parent: 3857e36)
author | Matthew Kent <mattkent@users.sourceforge.net> | |
Wed, 1 Dec 2004 03:50:37 +0000 (03:50 +0000) | ||
committer | Matthew Kent <mattkent@users.sourceforge.net> | |
Wed, 1 Dec 2004 03:50:37 +0000 (03:50 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@958 f882894a-f735-0410-b71e-b25c423dba1c
contrib/check_nmap.py | patch | blob | history |
diff --git a/contrib/check_nmap.py b/contrib/check_nmap.py
index 4f53406d41c6e6a5308fbb22e50ed166385efb51..07f6d7fa845c733a9294c2a6e74543d7e19fad65 100644 (file)
--- a/contrib/check_nmap.py
+++ b/contrib/check_nmap.py
# License: GPL
# Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com)
#
-_version_ = '1.20'
+_version_ = '1.21'
#
#
# Description:
#
# History
# -------
+# 1.21 2004-07-23 rippeld@hillsboroughcounty.org Updated parsing of nmap output to correctly identify closed ports
# 1.20 2000-07-15 jaclu Updated params to correctly comply to plugin-standard
# moved support classes to utils.py
# 1.16 2000-07-14 jaclu made options and return codes more compatible with
if string.find(s,'/')<1:
continue
p=string.split(s,'/')[0]
- self.active_ports.append(int(p))
+ if string.find(l,'open')>1:
+ self.active_ports.append(int(p))
except:
# failure due to strange output...
pass