I am using check_nwc_health for monitoring interfaces of network devices. But now continuosly getting UNKNOWN - check_nwc_health timed out after 30 seconds. The below is my check command.
object CheckCommand “check_nwc” {
import “plugin-check-command”
import “ipv4-or-ipv6”
command = [ “/usr/lib64/nagios/plugins/check_nwc_health” ]
arguments = {
“-H” = “$nwc_address$”
“–protocol” = “$snmp_protocol$”
“–username” = “$snmpv3_user$”
“–authpassword” = “$snmpv3_auth_key$”
“–authprotocol” = “$snmpv3_auth_alg$”
“–privprotocol” = “$snmpv3_priv_alg$”
“–privpassword” = “$snmpv3_priv_key$”
“–mode” = “$nwc_mode$”
“–warning” = “$nwc_warning$”
“–critical” = “$nwc_critical$”
“–name” = “$nwc_name$”
“–timeout” = “$nwc_timeout$”
}
vars.nwc_address = “$check_address$”
vars.snmp_protocol = “3”
vars.snmpv3_user = “some-user”
vars.snmpv3_auth_key = “"
vars.snmpv3_auth_alg = "”
vars.snmpv3_priv_alg = “"
vars.snmpv3_priv_key = "”
vars.nwc_timeout = “30”
}