Dear all
Please can you help me with problem.
I need create new check command. I need to use two times argument named --negate
I tried variat bellow but i have argument only once.
can you help me?
–negate critical=ok --negate ok=critical
object CheckCommand “check_nwc_health_negate” {
import “plugin-check-command”
command = [PluginDir + “/contrib/check_nwc_health”]
arguments = {
“-H” = “$host.address$”
“–community” = “$snmpcommunity$”
“–name” = “$name$”
“–mode” = “$cmd$”
“–warning” = “$warning$”
“–critical” = “$critical$”
“–negate” = { value = “critical=ok” } //set_if = “$negate_ok$”
“–negate” = { value = “ok=critical” } //set_if = “$negate_ok$”
}