Icinga2 check script for nmap port scans
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
April 424097cb93 Add check whether nmap can be found 1 month ago
test Added tests 3 years ago
README.md Update 'README.md' 7 months ago
check_nmap.sh Add check whether nmap can be found 1 month ago
command_nmap.conf Added support for IPv6 checks 2 years ago
service_nmap.conf Added support for IPv6 checks 2 years ago

README.md

check_nmap.sh

This script runs a nmap scan and checks the discovered ports against a whitelist

Arguments

  • --host | -h: Host that shall be scanned by nmap
  • --portrange | -p: Ports that shall be scanned (nmap format)
  • --known | -k: A port number that is expected to be open
  • --input | -i: Use input file instead of a real nmap scan (for testing)
  • --debug | -d: More debugging output, cannot be used with icinga2
  • all arguments after -- are passed to nmap

Results

  • CRITICAL: if any unexpected port is open