check_smartmon - IndexError: list index out ofrange

Jake Solid richardsolid at gmail.com
Wed Jul 30 16:25:43 CEST 2008


Same error message. I tested using sdb1, sdb2, sdd1, sdb3 .

Here is the output:

[root@ proc]# more mdstat
Personalities : [raid1]
md2 : active raid1 sdb1[1] sda1[0]
      104320 blocks [2/2] [UU]

md0 : active raid1 sdb2[1] sda2[0]
      18434496 blocks [2/2] [UU]

md3 : active raid1 sdd1[1] sdc1[0]
      244195904 blocks [2/2] [UU]

md1 : active raid1 sdb3[1] sda3[0]
      225656896 blocks [2/2] [UU]

unused devices: <none>

[root@ plugins]# ./check_smartmon -d /dev/sdb1 -v 3
Get device name
Device: /dev/sdb1
Check device
Check if /dev/sdb1 does exist and can be read
Check if /usr/sbin/smartctl does exist and can be read
Path to smartctl: /usr/sbin/smartctl
Call smartctl
Get device health status: /usr/sbin/smartctl -H /dev/sdb1
Get device temperature: /usr/sbin/smartctl -A /dev/sdb1
Parse smartctl output
Traceback (most recent call last):
  File "./check_smartmon", line 254, in ?
    (healthStatus, temperature) = parseOutput(healthStatusOutput,
temperatureOutput)
  File "./check_smartmon", line 163, in parseOutput
    healthStatus = parts[-1]
IndexError: list index out of range





On Tue, Jul 29, 2008 at 4:27 PM, Marc Powell <marc at ena.com> wrote:
>
> On Jul 29, 2008, at 2:45 PM, Jake Solid wrote:
>
>> Using the devices doesnt work. Do I need a patch for thise plugin?
>>
>> [root@ ~]# pvscan
>>  PV /dev/md3   VG VolGroup01   lvm2 [232.88 GB / 45.38 GB free]
>>  PV /dev/md1   VG VolGroup00   lvm2 [215.19 GB / 26.19 GB free]
>>  Total: 2 [448.06 GB] / in use: 2 [448.06 GB] / in no VG: 0 [0   ]
>>
>
>> On Tue, Jul 29, 2008 at 2:02 PM, Marc Powell <marc at ena.com> wrote:
>
>>> They should be /dev/sd* or /dev/hd*.
>
> You're still not checking the disk devices themselves. md devices are
> software raid groups so /dev/md3, etc are likely to be comprised of
> multiple disks. Do you know the kind and number of disks that you have
> installed in this machine?
>
> 'cat /proc/mdstat'. That should show you the drive partitions that
> make up the md devices. Again, look for 'sda, sdb, etc' or 'hda, hdb,
> etc'.
>
> You could always just try running 'check_smartmon -d /dev/hda -v 3' or
> 'check_smartmon -d /dev/sda -v 3' to see if it's even going to work.
> One of those is going to exist at a minimum.
>
> --
> Marc
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list