Bug 1256731
| Summary: | /usr/lib64/nagios/plugins/check_mysql looks in the wrong place for .my.cnf | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alain D D Williams <addw> |
| Component: | nagios-plugins | Assignee: | Scott Wilkerson <swilkerson> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | admin, jose.p.oliveira.oss, lhh, ondrejj, redhat, s, swilkerson, waja |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 2.0.3-3.fc21 nagios-plugins-2.0.3-3.el6 nagios-plugins-2.0.3-3.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-09-14 23:18:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Faced with the same problem. Just to cross-reference: https://bugs.centos.org/view.php?id=9333 This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. I was able to replicate this issue and am working on a patch to apply and send upstream. nagios-plugins-2.0.3-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8046 nagios-plugins-2.0.3-3.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15637 nagios-plugins-2.0.3-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8047 nagios-plugins-2.0.3-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15638 nagios-plugins-2.0.3-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update nagios-plugins'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15636 nagios-plugins-2.0.3-3.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update nagios-plugins'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15637 nagios-plugins-2.0.3-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update nagios-plugins'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15638 nagios-plugins-2.0.3-3.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update nagios-plugins'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8047 nagios-plugins-2.0.3-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update nagios-plugins'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-8046 nagios-plugins-2.0.3-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-2.0.3-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15638 nagios-plugins-2.0.3-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-2.0.3-3.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-2.0.3-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-2.0.3-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. Just for the records. This issue is fixed by the origin Plugins Maintainer in monitoring-plugins since 3.4.2014 in the VCS and with the release of monitoring-plugins 2.1.1. Cheers, Jan. |
Description of problem: A long set up nagios config broke with the recent Redhat 6.7 update. /usr/lib64/nagios/plugins/check_mysql --username=nagiostest This is in fact described in the file /etc/nagios/objects/commands.cfg command_line env HOME=/var/spool/nagios/ $USER1$/check_mysql --username=nagiostest This has not changed. Version-Release number of selected component (if applicable): How reproducible: Every time Steps to Reproduce: 1. Hack to test: /etc/passwd - set nagios login shell to /bin/bash so that su -c works 2. Set up a mysql user nagiostest with password SecretWord 3. Create ~nagios/.my.cnf containing: [client] password=SecretWord 4. Run: su nagios -c '/usr/lib64/nagios/plugins/check_mysql --username=nagiostest' Observe that there is output 5. Do the recent nagios upgrade 6. Repeat step 4 and watch it fail. 7. ln ~nagios/.my.cnf /var/spool/nagios/..cnf 8. Repeat 4. and it will work again.