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::server::hp::ilo::xmlapi::plugin] multiple calls to the "--warning" option in "hardware" mode #5035

Open
Aleksey-Maksimov opened this issue May 21, 2024 · 0 comments

Comments

@Aleksey-Maksimov
Copy link

Hello

We use multiple calls to the "--warning" option in "hardware" mode for "hardware::server::hp::ilo::xmlapi::plugin".
Perfdata are formed correctly.
That is, in perfdata we see the main threshold for all sensors ('temperature,.*,5:55') and individual sensors have their own specific thresholds (01-Inlet Ambient, 27-HD Controller, 28-LOM Card).

However, the problem is that the main output of the plugin is not generated correctly. In this example, the plugin output should be "OK" and not "WARNING".

# ./centreon_plugins.pl --plugin=hardware::server::hp::ilo::xmlapi::plugin 
--mode=hardware 
--change-perfdata '.*,,eval(%(label) =~ s/#hardware//g)' 
--filter-perfdata-adv 'not (%(label) =~ /\.(count)/)' 
--filter-uom 'null' 
--hostname 'ilo125.holding.com' --password 'passw0rd' --username 'monitor'
--ssl-opt 'SSL_verify_mode => SSL_VERIFY_NONE' --timeout '60' 
--use-new-perfdata 
--warning 'temperature,.*,5:55' 
--warning 'fan,.*,5:95' 
--warning 'temperature,01-Inlet Ambient,5:37' 
--warning 'temperature,27-HD Controller,5:70' 
--warning 'temperature,28-LOM Card,5:70'

WARNING: Temperature '27-HD Controller' is 56 C - Temperature '28-LOM Card' is 56 C | 
'Fan 1.fan.speed.percentage'=45;5:95;;0; 
'Fan 2.fan.speed.percentage'=45;5:95;;0; 
'Fan 3.fan.speed.percentage'=45;5:95;;0; 
'Fan 4.fan.speed.percentage'=45;5:95;;0; 
'Fan 5.fan.speed.percentage'=45;5:95;;0; 
'Fan 6.fan.speed.percentage'=45;5:95;;0; 
'01-Inlet Ambient.temperature.celsius'=19;5:37;;; 
'02-CPU 1.temperature.celsius'=40;5:55;;; 
'03-CPU 2.temperature.celsius'=40;5:55;;; 
'04-P1 DIMM 1-6.temperature.celsius'=32;5:55;;; 
'05-P1 DIMM 7-12.temperature.celsius'=34;5:55;;; 
'06-P2 DIMM 1-6.temperature.celsius'=29;5:55;;; 
'07-P2 DIMM 7-12.temperature.celsius'=32;5:55;;; 
'08-HD Max.temperature.celsius'=35;5:55;;; 
'10-Chipset.temperature.celsius'=40;5:55;;; 
'11-PS 1 Inlet.temperature.celsius'=23;5:55;;; 
'12-PS 2 Inlet.temperature.celsius'=31;5:55;;; 
'13-VR P1.temperature.celsius'=41;5:55;;; 
'14-VR P2.temperature.celsius'=39;5:55;;; 
'15-VR P1 Mem.temperature.celsius'=30;5:55;;; 
'16-VR P1 Mem.temperature.celsius'=33;5:55;;; 
'17-VR P2 Mem.temperature.celsius'=28;5:55;;; 
'18-VR P2 Mem.temperature.celsius'=31;5:55;;; 
'19-PS 1 Internal.temperature.celsius'=40;5:55;;; 
'20-PS 2 Internal.temperature.celsius'=40;5:55;;; 
'27-HD Controller.temperature.celsius'=56;5:70;;; 
'28-LOM Card.temperature.celsius'=56;5:70;;; 
'29-LOM.temperature.celsius'=47;5:55;;; 
'30-Front Ambient.temperature.celsius'=28;5:55;;; 
'31-PCI 1 Zone..temperature.celsius'=32;5:55;;; 
'32-PCI 2 Zone..temperature.celsius'=32;5:55;;; 
'33-PCI 3 Zone..temperature.celsius'=32;5:55;;; 
'37-HD Cntlr Zone.temperature.celsius'=37;5:55;;; 
'38-I/O Zone.temperature.celsius'=33;5:55;;; 
'39-P/S 2 Zone.temperature.celsius'=33;5:55;;; 
'40-Battery Zone.temperature.celsius'=32;5:55;;; 
'41-iLO Zone.temperature.celsius'=36;5:55;;; 
'43-Storage Batt.temperature.celsius'=24;5:55;;; 
'44-Fuse.temperature.celsius'=31;5:55;;;
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