Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware-health problem on fortigate 7.0 #310

Open
dcec opened this issue Jan 31, 2023 · 0 comments
Open

hardware-health problem on fortigate 7.0 #310

dcec opened this issue Jan 31, 2023 · 0 comments

Comments

@dcec
Copy link
Contributor

dcec commented Jan 31, 2023

Hi,

after upgrade Fortigate from 6.4 to 7.0 appears an error on hardware-health check:

./check_nwc_health '--authpassword' 'xxxxx' '--authprotocol' 'sha' '--hostname' 'xxx' '--mode' 'hardware-health' '--privpassword' 'xxx' '--privprotocol' 'aes' '--report' 'html' '--username' 'xxx' -vvvvvvvvvvvv
Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Device::override_opt

Tue Jan 31 10:26:23 2023: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Device::check_messages

Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.3.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysUpTime (1.3.6.1.2.1.1.3) : 4005719
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.6.3.10.2.1.3.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SNMPFRAMEWORKMIB
Tue Jan 31 10:26:23 2023: GET: SNMP-FRAMEWORK-MIB::snmpEngineTime (1.3.6.1.6.3.10.2.1.3.0) : 39960
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.25.1.1
Tue Jan 31 10:26:23 2023: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HOSTRESOURCESMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.25.1.1.0
Tue Jan 31 10:26:23 2023: GET: HOST-RESOURCES-MIB::hrSystemUptime (1.3.6.1.2.1.25.1.1) :
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.1.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysDescr (1.3.6.1.2.1.1.1) : xxxx
Tue Jan 31 10:26:23 2023: snmpEngineTime says: up since: Mon Jan 30 23:20:23 2023 / 11h 6m 0s
Tue Jan 31 10:26:23 2023: sysUptime says: up since: Mon Jan 30 23:18:45 2023 / 11h 7m 37s
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: uptime: 39960
Tue Jan 31 10:26:23 2023: up since: Mon Jan 30 23:20:23 2023
Tue Jan 31 10:26:23 2023: whoami: xxxxxx
Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Device::check_messages

Tue Jan 31 10:26:23 2023: I am a xxxxxx

Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::SYNOPTICSROOTMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::JUNIPERMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::NETGEARMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::NETSCREENPRODUCTSMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::PANPRODUCTSMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::HPICFCHASSIS
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::CHECKPOINTMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.2.1.1.2.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::MIB2MIB
Tue Jan 31 10:26:23 2023: GET: MIB-2-MIB::sysObjectID (1.3.6.1.2.1.1.2) : 1.3.6.1.4.1.12356.101.1.1001
Tue Jan 31 10:26:23 2023: implements FORTINET-FORTIGATE-MIB (sysobj)
Tue Jan 31 10:26:23 2023: using Classes::Fortigate
Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::override_opt

Tue Jan 31 10:26:23 2023: AUTOLOAD Monitoring::GLPlugin::Commandline::override_opt

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::check_messages

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::analyze_and_check_environmental_subsystem

Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: get_snmp_table_objects FORTINET-FORTIGATE-MIB fgHwSensorTable
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.4.1.12356.101.4.3.2
Tue Jan 31 10:26:23 2023: get_table $VAR1 = {
'-maxrepetitions' => 20,
'-baseoid' => '1.3.6.1.4.1.12356.101.4.3.2'
};

Tue Jan 31 10:26:23 2023: get_table returned 44 oids in 0s
Tue Jan 31 10:26:23 2023: get_matching_oids $VAR1 = {
'-columns' => [
'1.3.6.1.4.1.12356.101.4.3.2'
]
};

Tue Jan 31 10:26:23 2023: get_matching_oids returns 44 from 50 oids
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: get_snmp_table_objects default returns 11 entries
Argument "ON" isn't numeric in numeric eq (==) at ./check_nwc_health line 71088.
Argument "LOST" isn't numeric in numeric eq (==) at ./check_nwc_health line 71088.
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.4.1.12356.101.4.1.6
Tue Jan 31 10:26:23 2023: GET: FORTINET-FORTIGATE-MIB::fgSysDiskUsage (1.3.6.1.4.1.12356.101.4.1.6) :
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.4.1.12356.101.4.1.6.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: GET: FORTINET-FORTIGATE-MIB::fgSysDiskUsage (1.3.6.1.4.1.12356.101.4.1.6) : 1198
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.4.1.12356.101.4.1.7
Tue Jan 31 10:26:23 2023: GET: FORTINET-FORTIGATE-MIB::fgSysDiskCapacity (1.3.6.1.4.1.12356.101.4.1.7) :
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: cache: 1.3.6.1.4.1.12356.101.4.1.7.0
Tue Jan 31 10:26:23 2023: i know package Monitoring::GLPlugin::SNMP::MibsAndOids::FORTINETFORTIGATEMIB
Tue Jan 31 10:26:23 2023: GET: FORTINET-FORTIGATE-MIB::fgSysDiskCapacity (1.3.6.1.4.1.12356.101.4.1.7) : 450673
Tue Jan 31 10:26:23 2023: $self->{components}->{environmental_subsystem} = Classes::Fortigate::Component::EnvironmentalSubsystem->new()
Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::check_environmental_subsystem

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Sensor::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Sensor::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Fan::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Fan::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Fan::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::SensorSubsystem::Temperature::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::DiskSubsystem::set_thresholds

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::DiskSubsystem::check_thresholds

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::DiskSubsystem::add_perfdata

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::Component::EnvironmentalSubsystem::check_messages

