check_nmap.sh/command_nmap.conf

26 lines
528 B
Plaintext
Raw Permalink Normal View History

2020-02-28 21:42:40 +01:00
object CheckCommand "nmap" {
import "ipv4-or-ipv6"
command = [ "/home/nagios/check_nmap.sh/check_nmap.sh" ]
2021-02-23 22:37:16 +01:00
timeout = 12h
2020-02-28 21:42:40 +01:00
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$"
}