From nobody Fri Mar 29 00:17:33 2024 X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 79338DC008C for ; Sun, 20 Jan 2013 10:17:43 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id e49so2462472eek.33 for ; Sun, 20 Jan 2013 02:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:subject:date:message-id:to :mime-version:x-mailer; bh=vpWiwt+mVPkfS4UkTZIscfFbQrtZ94vsFVnVqX0pAOM=; b=cWI5pAfNUpklcAE7vIwyceQ+g23GCIk0jfQW6t9oVAL2uMZ2Dl/k9SJpxFOnOn1hG+ PHmDkJGGaG6wbOHPZRnJJyKAHk3eyH9CiOef0HxnvEVMz2itfx1HgwmjBp2eh+qQDaz4 5WN/NFsO/vCq65OUpKOA96wp4kvA6ShgrhZtRTuwd+Z1uvW6MuOlRN02moj8l3nw0Cwf Lx9NULW1auzh+g9EHEGt0pI7ON54FPST2CdzNz61b93Hbj2N1iM5msO4H2GH6mtDcCwm WOe5jnc8mmyOPEUKbnaETEFFOW+9DaN1KZeEeaa+YSgp3zHcEJUoZddOtCV09iLAQ6S/ Jmiw== X-Received: by 10.14.204.198 with SMTP id h46mr47855596eeo.1.1358677061520; Sun, 20 Jan 2013 02:17:41 -0800 (PST) Received: from [172.16.40.95] ([81.21.170.84]) by mx.google.com with ESMTPS id q44sm16582496eep.5.2013.01.20.02.17.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Jan 2013 02:17:40 -0800 (PST) From: Florian Heigl Content-Type: multipart/alternative; boundary="Apple-Mail=_8D6BDF83-7D4C-438F-A43E-E1C048938944" Subject: [alpine-devel] APKBUILD for testing/check_mk-agent Date: Sun, 20 Jan 2013 12:17:37 +0200 Message-Id: <9D8764DF-95AE-48CA-8067-BE38FD03FF81@gmail.com> To: alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) --Apple-Mail=_8D6BDF83-7D4C-438F-A43E-E1C048938944 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii This patch adds a APKBUILD for the Check_MK Monitoring agent. Maintainer: I can easily maintain this port as I was on the project for two years. What it does: A shell script that gathers system information. Check_MK extends Nagios/Icinga by many features, one of the most = important parts is having a very simple agent that auto-gathers all = relevant info whenever the server asks for it. The server side then auto-inventorizes all monitor able objects based on = the agent's info, saving you from wasting your life's time on config = generation / maintenance. This takes well under 1 second to run on my Alpine systems. Whats in it: The agent is a editable / extensible shell script, plus a binary that = handles timeout situations. How to use: To make the agent accessible you have to chose some means of connecting = it with a server.=20 "Default" on other OS is via xinetd (convenience). I have not included = the default Xinetd config, since SSH is IMHO saner (security) and just = as easy to set up. SSH Connections are described in = http://mathias-kettner.de/checkmk_datasource_programs.html By using that method, even tunneling over email is feasible. Well, of course you also need a monitoring server with Nagios & Check_MK = for this to show results, but that's nothing to do with this APKBUILD :) --Apple-Mail=_8D6BDF83-7D4C-438F-A43E-E1C048938944 Content-Type: multipart/mixed; boundary="Apple-Mail=_98A9886D-A64A-4254-83A9-E3F815872750" --Apple-Mail=_98A9886D-A64A-4254-83A9-E3F815872750 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

This patch adds a APKBUILD for the Check_MK Monitoring agent.
--Apple-Mail=_98A9886D-A64A-4254-83A9-E3F815872750 Content-Disposition: attachment; filename=0001-abuild-for-check_mk-agent Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-abuild-for-check_mk-agent" Content-Transfer-Encoding: 7bit commit f1f65cd9746cd50f94661d7a4b8c07178beb39bd Author: Florian Heigl Date: Sun Jan 20 10:02:12 2013 +0000 APKBUILD for testing/check_mk-agent. Adds support for the Check_MK monitoring agent. diff --git a/testing/check_mk-agent/APKBUILD b/testing/check_mk-agent/APKBUILD new file mode 100644 index 0000000..10c6cda --- /dev/null +++ b/testing/check_mk-agent/APKBUILD @@ -0,0 +1,60 @@ +# Contributor: Florian Heigl +# Maintainer: Florian Heigl +pkgname=check_mk-agent +pkgver=1.2.1i5 +pkgrel=0 +pkgdesc="Monitoring agent for Check_MK" +url="http://mathias-kettner.de/checkmk/" +arch="x86 x86_64" +license="GPL" +# python is needed for the logwatch and apache modules +# logwatch is worth it +depends="python" +depends_dev="" +makedepends="$depends_dev" +install="" +source="http://mathias-kettner.de/download/check_mk-$pkgver.tar.gz" + +_builddir="$srcdir"/check_mk-$pkgver +prepare() { + cd "$_builddir" + mkdir agents && cd agents && + tar -xf ../agents.tar.gz + + cd "$_builddir" + local i + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + # don't run make, this would build all of Check_MK + #make || return 1 +} + +package() { + cd "$_builddir" + # don't run make, this would build all of Check_MK + #make DESTDIR="$pkgdir" PREFIX="/usr" install || return 1 + mkdir -p $pkgdir/usr/bin + install -m 700 agents/check_mk_agent.linux $pkgdir/usr/bin/check_mk_agent + # waitmax is a 32bit static binary. this is a bit troublesome. + install -m 700 agents/waitmax $pkgdir/usr/bin/waitmax + mkdir -p $pkgdir/usr/lib/check_mk_agent/local + mkdir -p $pkgdir/usr/lib/check_mk_agent/plugins + # All plugins in that directory should be able to run on any + # Unix-like OS. (not every application they monitor does, though) + for i in agents/plugins/* ; do + if [ -f $i ]; then + install -m 700 $i $pkgdir/usr/lib/check_mk_agent/plugins + fi + done + mkdir -p $pkgdir/etc/check_mk + install -m 600 agents/logwatch.cfg $pkgdir/etc/check_mk +} + +md5sums="d387cc9deef3dc2f8b6b6f77598d9ea0 check_mk-1.2.1i5.tar.gz" --Apple-Mail=_98A9886D-A64A-4254-83A9-E3F815872750 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
By = using that method, even tunneling over email is = feasible.

Well, of course you also need a = monitoring server with Nagios & Check_MK for this to show results, = but that's nothing to do with this APKBUILD = :)

= --Apple-Mail=_98A9886D-A64A-4254-83A9-E3F815872750-- --Apple-Mail=_8D6BDF83-7D4C-438F-A43E-E1C048938944-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---