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 + 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", }, }; 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