Open jeffreyrego opened 4 years ago
Hello, looks like this is a dependent with the Juniper SRX hardware, what SRX hardware did you use?
A single SRX 4200 have for cpu-load the error message "Month '-1' out of range 0..11 at ./check_nwc_health line 5869."
Same with hardware-health, all other checks works. We use check_nwc_health 7.10.1.8 dito. For SRX 4100 & 5400 clusters it works fine, with the same JUNOS software version.
regards
Correct. I am on a Juniper SRX 1500 in a Cluster.
Can you please post a debug (-vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv) for each mode here?
./check_nwc_health --authpassword XXX --authprotocol XXX--hostname 10.XXX --privpassword XXX --privprotocol XXX--protocol 3 --username XXX --mode cpu-load -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Mon Mar 23 15:12:00 2020: AUTOLOAD Classes::Device::check_messages
Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.1.3.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 36877224 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.6.3.10.2.1.3.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB Mon Mar 23 15:12:00 2020: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 368776 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.25.1.1 Mon Mar 23 15:12:00 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) : Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.25.1.1.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB Mon Mar 23 15:12:00 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) : 36881189 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.1.1.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: GET: MIB-2-MIB::sysDescr (1.3.6.1.2.1.1.1) : Juniper Networks, Inc. srx4200 internet router, kernel JUNOS 15[...] Mon Mar 23 15:12:00 2020: hrSystemUptime says: up since: Thu Mar 19 08:45:08 2020 / 4d 6h 26m 51s Mon Mar 23 15:12:00 2020: snmpEngineTime says: up since: Thu Mar 19 08:45:44 2020 / 4d 6h 26m 16s Mon Mar 23 15:12:00 2020: sysUptime says: up since: Thu Mar 19 08:45:47 2020 / 4d 6h 26m 12s Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.143 Mon Mar 23 15:12:00 2020: uptime: 368811.89 Mon Mar 23 15:12:00 2020: up since: Thu Mar 19 08:45:08 2020 Mon Mar 23 15:12:00 2020: whoami: Juniper Networks, Inc. srx4200 internet router, kernel JUNOS 15[...] Mon Mar 23 15:12:00 2020: AUTOLOAD Classes::Device::check_messages
Mon Mar 23 15:12:00 2020: I am a Juniper Networks, Inc. srx4200 internet router, kernel JUNOS 15[...]
Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.143 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 15:12:00 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.143 Mon Mar 23 15:12:00 2020: implements JUNIPER-MIB (found traces) Mon Mar 23 15:12:00 2020: using Classes::Juniper::SRX Mon Mar 23 15:12:00 2020: AUTOLOAD Classes::Juniper::SRX::override_opt
Mon Mar 23 15:12:00 2020: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Mon Mar 23 15:12:00 2020: AUTOLOAD Classes::Juniper::SRX::check_messages
Mon Mar 23 15:12:00 2020: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_cpu_subsystem
Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 15:12:00 2020: get_snmp_table_objects JUNIPER-MIB jnxOperatingTable Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 15:12:00 2020: cache: 1.3.6.1.4.1.2636.3.1.13 Mon Mar 23 15:12:00 2020: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.13', '-maxrepetitions' => 20 };
Mon Mar 23 15:12:00 2020: get_table returned 420 oids in 0s Mon Mar 23 15:12:00 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
Mon Mar 23 15:12:00 2020: get_matching_oids returns 420 from 425 oids Mon Mar 23 15:12:00 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Month '-1' out of range 0..11 at ./check_nwc_health line 5869.
note: JUNOS 15[...] is blackened
./check_nwc_health --hostname [IP/Hostname] --community [KEY]--mode cpu-load -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Mon Mar 23 12:09:42 2020: AUTOLOAD Classes::Device::check_messages
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.2.1.1.3.0
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:09:42 2020: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 4159413310
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.6.3.10.2.1.3.0
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:09:42 2020: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 84543804
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.2.1.25.1.1
Mon Mar 23 12:09:42 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Mon Mar 23 12:09:42 2020: I am a Juniper Networks, Inc. srx1500 internet router, kernel JUNOS 15.1X49-D100.6, Build date: 2017-06-28 07:39:27 UTC Copyright (c) 1996-2017 Juniper Networks, Inc.
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:09:42 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:09:42 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:09:42 2020: implements JUNIPER-MIB (found traces) Mon Mar 23 12:09:42 2020: using Classes::Juniper::SRX Mon Mar 23 12:09:42 2020: AUTOLOAD Classes::Juniper::SRX::override_opt
Mon Mar 23 12:09:42 2020: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Mon Mar 23 12:09:42 2020: AUTOLOAD Classes::Juniper::SRX::check_messages
Mon Mar 23 12:09:42 2020: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_cpu_subsystem
Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:09:42 2020: get_snmp_table_objects JUNIPER-MIB jnxOperatingTable Mon Mar 23 12:09:42 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:09:42 2020: cache: 1.3.6.1.4.1.2636.3.1.13 Mon Mar 23 12:09:42 2020: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.13', '-maxrepetitions' => 20 };
Mon Mar 23 12:09:43 2020: get_table returned 392 oids in 1s Mon Mar 23 12:09:43 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
Mon Mar 23 12:09:43 2020: get_matching_oids returns 392 from 397 oids Mon Mar 23 12:09:43 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Month '-1' out of range 0..11 at ./check_nwc_health line 5869
./check_nwc_health --hostname [IP/Hostname] --community [KEY] --mode hardware-health -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Mon Mar 23 12:12:10 2020: AUTOLOAD Classes::Device::check_messages
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.2.1.1.3.0
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:12:10 2020: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 4159428061
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.6.3.10.2.1.3.0
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:12:10 2020: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 84543951
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.2.1.25.1.1
Mon Mar 23 12:12:10 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Mon Mar 23 12:12:10 2020: I am a Juniper Networks, Inc. srx1500 internet router, kernel JUNOS 15.1X49-D100.6, Build date: 2017-06-28 07:39:27 UTC Copyright (c) 1996-2017 Juniper Networks, Inc.
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:12:10 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:12:10 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:12:10 2020: implements JUNIPER-MIB (found traces) Mon Mar 23 12:12:10 2020: using Classes::Juniper::SRX Mon Mar 23 12:12:10 2020: AUTOLOAD Classes::Juniper::SRX::override_opt
Mon Mar 23 12:12:10 2020: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Mon Mar 23 12:12:10 2020: AUTOLOAD Classes::Juniper::SRX::check_messages
Mon Mar 23 12:12:10 2020: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_environmental_subsystem
Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: get_snmp_table_objects JUNIPER-MIB jnxLEDTable Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.4.1.2636.3.1.10 Mon Mar 23 12:12:10 2020: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.10', '-maxrepetitions' => 20 };
Mon Mar 23 12:12:10 2020: get_table returned 27 oids in 0s Mon Mar 23 12:12:10 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.10' ] };
Mon Mar 23 12:12:10 2020: get_matching_oids returns 27 from 32 oids Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: get_snmp_table_objects default returns 3 entries Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: get_snmp_table_objects JUNIPER-MIB jnxOperatingTable Mon Mar 23 12:12:10 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:12:10 2020: cache: 1.3.6.1.4.1.2636.3.1.13 Mon Mar 23 12:12:10 2020: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.13', '-maxrepetitions' => 20 };
Mon Mar 23 12:12:11 2020: get_table returned 392 oids in 1s Mon Mar 23 12:12:11 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
./check_nwc_health --hostname [IP/Hostname] --community [KEY] --mode memory-usage -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Mon Mar 23 12:14:08 2020: AUTOLOAD Classes::Device::check_messages
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.2.1.1.3.0
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Mar 23 12:14:08 2020: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 4159439863
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.6.3.10.2.1.3.0
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Mar 23 12:14:08 2020: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 84544069
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.2.1.25.1.1
Mon Mar 23 12:14:08 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Mon Mar 23 12:14:08 2020: I am a Juniper Networks, Inc. srx1500 internet router, kernel JUNOS 15.1X49-D100.6, Build date: 2017-06-28 07:39:27 UTC Copyright (c) 1996-2017 Juniper Networks, Inc.
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:14:08 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Mar 23 12:14:08 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Mar 23 12:14:08 2020: implements JUNIPER-MIB (found traces) Mon Mar 23 12:14:08 2020: using Classes::Juniper::SRX Mon Mar 23 12:14:08 2020: AUTOLOAD Classes::Juniper::SRX::override_opt
Mon Mar 23 12:14:08 2020: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Mon Mar 23 12:14:08 2020: AUTOLOAD Classes::Juniper::SRX::check_messages
Mon Mar 23 12:14:08 2020: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_mem_subsystem
Mon Mar 23 12:14:08 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB
Mon Mar 23 12:14:08 2020: cache: 1.3.6.1.4.1.2636.3.1.16
Mon Mar 23 12:14:08 2020: GET: JUNIPER-MIB::jnxBoxKernelMemoryUsedPercent (1.3.6.1.4.1.2636.3.1.16) :
Mon Mar 23 12:14:09 2020: get_table returned 392 oids in 1s Mon Mar 23 12:14:09 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
Mon Mar 23 12:14:09 2020: get_matching_oids returns 392 from 398 oids Mon Mar 23 12:14:09 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Month '-1' out of range 0..11 at ./check_nwc_health line 5869
Hello, I am also experiencing this same issue, we have srx1500 in 2 node cluster configuration
Mon Jul 6 16:32:57 2020: AUTOLOAD Classes::Device::check_messages
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.2.1.1.3.0
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Mon Jul 6 16:32:57 2020: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 2173335533
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.6.3.10.2.1.3.0
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Mon Jul 6 16:32:57 2020: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 21733355
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.2.1.25.1.1
Mon Jul 6 16:32:57 2020: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Mon Jul 6 16:32:57 2020: I am a Juniper Networks, Inc. srx1500 internet router, kernel JUNOS 15.1X49-D170.4, Build date: 2019-02-22 23:21:26 UTC Copyright (c) 1996-2019 Juniper Networks, Inc.
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Jul 6 16:32:57 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.2.1.1.2.0 Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Mon Jul 6 16:32:57 2020: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.2.137 Mon Jul 6 16:32:57 2020: implements JUNIPER-MIB (found traces) Mon Jul 6 16:32:57 2020: using Classes::Juniper::SRX Mon Jul 6 16:32:57 2020: AUTOLOAD Classes::Juniper::SRX::override_opt
Mon Jul 6 16:32:57 2020: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Mon Jul 6 16:32:57 2020: AUTOLOAD Classes::Juniper::SRX::check_messages
Mon Jul 6 16:32:57 2020: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_environmental_subsystem
Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: get_snmp_table_objects JUNIPER-MIB jnxLEDTable Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.4.1.2636.3.1.10 Mon Jul 6 16:32:57 2020: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.10', '-maxrepetitions' => 20 };
Mon Jul 6 16:32:57 2020: get_table returned 27 oids in 0s Mon Jul 6 16:32:57 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.10' ] };
Mon Jul 6 16:32:57 2020: get_matching_oids returns 27 from 32 oids Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: get_snmp_table_objects default returns 3 entries Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: get_snmp_table_objects JUNIPER-MIB jnxOperatingTable Mon Jul 6 16:32:57 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Mon Jul 6 16:32:57 2020: cache: 1.3.6.1.4.1.2636.3.1.13 Mon Jul 6 16:32:57 2020: get_table $VAR1 = { '-maxrepetitions' => 20, '-baseoid' => '1.3.6.1.4.1.2636.3.1.13' };
Mon Jul 6 16:32:58 2020: get_table returned 616 oids in 1s Mon Jul 6 16:32:58 2020: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
Mon Jul 6 16:32:58 2020: get_matching_oids returns 616 from 648 oids Mon Jul 6 16:32:58 2020: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Month '-1' out of range 0..11 at /usr/lib64/nagios/plugins/check_nwc_health line 5882.
Hi There, I got same problem for Juniper devices with latest version of check_nwc_health. When you have a chance, please take a look. Thanks! ./check_nwc_health -V check_nwc_health $Revision: 8.3.1 $ [http://labs.consol.de/nagios/check_nwc_health]
./check_nwc_health --hostname [IP/Hostname] --community [KEY] --mode cpu-load -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Sat Feb 20 11:48:18 2021: AUTOLOAD Classes::Device::check_messages
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.2.1.1.3.0
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Sat Feb 20 11:48:18 2021: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 2693787974
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.6.3.10.2.1.3.0
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Sat Feb 20 11:48:18 2021: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 2778689
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.2.1.25.1.1
Sat Feb 20 11:48:18 2021: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Sat Feb 20 11:48:18 2021: I am a Juniper Networks, Inc. qfx5100-48t-6q Ethernet Switch, kernel JUNOS 14.1X53-D46.7, Build date: 2017-11-23 22:21:57 UTC Copyright (c) 1996-2017 Juniper Networks, Inc.
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.2.1.1.2.0 Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Sat Feb 20 11:48:18 2021: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.4.82.7 Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.2.1.1.2.0 Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB Sat Feb 20 11:48:18 2021: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.2636.1.1.1.4.82.7 Sat Feb 20 11:48:18 2021: implements JUNIPER-MIB (found traces) Sat Feb 20 11:48:18 2021: using Classes::Juniper::SRX Sat Feb 20 11:48:18 2021: AUTOLOAD Classes::Juniper::SRX::override_opt
Sat Feb 20 11:48:18 2021: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt
Sat Feb 20 11:48:18 2021: AUTOLOAD Classes::Juniper::SRX::check_messages
Sat Feb 20 11:48:18 2021: AUTOLOAD Classes::Juniper::SRX::analyze_and_check_cpu_subsystem
Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Sat Feb 20 11:48:18 2021: get_snmp_table_objects JUNIPER-MIB jnxOperatingTable Sat Feb 20 11:48:18 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Sat Feb 20 11:48:18 2021: cache: 1.3.6.1.4.1.2636.3.1.13 Sat Feb 20 11:48:18 2021: get_table $VAR1 = { '-baseoid' => '1.3.6.1.4.1.2636.3.1.13', '-maxrepetitions' => 20 };
Sat Feb 20 11:48:19 2021: get_table returned 462 oids in 1s Sat Feb 20 11:48:19 2021: get_matching_oids $VAR1 = { '-columns' => [ '1.3.6.1.4.1.2636.3.1.13' ] };
Sat Feb 20 11:48:19 2021: get_matching_oids returns 462 from 467 oids Sat Feb 20 11:48:19 2021: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB Month '-1' out of range 0..11 at /usr/lib64/nagios/plugins/check_nwc_health line 5936.
Getting the following error after updating to Check_New_Health-7.10.1.8.
[root@monprod libexec]# ./check_nwc_health --hostname 10.175.2.1 --community {KEY} --mode cpu-load Month '-1' out of range 0..11 at ./check_nwc_health line 5869
[root@monprod libexec]# ./check_nwc_health --hostname 10.175.2.1 --community {Key}--mode hardware-health Month '-1' out of range 0..11 at ./check_nwc_health line 5869
[root@monprod libexec]# ./check_nwc_health --hostname 10.175.2.1 --community {Key} --mode memory-usage Month '-1' out of range 0..11 at ./check_nwc_health line 5869