[SENSORSUBSYSTEM]
info: checking sensors
[SENSOR_1]
UNKNOWN: 1
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 1
fgHwSensorEntName: PSU [1]
fgHwSensorEntValue: ON
info: sensor PSU [1] alarm status is false

[TEMPERATURE_10]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 10
fgHwSensorEntName: B50210_1 Temperature
fgHwSensorEntValue: 34.636002
info: B50210_1 Temperature alarm status is false

[TEMPERATURE_11]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 11
fgHwSensorEntName: B50210_2 Temperature
fgHwSensorEntValue: 36.858398
info: B50210_2 Temperature alarm status is false

[SENSOR_2]
UNKNOWN: 1
fgHwSensorEntAlarmStatus: true
fgHwSensorEntIndex: 2
fgHwSensorEntName: PSU [2]
fgHwSensorEntValue: LOST
info: sensor PSU [2] alarm status is true

[FAN_3]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 3
fgHwSensorEntName: SYS Fan1 Speed
fgHwSensorEntValue: 4369
info: SYS Fan1 Speed alarm status is false

[FAN_4]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 4
fgHwSensorEntName: SYS Fan2 Speed
fgHwSensorEntValue: 4327
info: SYS Fan2 Speed alarm status is false

[TEMPERATURE_5]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 5
fgHwSensorEntName: Ext Temperature
fgHwSensorEntValue: 37.875
info: Ext Temperature alarm status is false

[FAN_6]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 6
fgHwSensorEntName: Fan Temperature
fgHwSensorEntValue: 26
info: Fan Temperature alarm status is false

[TEMPERATURE_7]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 7
fgHwSensorEntName: CPU_ON-DIE Temperature
fgHwSensorEntValue: 40.459999
info: CPU_ON-DIE Temperature alarm status is false

[TEMPERATURE_8]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 8
fgHwSensorEntName: BCM_switch Temperature
fgHwSensorEntValue: 50.700001
info: BCM_switch Temperature alarm status is false

[TEMPERATURE_9]
fgHwSensorEntAlarmStatus: false
fgHwSensorEntIndex: 9
fgHwSensorEntName: B50185 Temperature
fgHwSensorEntValue: 66.495796
info: B50185 Temperature alarm status is false

[DISKSUBSYSTEM]
fgSysDiskCapacity: 450673
fgSysDiskUsage: 1198
usage: 0.265824666665187
info: disk is 0.27% full

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::check_messages

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::check_messages

Tue Jan 31 10:26:23 2023: AUTOLOAD Classes::Fortigate::nagios_exit

CRITICAL - sensor PSU [2] alarm status is true, disk is 0.27% full
checking sensors
sensor PSU [1] alarm status is false
B50210_1 Temperature alarm status is false
B50210_2 Temperature alarm status is false
sensor PSU [2] alarm status is true
SYS Fan1 Speed alarm status is false
SYS Fan2 Speed alarm status is false
Ext Temperature alarm status is false
Fan Temperature alarm status is false
CPU_ON-DIE Temperature alarm status is false
BCM_switch Temperature alarm status is false
B50185 Temperature alarm status is false
checking disks
disk is 0.27% full | 'sensor_PSU [1]'=0;;;; 'temp_B50210_1 Temperature'=34.64;;;; 'temp_B50210_2 Temperature'=36.86;;;; 'sensor_PSU [2]'=0;;;; 'rpm_SYS Fan1 Speed'=4369;;;; 'rpm_SYS Fan2 Speed'=4327;;;; 'temp_Ext Temperature'=37.88;;;; 'rpm_Fan Temperature'=26;;;; 'temp_CPU_ON-DIE Temperature'=40.46;;;; 'temp_BCM_switch Temperature'=50.70;;;; 'temp_B50185 Temperature'=66.50;;;; 'disk_usage'=0.27%;80;90;0;100

dcec added a commit to dcec/check_nwc_health that referenced this issue Feb 8, 2023
fix PSU sensors on Fortigate FortiOS 7.0 lausser#310
lausser added a commit that referenced this issue May 28, 2023
fix PSU sensors on Fortigate FortiOS 7.0 #310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant