<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Am 25.02.2010 15:38, schrieb Trond Hasle Amundsen:
<blockquote cite="mid:15tiq9lcrd1.fsf@tux.uio.no" type="cite">
  <pre wrap="">Nicole Hähnel <a class="moz-txt-link-rfc2396E" href="mailto:ml@nicole-haehnel.de"><ml@nicole-haehnel.de></a> writes:

  </pre>
  <blockquote type="cite">
    <pre wrap="">it's a windows server.
So I'm using check_openmanage with snmp.

check_openmanage -s -C $ARG1$ -H $HOSTADDRESS$ -e -i -p --state --check 
intrusion=1,alertlog=1,esmlog=1 -o 3 --htmlinfo de

List of Physical Disks on Controller CERC SATA 1.5/6ch (Slot 4)

Controller CERC SATA 1.5/6ch (Slot 4)
ID                        : 0:0
Status                    : Unknown
Name                      : Physical Disk 0:0
State                     : Unknown
Failure Predicted         : No
Progress                  : Not Applicable
Bus Protocol              : SATA
Media                     : HDD
Capacity                  : 149.05 GB (160040681472 bytes)
Used RAID Disk Space      : 0.00 GB (0 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : WDC
Product ID                : WD1600JS-55MHB0
Revision                  : 02.0
Serial No.                :      WD-WCANM3083963
Negotiated Speed          : Not Available
Capable Speed             : Not Available
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available
    </pre>
  </blockquote>
  <pre wrap="">
Ok, so the status and state are both "Unknown". I'm guessing that these
values are completely missing in the SNMP output, which is why perl
chokes on it. I've added some robustness in the code that should handle
this case properly. Please try the beta version (3.5.7-beta1) available
here:

  <a class="moz-txt-link-freetext" href="http://folk.uio.no/trondham/tmp/check_openmanage-3.5.7-beta1">http://folk.uio.no/trondham/tmp/check_openmanage-3.5.7-beta1</a>

The plugin will give an alert on the drive, which in my opinion is the
correct thing to do. You can always blacklist the drive. The cause of
the error is obviously that this is a non-Dell drive, which Openmanage
doesn't know how to handle.

BTW, you can reduce your command definition to this:

  check_openmanage -s -C $ARG1$ -H $HOSTADDRESS$ -e -i -p -a -o 3 --htmlinfo de

The effect will be the same. You probably defined the command a while
ago, and there have been some changes to options since then.

Cheers,
  </pre>
</blockquote>
<br>
Hi,<br>
<br>
I tested the new version:<br>
<br>
CRITICAL: [xxx] Physical Disk 0:0 [Wdc WD1600JS-55MHB0, 160GB] on ctrl
0 needs attention: <br>
------ SYSTEM: <a
 href="http://support.dell.com/support/edocs/systems/pe830/"></a>PowerEdge
830, SN: xxx<br>
INTERNAL ERROR: Use of uninitialized value in string eq at
/usr/lib64/nagios/plugins/grontmij/check_openmanage line 1432.<br>
INTERNAL ERROR: Use of uninitialized value in sprintf at
/usr/lib64/nagios/plugins/grontmij/check_openmanage line 1445.<br>
<br>
Yes, I defined the command some time ago.<br>
<br>
Nicole<br>
</body>
</html>