| Summary: | local checks not working anymore | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Dan <danilo.speck> |
| Component: | check-mk | Assignee: | Andrea Veri <andrea.veri> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | andrea.veri, danilo.speck |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-18 15:23:29 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: | |
|
Description
Dan
2016-04-18 15:05:03 UTC
The "/usr/lib/check_mk_agent" path has never worked unless you patched your local copy to make use of it. The correct path is "/usr/share/check-mk-agent/local", which is created and sourced correctly when the package is installed: from "/usr/bin/check_mk_agent": export MK_LIBDIR="/usr/share/check-mk-agent" LOCALDIR=$MK_LIBDIR/local from ls -l: ls -l /usr/share/check-mk-agent/ totale 12 drwxr-xr-x. 2 root root 4096 2 apr 11.28 available-plugins drwxr-xr-x. 2 root root 4096 9 mar 14.55 local drwxr-xr-x. 2 root root 4096 2 apr 11.28 plugins Sorry but on the offical page this is written: "Writing local checks is done by putting executable programs (usually shell scripts or similar) into a specific directory which is scanned by the agent. The default directory for such local checks is /usr/lib/check_mk_agent/local for Linux/UNIX agents - on your target hosts." The official package works like this for years! But your package is marked as newer and breaks the official agent. I can confirm that your path is working but why don't you use the original paths? What I define as being the "official package" is the one we maintain here in Fedora / EPEL and I can tell you for sure that the path outlined above has never changed since the package was originally introduced on the repositories. About the path itself Fedora and EPEL have a set of guidelines when it comes to where files and directories owned by a certain package should be installed. These guidelines inherited from the FHS [1] canonical locations for files and directories having a specific scope within the fs in general. Please check what /usr/lib is for at [2] and you'll understand why Check-MK upstream packaging is not compliant to Fedora's packaging guidelines. [1] http://www.pathname.com/fhs/pub/fhs-2.3.html [2] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA |