summaryrefslogtreecommitdiff
path: root/packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0
diff options
context:
space:
mode:
authorAvatar Gurr Timo <tgurr@exherbo.org> 2017-09-01 14:03:28 +0200
committerAvatar Timo Gurr <tgurr@exherbo.org> 2017-09-01 14:11:14 +0200
commitad18ade2069ba11cd4902868aa8ac6027d79e360 (patch)
treeaeea83cbe0aa82b72db20f521235e3003a9950ed /packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0
parentd9c7f76a85af5c41be047dce727bfb8958c47e5d (diff)
downloadnet-ad18ade2069ba11cd4902868aa8ac6027d79e360.tar.gz
net-ad18ade2069ba11cd4902868aa8ac6027d79e360.tar.xz
check-mk-agent: version bump to 1.4.0_p10
Change-Id: I7ec999668e1bf4c305fa312e547cb024c87167f4 Reviewed-on: https://galileo.mailstation.de/gerrit/9952 Reviewed-by: Jenkins <wk@mailstation.de> Reviewed-by: Timo Gurr <tgurr@exherbo.org>
Diffstat (limited to 'packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0')
-rw-r--r--packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-076
1 files changed, 76 insertions, 0 deletions
diff --git a/packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0 b/packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0
new file mode 100644
index 0000000..a8099c0
--- /dev/null
+++ b/packages/monitor/check-mk-agent/check-mk-agent-1.4.0_p10.exheres-0
@@ -0,0 +1,76 @@
+# Copyright 2017 Timo Gurr <tgurr@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+MY_PNV="check_mk-${PV/_}"
+
+require systemd-service [ systemd_files=[ cfg_examples/systemd/check_mk{.socket,@.service} ] ]
+
+SUMMARY="Check_MK Agent for Linux"
+DESCRIPTION="
+The Check_MK Agent uses xinetd to provide information about the system on TCP port 6556. This can
+be used to monitor the host via Check_MK.
+"
+HOMEPAGE="https://mathias-kettner.de/check_mk.html"
+DOWNLOADS="https://mathias-kettner.de/download/${MY_PNV}.tar.gz"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="xinetd"
+
+DEPENDENCIES="
+ run:
+ xinetd? ( sys-apps/xinetd )
+ recommendation:
+ dev-lang/python:*[<3] [[
+ description = [ Required by some plugins written in Python ]
+ ]]
+"
+
+WORK=${WORKBASE}/${MY_PNV}
+
+src_unpack() {
+ default
+
+ edo pushd "${WORK}"
+ edo tar xf agents.tar.gz
+ edo popd
+}
+
+src_prepare() {
+ # Errors when running under Python 3
+ edo sed \
+ -e 's:/usr/bin/python:/usr/bin/python2:' \
+ -i plugins/{apache_status,isc_dhcpd,mk_inotify,mk_mongodb}
+
+ default
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ newbin check_mk_agent.linux check_mk_agent
+ newbin check_mk_caching_agent.linux check_mk_caching_agent
+ dobin mk-job
+
+ keepdir /etc/check_mk
+ keepdir /usr/$(exhost --target)/lib/check_mk_agent/{,plugins,local,job,spool}
+
+ install_systemd_files
+
+ if option xinetd ; then
+ insinto /etc/xinetd.d
+ newins cfg_examples/xinetd.conf check_mk
+ fi
+
+ # Think about making the installation of the plugins configurable via SUBOPTIONS
+ exeinto /usr/$(exhost --target)/lib/check_mk_agent/plugins
+ doexe plugins/{apache_status,isc_dhcpd,lnx_quota,lvm,mk_filehandler,mk_inotify,mk_inventory.linux,mk_logins,netstat.linux,nfsexports,smart}
+ doexe plugins/{mk_mongodb,mk_mysql,mk_oracle,mk_postgres}
+
+ insinto /etc/check_mk
+ doins cfg_examples/*.cfg
+}
+