Compare commits

..

1 commit
main ... bla

Author SHA1 Message Date
root
18dc7deea6 Fix command definition: Pass on --ipv4 or --ipv6 arguments 2024-12-09 19:31:54 +00:00

View file

@ -2,7 +2,7 @@ object CheckCommand "nmap" {
import "ipv4-or-ipv6" import "ipv4-or-ipv6"
command = [ "/home/nagios/check_nmap.sh/check_nmap.sh" ] command = [ "/home/nagios/check_nmap.sh/check_nmap.sh" ]
timeout = 12h timeout = 24h
arguments = { arguments = {
"--host" = { "--host" = {
@ -19,6 +19,14 @@ object CheckCommand "nmap" {
description = "String with ports in nmap format" description = "String with ports in nmap format"
repeat_key = true repeat_key = true
} }
"--ipv4" = {
set_if = "$nmap_ipv4$"
description = "Use IPv4 for scanning"
}
"--ipv6" = {
set_if = "$nmap_ipv6$"
description = "Use IPv6 for scanning"
}
} }
vars.nmap_host = "$check_address$" vars.nmap_host = "$check_address$"