check_smartmon patching
brom
brrab at yandex.ru
Wed Aug 1 14:19:52 CEST 2007
Hi all!!!
I try to use cneck_smartmon plugin with SCSI drives and I have this
error where I say check_smartmon -d device
"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"
I found the patch "patch for devicetype as parameter and performance
output (bems!, 27.03.2007 10:41:38)" on nagiosexchange.org but I
could not apply this patch both on FreeBSD and Linux. I use the unix
patch command and where i try apply this patch with that:
#patch < patch_nagiosexchange.org I have this error:
"Hmm... Looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** check_smartmon 2007-03-27 08:38:39.000000000 +0200
|--- check_smartmon_ata.pyt 2007-03-27 10:33:06.000000000 +0200
--------------------------
Patching file check_smartmon using Plan A...
patch: **** malformed patch at line 6: parser.add_option("-d",
"--device", action="store", dest="device", default="",
metavar="DEVICE", "
Please, tell me decision, as I can apply this patch???
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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