From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/95011-check_nmap.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 web/attachments/95011-check_nmap.patch (limited to 'web/attachments/95011-check_nmap.patch') diff --git a/web/attachments/95011-check_nmap.patch b/web/attachments/95011-check_nmap.patch new file mode 100644 index 0000000..3e41add --- /dev/null +++ b/web/attachments/95011-check_nmap.patch @@ -0,0 +1,29 @@ +--- ./contrib/check_nmap.py 2002-02-28 01:42:54.000000000 -0500 ++++ ./contrib/check_nmap.py 2004-07-23 16:03:17.000000000 -0400 +@@ -8,7 +8,7 @@ + # License: GPL + # Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com) + # +-_version_ = '1.20' ++_version_ = '1.21' + # + # + # Description: +@@ -25,6 +25,7 @@ + # + # 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 +@@ -276,7 +277,8 @@ + 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 -- cgit v1.2.3-74-g34f1