Bug 989793

Summary: check-mk-agent has wrong hardcoded config/lib directories
Product: [Fedora] Fedora EPEL Reporter: Brainslug <brainslug>
Component: check-mkAssignee: Andrea Veri <andrea.veri>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: andrea.veri
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: check-mk-1.2.2p2-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-10 00:00:10 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:

Description Brainslug 2013-07-30 00:35:57 UTC
Description of problem:

/usr/bin/check-mk-agent uses wrong $MK_LIBDIR and $MK_CONFDIR definitions. This keeps the agent from finding the plugins in /usr/share/check-mk-agent/plugins and none of the config files in /etc/check-mk-agent are parsed.

Version-Release number of selected component (if applicable):

check-mk-agent-1.2.2-3.el6.x86_64

Additional info:

This patch seems to fix the problems:

--- /usr/bin/check_mk_agent     2013-04-27 14:30:45.000000000 +0000
+++ /tmp/check_mk_agent 2013-07-30 00:14:53.512028116 +0000
@@ -27,8 +27,8 @@
 export LC_ALL=C
 unset LANG
 
-export MK_LIBDIR="/usr/lib/check_mk_agent"
-export MK_CONFDIR="/etc/check_mk"
+export MK_LIBDIR="/usr/share/check-mk-agent"
+export MK_CONFDIR="/etc/check-mk-agent"
 
 # Make sure, locally installed binaries are found
 PATH=$PATH:/usr/local/bin

Comment 1 Andrea Veri 2013-08-29 16:44:23 UTC
Hi,

the fix has been pushed to git and the package is being built in the couple of days.

More details at http://pkgs.fedoraproject.org/cgit/check-mk.git/commit/?id=ebd4864a819e37b58a0a2a9145e5ff611c3373aa.

Comment 2 Fedora Update System 2013-08-31 11:32:40 UTC
check-mk-1.2.2p2-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/check-mk-1.2.2p2-1.fc19

Comment 3 Fedora Update System 2013-08-31 11:33:07 UTC
check-mk-1.2.2p2-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/check-mk-1.2.2p2-1.el6

Comment 4 Fedora Update System 2013-08-31 19:18:51 UTC
Package check-mk-1.2.2p2-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing check-mk-1.2.2p2-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-11394/check-mk-1.2.2p2-1.el6
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-09-10 00:00:10 UTC
check-mk-1.2.2p2-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-09-16 17:43:50 UTC
check-mk-1.2.2p2-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.