<div dir="ltr">I had to change the folowing line:<br><br>elif line == "=== START OF READ SMART DATA SECTION ===":<br><br>to:<br><br>elif line == "":<br><br>Now I get the following output:<br><br>[root@vhost3 plugins]# /usr/sbin/smartctl -c /dev/sda<br>
smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen<br>Home page is <a href="http://smartmontools.sourceforge.net/">http://smartmontools.sourceforge.net/</a><br><br>[root@ plugins]# ./check_smartmon -d /dev/sda -v 3<br>
Get device name<br>Device: /dev/sda<br>Check device<br>Check if /dev/sda does exist and can be read<br>Check if /usr/sbin/smartctl does exist and can be read<br>Path to smartctl: /usr/sbin/smartctl<br>Call smartctl<br>Get device health status: /usr/sbin/smartctl -H /dev/sda<br>
Get device temperature: /usr/sbin/smartctl -A /dev/sda<br>Parse smartctl output<br>Health status: OK<br>Temperature: 0<br>Generate return information<br>CRITICAL: device does not pass health status<br><br><br>When I run  /usr/sbin/smartctl -A /dev/sda i get no output. My smartctl -h mentions that -A should showdevice SMART vendor-specific Attributes and values.<br>
<br><br>Is there a patch for this plugin?<br><br><br><br><br><br><div class="gmail_quote">On Wed, Jul 30, 2008 at 4:14 PM, Jake Solid <<a href="mailto:richardsolid@gmail.com">richardsolid@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><span>I have tried all devices and still get the same error. This is the list of devices I also get from the </span>/proc/diskstats<br><br> 8    0 sda 25734471 16602821 1339905462 54354327 36018237 36524677 652113254 274984492 0 160612328 329502850<br>

   8    1 sda1 120903 7083070 18598 56558<br>   8    2 sda2 1907458 15256829 4964528 39716224<br>   8    3 sda3 40329953 1317565059 67589119 540712952<br>   8   16 sdb 25722132 16706560 1343758934 54666871 36005484 36537227 652113254 305156743 0 161636686 359918726<br>

   8   17 sdb1 118130 6980908 18598 56558<br>   8   18 sdb2 1909458 15272829 4964528 39716224<br>   8   19 sdb3 40421862 1321504693 67589119 540712952<br>   8   32 sdc 103143421 58436289 6265866314 369891692 1094774888 9800463910 87446851840 3608291566 0 3654056035 3980408429<br>

   8   33 sdc1 161602126 1970898506 2305878568 1267159360<br>   8   48 sdd 100633389 57176799 6123123524 423999064 1094595052 9800655254 87446851840 1018639266 0 3474247903 1443740264<br>   8   49 sdd1 157833088 1828155724 2305878568 1267159360<br>

   9    1 md1 80751227 0 2639069150 0 58671609 0 469372872 0 0 0 0<br>   9    3 md3 319434916 0 12388988218 0 10860769840 0 86886158720 0 0 0 0<br>   9    0 md0 3816104 0 30528832 0 4931824 0 39454592 0 0 0 0<br>   9    2 md2 238621 0 14063142 0 15372 0 30750 0 0 0 0<br>

 253    0 dm-0 65594847 0 1744222050 176603169 25553210 0 204425680 641619548 0 71511076 818228479<br> 253    1 dm-1 3458 0 27658 47456 441531 0 3532248 983248835 0 265318 983319188<br> 253    2 dm-2 15152647 0 894817242 35982441 32676868 0 261414944 871216263 0 58218351 907204904<br>

  22   64 hdd 0 0 0 0 0 0 0 0 0 0 0<br> 253    3 dm-3 319434773 0 12388987074 1393510146 10860769840 0 86886158720 3778348986 0 3762294749 897218213<div><div></div><div class="Wj3C7c"><br><br><br><br><br><div class="gmail_quote">
On Wed, Jul 30, 2008 at 11:35 AM, Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com" target="_blank">marc@ena.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My last attempt... More below.<br>
<div><br>
On Jul 30, 2008, at 9:25 AM, Jake Solid wrote:<br>
<br>
> Same error message. I tested using sdb1, sdb2, sdd1, sdb3 .<br>
><br>
> Here is the output:<br>
><br>
> [root@ proc]# more mdstat<br>
> Personalities : [raid1]<br>
> md2 : active raid1 sdb1[1] sda1[0]<br>
<br>
<br>
</div><div>> [root@ plugins]# ./check_smartmon -d /dev/sdb1 -v 3<br>
<br>
</div>As indicated a few different ways in previous e-mails, I expect you<br>
should use '-d /dev/sda' or '-d /dev/sdb', not '-d /dev/sdb1' since<br>
that is a specific partition on a disk, and not the disk device itself.<br>
<div><div></div><div><br>
--<br>
Marc<br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>