Icinga2 check script for nmap port scans
Go to file
2021-02-23 22:37:50 +01:00
test Added tests 2020-02-28 20:56:56 +01:00
check_nmap.sh Added support for IPv6 checks 2021-02-23 22:37:16 +01:00
command_nmap.conf Added support for IPv6 checks 2021-02-23 22:37:16 +01:00
README.md Renamed README.md 2020-02-29 16:58:11 +01:00
service_nmap.conf Added support for IPv6 checks 2021-02-23 22:37:16 +01:00

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 expected port is open