check_nmap.sh/command_nmap.conf

26 lines
528 B
Plaintext

object CheckCommand "nmap" {
import "ipv4-or-ipv6"
command = [ "/home/nagios/check_nmap.sh/check_nmap.sh" ]
timeout = 12h
arguments = {
"--host" = {
value = "$nmap_host$"
description = "Hostname or address to scan"
required = true
}
"--portrange" = {
value = "$nmap_scan_ports$"
description = "String with ports in nmap format"
}
"--known" = {
value = "$nmap_allowed_ports$"
description = "String with ports in nmap format"
repeat_key = true
}
}
vars.nmap_host = "$check_address$"
}