From c691d0419b9f1e22627be8b0fe61a92b5c23e0c0 Mon Sep 17 00:00:00 2001 From: Christoph Handel Date: Wed, 3 Jan 2024 11:34:31 +0100 Subject: [PATCH 1/3] CH: replace cpqDaPhyDrvCondition with cpqDaPhyDrvStatus ilo5 starting with version 3.0 (or a little bit earlier) does not report drive status in condition. This is stated as cpqDaPhyDrvHasMonInfo is false. Using cpqDaPhyDrvStatus which is always populated. --- plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm | 6 +++--- .../HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm b/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm index 5dbc5ef..1e15fbd 100755 --- a/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm +++ b/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da.pm @@ -366,11 +366,11 @@ sub check { $self->blacklist('dapd', $self->{name}); $self->add_info( sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqDaPhyDrvCondition}); - if ($self->{cpqDaPhyDrvCondition} ne 'ok') { + $self->{name}, $self->{cpqDaPhyDrvStatus}); + if ($self->{cpqDaPhyDrvStatus} ne 'ok') { $self->add_message(CRITICAL, sprintf "physical drive %s is %s", - $self->{name}, $self->{cpqDaPhyDrvCondition}); + $self->{name}, $self->{cpqDaPhyDrvStatus}); } } diff --git a/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm b/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm index 629fe29..62b9e5a 100755 --- a/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm +++ b/plugins-scripts/HP/Proliant/Component/DiskSubsystem/Da/SNMP.pm @@ -220,6 +220,11 @@ sub init { 2 => "ok", 3 => "failed", 4 => "predictiveFailure", + 5 => "erasing", + 6 => "eraseDone", + 7 => "eraseQueued", + 8 => "ssdWearOut", + 9 => "notAuthenticated", }, }; From 9220a9e6aca6c71b0ac90c1b59af317682e1df59 Mon Sep 17 00:00:00 2001 From: Christoph Handel Date: Wed, 3 Jan 2024 11:38:11 +0100 Subject: [PATCH 2/3] CH: script for non release --- prepare.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 prepare.sh diff --git a/prepare.sh b/prepare.sh new file mode 100755 index 0000000..6016c28 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,6 @@ +#!/bin/bash +aclocal +autoheader +automake --add-missing --copy +autoconf +./configure From d4b2cee21a439ee68e21afc227bcc44528ec22b9 Mon Sep 17 00:00:00 2001 From: Christoph Handel Date: Wed, 3 Jan 2024 11:39:32 +0100 Subject: [PATCH 3/3] CH: .gitignore --- .gitignore | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b699d27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +Makefile +Makefile.in +autom4te.cache/ +config.log +config.status +configure +plugins-scripts/Makefile +plugins-scripts/Makefile.in +plugins-scripts/check_hpasm +plugins-scripts/subst +