check_smartmon - IndexError: list index out of range

Jake Solid richardsolid at gmail.com
Tue Jul 29 18:49:03 CEST 2008


Hello,

I'm testing the Nagios-Plugin check_smartmon that uses smartmontools.
I'm getting a IndexError: list index out of range. I made sure all
paths were correct.

Any inputs?

This the output when running the plugin:

[root@ plugins]# ./check_smartmon -d /dev/VolGroup00/LogVol00 -v 3
Get device name
Device: /dev/VolGroup00/LogVol00
Check device
Check if /dev/VolGroup00/LogVol00 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/VolGroup00/LogVol00
Get device temperature: /usr/sbin/smartctl -A /dev/VolGroup00/LogVol00
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

-------------------------------------------------------------------------
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