FreeBSD Bugzilla – Attachment 203518 Details for
Bug 236873
net-mgmt/nagios-check_smartmon: Device-dependent temperature responses cause ValueError
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
check-smartmon.patch
_nagios-check_smartmon.patch (text/plain), 2.80 KB, created by
Krzysztof
on 2019-04-09 07:14:37 UTC
(
hide
)
Description:
check-smartmon.patch
Filename:
MIME Type:
Creator:
Krzysztof
Created:
2019-04-09 07:14:37 UTC
Size:
2.80 KB
patch
obsolete
>diff -ruN net-mgmt/nagios-check_smartmon/files/patch-check_smartmon net-mgmt/nagios-check_smartmon.new/files/patch-check_smartmon >--- net-mgmt/nagios-check_smartmon/files/patch-check_smartmon 2019-03-08 22:59:55.000000000 +0100 >+++ net-mgmt/nagios-check_smartmon.new/files/patch-check_smartmon 2019-04-09 09:10:00.126840000 +0200 >@@ -1,6 +1,6 @@ >---- check_smartmon.orig 2019-03-04 20:08:28 UTC >+--- check_smartmon.orig 2019-04-09 07:09:17 UTC > +++ check_smartmon >-@@ -161,9 +161,12 @@ def parseOutput(healthMessage, temperatureMessage, dev >+@@ -161,9 +161,12 @@ def parseOutput(healthMessage, temperatu > lines = healthMessage.split("\n") > getNext = 0 > for line in lines: >@@ -15,7 +15,7 @@ > elif line == "=== START OF READ SMART DATA SECTION ===": > getNext = 1 > # fi >-@@ -181,7 +184,7 @@ def parseOutput(healthMessage, temperatureMessage, dev >+@@ -181,7 +184,7 @@ def parseOutput(healthMessage, temperatu > parts = line.split() > if len(parts): > # 194 is the temperature value id >@@ -24,7 +24,7 @@ > temperature = int(parts[9]) > break > # fi >-@@ -190,9 +193,11 @@ def parseOutput(healthMessage, temperatureMessage, dev >+@@ -190,9 +193,11 @@ def parseOutput(healthMessage, temperatu > # if devType == ata > > if devType == "scsi": >@@ -37,7 +37,7 @@ > if stat_re.search( line ): > parts = line.split() > healthStatus = parts[-1] >-@@ -201,14 +206,20 @@ def parseOutput(healthMessage, temperatureMessage, dev >+@@ -201,14 +206,20 @@ def parseOutput(healthMessage, temperatu > # done > > # get temperature from temperatureMessage >@@ -52,7 +52,7 @@ > parts = line.split() > - temperature = int(parts[-2]) > + vprint(3, "parseOutput: we are very keen on this line: '%s'" % line) >-+ temperature = int(parts[-3]) >++ temperature = int(parts[9]) > + vprint(3, "parseOutput: Is this the temperature? '%s'" % temperature) > break > # fi >@@ -60,7 +60,7 @@ > # done > > # if devType == scsi >-@@ -225,6 +236,7 @@ def createReturnInfo(healthStatus, temperature, warnin >+@@ -225,6 +236,7 @@ def createReturnInfo(healthStatus, tempe > > # this is absolutely critical! > if healthStatus not in [ "PASSED", "OK" ]:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
ports
:
maintainer-approval+
ports
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 236873
:
203237
|
203518
|
203726