Back to index

nagios-plugins  1.4.16
Classes | Functions | Variables
check_nmap Namespace Reference

Classes

class  CheckNmap

Functions

def doc_head
def doc_syntax
def doc_help

Variables

string _version_ = '1.21'
string nmap_cmd = '/usr/bin/nmap -P0'
tuple nmap = CheckNmap(sys.argv[1:])

Function Documentation

Definition at line 381 of file check_nmap.py.

00381 
00382 def doc_head():
00383     print """
00384 check_nmap plugin for Nagios
00385 Copyright (c) 2000 Jacob Lundqvist (jaclu@galdrion.com)
00386 License: GPL
00387 Version: %s""" % _version_
00388     

Here is the caller graph for this function:

Definition at line 396 of file check_nmap.py.

00396 
00397 def doc_help():
00398     'Help is displayed if run without params.'
00399     doc_head()
00400     doc_syntax()
00401     print """
00402 Options:
00403  -h         = help (this screen ;-)
00404  -v         = debug mode, show some extra output
00405  -H host    = host to check (name or IP#)
00406  -o ports   = optional ports that can be open (one or more),
00407              no warning is given if optional port is closed
00408  -p ports   = ports that should be open (one or more)
00409  -r range   = port range to feed to nmap.  Example: :1024,2049,3000:7000
00410  -t timeout = timeout in seconds, default 10
00411  -V         = Version info
00412  
00413 This plugin attempts to verify open ports on the specified host.
00414 
00415 If all specified ports are open, OK is returned.
00416 If any of them are closed, WARNING is returned (except for optional ports)
00417 If other ports are open, CRITICAL is returned
00418 
00419 If possible, supply an IP address for the host address, 
00420 as this will bypass the DNS lookup.        
00421 """
00422 
00423 
00424 #
00425 # Main
#

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 389 of file check_nmap.py.

00389 
00390 def doc_syntax():
00391     print """
00392 Usage: check_ports [-v|--debug] [-H|--host host] [-V|--version] [-h|--help]
00393                    [-o|--optional port1,port2,port3 ...] [-r|--range range]
00394                    [-p|--port port1,port2,port3 ...] [-t|--timeout timeout]"""
00395     

Here is the caller graph for this function:


Variable Documentation

string check_nmap._version_ = '1.21'

Definition at line 11 of file check_nmap.py.

tuple check_nmap.nmap = CheckNmap(sys.argv[1:])

Definition at line 435 of file check_nmap.py.

string check_nmap.nmap_cmd = '/usr/bin/nmap -P0'

Definition at line 63 of file check_nmap.py.