check_smartmon - IndexError: list index out ofrange

Jake Solid richardsolid at gmail.com
Tue Jul 29 21:45:32 CEST 2008


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   ]

[root at vhost3 plugins]# ./check_smartmon -d /dev/md1 -v 3
Get device name
Device: /dev/md1
Check device
Check if /dev/md1 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/md1
Get device temperature: /usr/sbin/smartctl -A /dev/md1
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
[root at vhost3 plugins]# ./check_smartmon -d /dev/md3 -v 3
Get device name
Device: /dev/md3
Check device
Check if /dev/md3 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/md3
Get device temperature: /usr/sbin/smartctl -A /dev/md3
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 2:02 PM, Marc Powell <marc at ena.com> wrote:
>
>
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Jake Solid
>> Sent: Tuesday, July 29, 2008 12:52 PM
>> To: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] check_smartmon - IndexError: list index
> out
>> ofrange
>>
>
>
>> I tried some of the divices listed here and all of them show the same
>> IndexError: list index out of range message.
>
> All are logical or virtual volumes.
>
> Run the command 'pvscan'. It should return results such as --
>
> pvscan -- ACTIVE   PV "/dev/sda5" of VG "Volume00" [132.38 GB / 0 free]
>
> This tells me that the partition 5 of the disk /dev/sda is part of
> Volume00. I would expect to use /dev/sda as the device for
> check_smartmon.
>
> They should be /dev/sd* or /dev/hd*.
>
> --
> 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