object CheckCommand "check_nrpe" { import "ipv4-or-ipv6" command = [ PluginDir + "/check_nrpe" ] arguments = { "-H" = { value = "$nrpe_address$" description = "The address of the host running the NRPE daemon" } "-p" = { value = "$nrpe_port$" } "-c" = { value = "$nrpe_command$" } "-n" = { set_if = "$nrpe_no_ssl$" description = "Do not use SSL" } "-u" = { set_if = "$nrpe_timeout_unknown$" description = "Make socket timeouts return an UNKNOWN state instead of CRITICAL" } "-t" = { value = "$nrpe_timeout$" description = ": = :" } "-a" = { value = "$nrpe_arguments$" repeat_key = false order = 1 } "-4" = { set_if = "$nrpe_ipv4$" description = "Use IPv4 connection" } "-6" = { set_if = "$nrpe_ipv6$" description = "Use IPv6 connection" } "-2" = { set_if = "$nrpe_version_2$" description = "Use this if you want to connect to NRPE v2" } } vars.nrpe_address = "$check_address$" vars.nrpe_no_ssl = false vars.nrpe_timeout_unknown = false vars.check_ipv4 = "$nrpe_ipv4$" vars.check_ipv6 = "$nrpe_ipv6$" vars.nrpe_version_2 = false timeout = 5m } object CheckCommand "check_nscp" { import "ipv4-or-ipv6" command = [ PluginDir + "/check_nt" ] arguments = { "-H" = { value = "$nscp_address$" description = "Name of the host to check" } "-p" = { value = "$nscp_port$" description = "Optional port number (default: 1248)" } "-s" = { value = "$nscp_password$" description = "Password needed for the request" } "-v" = { value = "$nscp_variable$" required = true description = "Variable to check" } "-l" = { value = "$nscp_params$" repeat_key = false } "-w" = { value = "$nscp_warn$" description = "Threshold which will result in a warning status" } "-c" = { value = "$nscp_crit$" description = "Threshold which will result in a critical status" } "-t" = { value = "$nscp_timeout$" description = "Seconds before connection attempt times out" } "-d" = { value = "SHOWALL" set_if = "$nscp_showall$" description = "Use with SERVICESTATE to see working services or PROCSTATE for running processes" } } vars.nscp_address = "$check_address$" vars.nscp_port = 12489 vars.nscp_showall = false vars.nscp_password = "admin@123" } object CheckCommand "check_snmpv3" { import "ipv4-or-ipv6" command = [ PluginDir + "/check_snmp" ] arguments = { "-H" = { value = "$snmpv3_address$" description = "Host name, IP Address, or unix socket (must be an absolute path)" } "-p" = { value = "$snmpv3_port$" description = "Port number" } "-n" = { set_if = "$snmpv3_getnext$" description = "Use SNMP GETNEXT instead of SNMP GET" } "-P" = { value = 3 description = "SNMP protocol version" } "-L" = { value = "$snmpv3_seclevel$" description = "SNMPv3 securityLevel" } "-a" = { value = "$snmpv3_auth_alg$" description = "SNMPv3 auth proto" } "-U" = { value = "$snmpv3_user$" description = "SNMPv3 username" } "-N" = { value = "$snmpv3_context$" description = "SNMPv3 context" } "-A" = { value = "$snmpv3_auth_key$" description = "SNMPv3 authentication password" } "-X" = { value = "$snmpv3_priv_key$" description = "SNMPv3 privacy password" } "-o" = { value = "$snmpv3_oid$" description = "Object identifier(s) or SNMP variables whose value you wish to query" } "-x" = { value = "$snmpv3_priv_alg$" description = "SNMPv3 priv proto (default DES)" } "-w" = { value = "$snmpv3_warn$" description = "Warning threshold range(s)" } "-c" = { value = "$snmpv3_crit$" description = "Critical threshold range(s)" } "-s" = { value = "$snmpv3_string$" description = "Return OK state (for that OID) if STRING is an exact match" } "-r" = { value = "$snmpv3_ereg$" description = "Return OK state (for that OID) if extended regular expression REGEX matches" } "-R" = { value = "$snmpv3_eregi$" description = "Return OK state (for that OID) if case-insensitive extended REGEX matches" } "--invert-search" = { set_if = "$snmpv3_invert_search$" description = "Invert search result and return CRITICAL if found" } "-l" = { value = "$snmpv3_label$" description = "Prefix label for output from plugin" } "-m" = { value = "$snmpv3_miblist$" description = "List of SNMP MIBs for translating OIDs between numeric and textual representation" } "-u" = { value = "$snmpv3_units$" description = "Units label(s) for output data (e.g., 'sec.')" } "--rate-multiplier" = { value = "$snmpv3_rate_multiplier$" description = "Converts rate per second. For example, set to 60 to convert to per minute" } "--rate" = { set_if = "$snmpv3_rate$" description = "Enable rate calculation" } "-t" = { value = "$snmpv3_timeout$" description = "Seconds before connection times out (default: 10)" } } vars.snmpv3_address = "$check_address$" vars.snmpv3_auth_alg = "SHA" vars.snmpv3_priv_alg = "AES" vars.snmpv3_seclevel = "authPriv" vars.snmpv3_timeout = "10" } object CheckCommand "check_nwc" { import "plugin-check-command" import "ipv4-or-ipv6" command = [ "/usr/lib64/nagios/plugins/contrib/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 = "emadmin" vars.snmpv3_auth_key = "iCinga!56v3" vars.snmpv3_auth_alg = "SHA" vars.snmpv3_priv_alg = "AES" vars.snmpv3_priv_key = "SnmP!v234" vars.nwc_timeout = "20" }