my $params = {};
-my $USAGE = "PROGRAM_NAME: Usage: $PROGRAM_NAME [--help] [--ps-no-redundant] [--fan-no-redundant] [--fan-high]\n";
+my $USAGE = "PROGRAM_NAME: Usage: $PROGRAM_NAME [--help] [--ps-no-redundant] [--fan-no-redundant] [--fan-high] [--dimm-na]\n";
Getopt::Long::config('bundling');
if (!GetOptions (
'--help' => \$params->{'help'},
'--ps-no-redundant' => \$params->{'ps-no-redundant'},
'--fan-no-redundant' => \$params->{'fan-no-redundant'},
'--fan-high' => \$params->{'fan-high'},
+ '--dimm-na' => \$params->{'dimm-na'},
)) {
die ("$USAGE");
};
if ($line =~ /(^\s*$|-----)/) {
if ($in_block) {
- if ($status ne 'Ok') {
+ unless (($status eq 'Ok') ||
+ ($params->{'dimm-na'} && $status eq 'N/A')) {
$message = sprintf("DIMM%d: %s ", $dimm_num, $status);
$exit_status |= 2;
}
* dsa-check-hpacucli: ignore the line for unassigned disks (patch by
Emmanuel Lacour).
* dsa-check-hpacucli: accept 6.0Gbps for SAS disks.
+ * dsa-check-hpasm: Incorporate patch from Jan Wagner to ignore "N/A" DIMM
+ status.
- -- Peter Palfrader <weasel@debian.org> Fri, 15 Oct 2010 13:59:38 +0200
+ -- Peter Palfrader <weasel@debian.org> Mon, 22 Nov 2010 13:56:04 +0100
dsa-nagios-checks (87) unstable; urgency=low