centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
312 stars 275 forks source link

[hardware::server::hp::ilo::xmlapi::plugin] - wrong output #600

Closed vurmil closed 7 years ago

vurmil commented 7 years ago

image

image

CRITICAL: CPU 'Proc 1' status is '' - CPU 'Proc 2' status is '' | 'fan_Fan Block 1'=33%;;;0; 'fan_Fan Block 2'=33%;;;0; 'fan_Fan Block 3'=33%;;;0; 'fan_Fan Block 4'=33%;;;0; 'temp_Temp 1'=17C;;;; 'temp_Temp 2'=40C;;;; 'temp_Temp 3'=40C;;;; 'temp_Temp 4'=29C;;;; 'temp_Temp 5'=30C;;;; 'temp_Temp 6'=29C;;;; 'temp_Temp 7'=26C;;;; 'temp_Temp 8'=30C;;;; 'temp_Temp 9'=26C;;;; 'temp_Temp 10'=29C;;;; 'temp_Temp 11'=24C;;;; 'temp_Temp 12'=25C;;;; 'temp_Temp 13'=42C;;;; 'temp_Temp 14'=23C;;;; 'temp_Temp 15'=29C;;;; 'temp_Temp 16'=24C;;;; 'temp_Temp 17'=22C;;;; 'temp_Temp 18'=33C;;;; 'temp_Temp 19'=35C;;;; 'temp_Temp 20'=35C;;;; 'temp_Temp 21'=40C;;;; 'temp_Temp 22'=41C;;;; 'temp_Temp 23'=37C;;;; 'temp_Temp 24'=44C;;;; 'temp_Temp 25'=29C;;;; 'temp_Temp 26'=44C;;;; 'temp_Temp 27'=35C;;;; 'temp_Temp 28'=73C;;;;

[root@xxx centreon-plugins]# ./centreon_plugins.pl --plugin=hardware::server::hp::ilo::xmlapi::plugin --mode=hardware --hostname=X.X.X.X --username=admin --password=xxxx --debug Use of uninitialized value in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 52. Use of uninitialized value in sprintf at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 57. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value in sprintf at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 62. Use of uninitialized value in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 52. Use of uninitialized value in sprintf at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 57. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value $options{"value"} in pattern match (m//) at /usr/lib/nagios/plugins/centreon-plugins/centreon/plugins/templates/hardware.pm line 386. Use of uninitialized value in sprintf at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm line 62. CRITICAL: CPU 'Proc 1' status is '' - CPU 'Proc 2' status is '' | 'fan_Fan Block 1'=33%;;;0; 'fan_Fan Block 2'=33%;;;0; 'fan_Fan Block 3'=33%;;;0; 'fan_Fan Block 4'=33%;;;0; 'temp_Temp 1'=17C;;;; 'temp_Temp 2'=40C;;;; 'temp_Temp 3'=40C;;;; 'temp_Temp 4'=29C;;;; 'temp_Temp 5'=30C;;;; 'temp_Temp 6'=29C;;;; 'temp_Temp 7'=26C;;;; 'temp_Temp 8'=30C;;;; 'temp_Temp 9'=26C;;;; 'temp_Temp 10'=29C;;;; 'temp_Temp 11'=24C;;;; 'temp_Temp 12'=25C;;;; 'temp_Temp 13'=42C;;;; 'temp_Temp 14'=23C;;;; 'temp_Temp 15'=29C;;;; 'temp_Temp 16'=24C;;;; 'temp_Temp 17'=22C;;;; 'temp_Temp 18'=33C;;;; 'temp_Temp 19'=35C;;;; 'temp_Temp 20'=35C;;;; 'temp_Temp 21'=40C;;;; 'temp_Temp 22'=41C;;;; 'temp_Temp 23'=37C;;;; 'temp_Temp 24'=44C;;;; 'temp_Temp 25'=29C;;;; 'temp_Temp 26'=44C;;;; 'temp_Temp 27'=35C;;;; 'temp_Temp 28'=73C;;;; <?xml version="1.0"?>

<?xml version="1.0"?>

<?xml version="1.0"?>

<?xml version="1.0"?>

<?xml version="1.0"?>

<?xml version="1.0"?>

<?xml version="1.0"?>

