Bug 1256731 - /usr/lib64/nagios/plugins/check_mysql looks in the wrong place for .my.cnf
Summary: /usr/lib64/nagios/plugins/check_mysql looks in the wrong place for .my.cnf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nagios-plugins
Version: 23
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Scott Wilkerson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-25 10:54 UTC by Alain D D Williams
Modified: 2015-10-05 11:56 UTC (History)
8 users (show)

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:
Clone Of:
Environment:
Last Closed: 2015-09-14 23:18:00 UTC


Attachments (Terms of Use)

Description Alain D D Williams 2015-08-25 10:54:01 UTC
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.

Comment 1 Pavel Raykov 2015-08-31 11:12:38 UTC
Faced with the same problem. Just to cross-reference: https://bugs.centos.org/view.php?id=9333

Comment 2 Fedora Admin XMLRPC Client 2015-08-31 15:11:34 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2015-08-31 15:16:19 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Scott Wilkerson 2015-09-11 16:44:38 UTC
I was able to replicate this issue and am working on a patch to apply and send upstream.

Comment 5 Fedora Update System 2015-09-11 18:25:33 UTC
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

Comment 6 Fedora Update System 2015-09-11 18:25:38 UTC
nagios-plugins-2.0.3-3.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15637

Comment 7 Fedora Update System 2015-09-11 18:25:42 UTC
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

Comment 8 Fedora Update System 2015-09-11 18:25:48 UTC
nagios-plugins-2.0.3-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15638

Comment 9 Fedora Update System 2015-09-12 21:25:19 UTC
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

Comment 10 Fedora Update System 2015-09-13 03:49:11 UTC
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

Comment 11 Fedora Update System 2015-09-13 04:20:22 UTC
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

Comment 12 Fedora Update System 2015-09-14 01:50:34 UTC
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

Comment 13 Fedora Update System 2015-09-14 02:49:35 UTC
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

Comment 14 Fedora Update System 2015-09-14 23:17:59 UTC
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.

Comment 15 Fedora Update System 2015-09-18 20:56:23 UTC
nagios-plugins-2.0.3-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15638

Comment 16 Fedora Update System 2015-09-19 18:54:59 UTC
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.

Comment 17 Fedora Update System 2015-09-21 16:42:04 UTC
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.

Comment 18 Fedora Update System 2015-10-01 18:56:12 UTC
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.

Comment 19 Fedora Update System 2015-10-02 00:25:23 UTC
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.

Comment 20 Jan Wagner 2015-10-05 11:56:41 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.