Summary: | net-mgmt/nagios-check_smartmon: Device-dependent temperature responses cause ValueError | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Thomas Eckhardt <freebsd> | ||||||||
Component: | Individual Port(s) | Assignee: | Kubilay Kocak <koobs> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Some People | CC: | ports, python | ||||||||
Priority: | --- | Flags: | ports:
maintainer-feedback+
koobs: merge-quarterly+ |
||||||||
Version: | Latest | ||||||||||
Hardware: | amd64 | ||||||||||
OS: | Any | ||||||||||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236227 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237457 |
||||||||||
Attachments: |
|
Description
Thomas Eckhardt
2019-03-29 09:52:50 UTC
Hi, Thanks a lot for reporting problem. I've tested this plugin with ada disks and SCSI one. With ada0 it works correctly. With /dev/daN I receive 0. Which is not correct value. So I have to check it with different smartmon results and find out the best solution. I will come back in a few days OK, So I've checked different disks. Problem is with WDC disks and with Seagate ones (ST.....) it works or displays 0. Yes, I think that the best solution is to change line 218 of script to your solution. So I will prepare patch for script. Thanks a lot for your help and suggestions Created attachment 203518 [details]
check-smartmon.patch
I've made a patch for a port. I did not tested with poudriere because it is not needed :-)))
Thanks a lot for commiting patch.
Created attachment 203726 [details] check_smartmon python3.6 compatible Hello, I've made a patch which is working correctly with latest deafault python verion (py36). Also I've made changes to Makefile, so no port can be flavorized. I've tested these changes with poudriere. You can check logfiles at: http://pkg.bsdserwis.com/pkg/data/11x64-testing/2019-04-16_22h07m20s/logs/nagios-check_smartmon-py36-20100318_4.log http://pkg.bsdserwis.com/pkg/data/11x64-testing/2019-04-16_22h07m07s/logs/nagios-check_smartmon-py27-20100318_4.log Changes suggested by Thomas are also included Comment on attachment 203237 [details]
change parts-index from -3 to 9 for temperature
This patch is not compatible with changes which could be commited to subversion. But as I wrote these changes adre included in my patch
(In reply to Krzysztof from comment #5) OK, I have to reply to my self, because I'm reading my comment and I cannot understand :-))) So, original patch (which I'm not able to deprecade/delete) is not compatible to commit to ports. I've made a new patch, which is ready to commit. Except correcting reading temperature value, my patch covers problems with python3.6 (mix of tabs and spaces). Also I've prepared this port for flavors, so port could be built with as py27 oraz py36. I hope my patch will be commited soon without problems. If you (commiter) have any questions I will explain any doubts. Comment on attachment 203237 [details]
change parts-index from -3 to 9 for temperature
This patch is obsolete
A commit references this bug: Author: koobs Date: Thu May 23 14:27:15 UTC 2019 New revision: 502340 URL: https://svnweb.freebsd.org/changeset/ports/502340 Log: net-mgmt/nagios-check_smartmon: Fix ValueError with some drive values After upgrading to version 20100318_4, users reported ValueError for some disks [1] Also fix Python 3.x compatibility [2] While I'm here: - Pet portlint, NO_* in USE{S} section - Make concurrent-safe, installs executables in libexec PR: 236873 Reported by: Thomas Eckhardt <freebsd eckieck de> [1] Submitted by: Thomas Eckhardt <freebsd eckieck de> [1] Submitted by: Krzysztof <ports bsdserwis com> (maintainer) [2] Approved by: Krzysztof <ports bsdserwis com> (maintainer) MFH: 2019Q2 (bugfixes) Changes: head/net-mgmt/nagios-check_smartmon/Makefile head/net-mgmt/nagios-check_smartmon/files/patch-check_smartmon A commit references this bug: Author: koobs Date: Fri May 24 10:23:00 UTC 2019 New revision: 502450 URL: https://svnweb.freebsd.org/changeset/ports/502450 Log: MFH: r502340 net-mgmt/nagios-check_smartmon: Fix ValueError with some drive values After upgrading to version 20100318_4, users reported ValueError for some disks [1] Also fix Python 3.x compatibility [2] While I'm here: - Pet portlint, NO_* in USE{S} section - Make concurrent-safe, installs executables in libexec PR: 236873 Reported by: Thomas Eckhardt <freebsd eckieck de> [1] Submitted by: Thomas Eckhardt <freebsd eckieck de> [1] Submitted by: Krzysztof <ports bsdserwis com> (maintainer) [2] Approved by: Krzysztof <ports bsdserwis com> (maintainer) Approved by: ports-secteam (miwi, blanket: runtime bugfix) Changes: _U branches/2019Q2/ branches/2019Q2/net-mgmt/nagios-check_smartmon/Makefile branches/2019Q2/net-mgmt/nagios-check_smartmon/files/patch-check_smartmon Committed and merged to quarterly. Thanks! |