Checking fans fan 'Fan Block 1' status is 'OK' [instance = Fan Block 1] [value = 33] fan 'Fan Block 2' status is 'OK' [instance = Fan Block 2] [value = 33] fan 'Fan Block 3' status is 'OK' [instance = Fan Block 3] [value = 33] fan 'Fan Block 4' status is 'OK' [instance = Fan Block 4] [value = 33] Checking temperatures temperature 'Temp 1' status is 'OK' [instance = Temp 1] [location = Ambient] [value = 17] temperature 'Temp 2' status is 'OK' [instance = Temp 2] [location = CPU] [value = 40] temperature 'Temp 3' status is 'OK' [instance = Temp 3] [location = CPU] [value = 40] temperature 'Temp 4' status is 'OK' [instance = Temp 4] [location = Memory] [value = 29] temperature 'Temp 5' status is 'OK' [instance = Temp 5] [location = Memory] [value = 30] temperature 'Temp 6' status is 'OK' [instance = Temp 6] [location = Memory] [value = 29] temperature 'Temp 7' status is 'OK' [instance = Temp 7] [location = Memory] [value = 26] temperature 'Temp 8' status is 'OK' [instance = Temp 8] [location = Memory] [value = 30] temperature 'Temp 9' status is 'OK' [instance = Temp 9] [location = Memory] [value = 26] temperature 'Temp 10' status is 'OK' [instance = Temp 10] [location = Memory] [value = 29] temperature 'Temp 11' status is 'OK' [instance = Temp 11] [location = Memory] [value = 24] temperature 'Temp 12' status is 'OK' [instance = Temp 12] [location = Power Supply] [value = 25] temperature 'Temp 13' status is 'OK' [instance = Temp 13] [location = Power Supply] [value = 42] temperature 'Temp 14' status is 'OK' [instance = Temp 14] [location = Memory] [value = 23] temperature 'Temp 15' status is 'OK' [instance = Temp 15] [location = CPU] [value = 29] temperature 'Temp 16' status is 'OK' [instance = Temp 16] [location = CPU] [value = 24] temperature 'Temp 17' status is 'OK' [instance = Temp 17] [location = Memory] [value = 22] temperature 'Temp 18' status is 'OK' [instance = Temp 18] [location = CPU] [value = 33] temperature 'Temp 19' status is 'OK' [instance = Temp 19] [location = System] [value = 35] temperature 'Temp 20' status is 'OK' [instance = Temp 20] [location = System] [value = 35] temperature 'Temp 21' status is 'OK' [instance = Temp 21] [location = System] [value = 40] temperature 'Temp 22' status is 'OK' [instance = Temp 22] [location = System] [value = 41] temperature 'Temp 23' status is 'OK' [instance = Temp 23] [location = System] [value = 37] temperature 'Temp 24' status is 'OK' [instance = Temp 24] [location = System] [value = 44] temperature 'Temp 25' status is 'OK' [instance = Temp 25] [location = System] [value = 29] temperature 'Temp 26' status is 'OK' [instance = Temp 26] [location = System] [value = 44] temperature 'Temp 27' status is 'OK' [instance = Temp 27] [location = Storage] [value = 35] temperature 'Temp 28' status is 'OK' [instance = Temp 28] [location = System] [value = 73] Checking vrm vrm 'VRM 1' status is 'OK' [instance = VRM 1] vrm 'VRM 2' status is 'OK' [instance = VRM 2] Checking power supplies power supply 'Power Supply 1' status is 'OK' [instance = Power Supply 1] power supply 'Power Supply 2' status is 'OK' [instance = Power Supply 2] Checking cpu cpu 'Proc 1' status is '' [instance = Proc 1] cpu 'Proc 2' status is '' [instance = Proc 2] Checking memories Checking nic Checking batteries Checking controllers Checking drive enclosures Checking physical drives Checking logical drives

vurmil commented 7 years ago

debug

http://pastebin.com/WR7iRjfk

garnier-quentin commented 7 years ago

Could you test it ?

vurmil commented 7 years ago

ssh show: OK

OK: All 36 components are ok [4/4 fans, 2/2 psu, 28/28 temperatures, 2/2 vrm].

but Centreon GUI: CRITICAL

image

garnier-quentin commented 7 years ago

Should be also in centreon. Maybe you need to wait a little.

vurmil commented 7 years ago

Thx, now is OK :) 👍