Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 7 Jun 2010 06:07:04 -0000 1.1 +++ Makefile 6 Nov 2010 23:12:26 -0000 @@ -6,20 +6,44 @@ # PORTNAME= mk-livestatus -PORTVERSION= 1.1.3 +PORTVERSION= 1.1.8 CATEGORIES= net-mgmt MASTER_SITES= http://mathias-kettner.de/download/ MAINTAINER= cowbert@gmail.com -COMMENT= Mathias Kettner's mk-livestatus plugin for nagios +COMMENT= Nagios event broker module + +LICENSE= GPLv2 USE_GMAKE= yes GNU_CONFIGURE= yes PLIST_FILES= lib/mk-livestatus/unixcat lib/mk-livestatus/livestatus.o PLIST_DIRS= lib/${PORTNAME} +SUB_FILES= pkg-message +SUB_LIST= PREFIX=${PREFIX} + +PORTEXAMPLES= * +EXAMPLE_FILES= api/python/example_multisite.py \ + api/python/example.py \ + api/python/livestatus.py \ + api/python/make_nagvis_map.py \ + api/python/README + +post-patch: +.for i in ${EXAMPLE_FILES} + @${REINPLACE_CMD} -i '' -e 's|/usr/bin/python|${LOCALBASE}/bin/python|g' \ + -e 's|/var/lib/nagios/rw|/var/spool/nagios/rw|g' \ + -e 's|/var/run/nagios/rw|/var/spool/nagios/rw|g' ${WRKSRC}/$i +.endfor post-install: +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR}/api/python +. for i in ${EXAMPLE_FILES} + ${INSTALL_DATA} ${WRKSRC}/$i ${EXAMPLESDIR}/$i +. endfor +.endif @${CAT} ${PKGMESSAGE} .include Index: distinfo =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/distinfo,v retrieving revision 1.1 diff -u -r1.1 distinfo --- distinfo 7 Jun 2010 06:07:04 -0000 1.1 +++ distinfo 6 Nov 2010 23:12:26 -0000 @@ -1,3 +1,2 @@ -MD5 (mk-livestatus-1.1.3.tar.gz) = df32a163a8663c1784afd1fa329732a0 -SHA256 (mk-livestatus-1.1.3.tar.gz) = 8882b52332038d081b52ef7d0d16084ee184e07f536f227cad7da2c266f8e0c9 -SIZE (mk-livestatus-1.1.3.tar.gz) = 318465 +SHA256 (mk-livestatus-1.1.8.tar.gz) = b9f3449664625a5b23a24dfd015f2ad1e3b5829d45a3b9502051f9121c0da17d +SIZE (mk-livestatus-1.1.8.tar.gz) = 323754 Index: pkg-descr =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/pkg-descr,v retrieving revision 1.1 diff -u -r1.1 pkg-descr --- pkg-descr 7 Jun 2010 06:07:04 -0000 1.1 +++ pkg-descr 6 Nov 2010 23:12:26 -0000 @@ -1,4 +1,6 @@ -MKLivestatus is a very simple and smart Nagios eventbroker module. +MK Livestatus - a Nagios event broker module that allows quick, +direct and comfortable access to your status data. + Livestatus is concepted and tuned to reduce disk, memory and cpu loads caused by live-data processing on the Nagios system. Just as NDO, Livestatus makes use of the Nagios Event Broker API and loads a binary @@ -7,4 +9,5 @@ external applications to connect to and fetch the current status information from Nagios. + WWW: http://mathias-kettner.de/checkmk_livestatus.html Index: pkg-message =================================================================== RCS file: pkg-message diff -N pkg-message --- pkg-message 7 Jun 2010 06:07:04 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,10 +0,0 @@ -Notes: - - * See the documentation at http://mathias-kettner.de/checkmk_livestatus.html - - * Requires that net-mgmt/nagios be built with WITH_EVENT_BROKER=yes or - livestatus.o will never be loaded... - - * unixcat (for use with reading from the socket and/or inetd(8) support) - moved to $LOCALBASE/lib/mk-livestatus from $LOCALBASE/bin in - order to avoid a conflict with sysutils/ucspi-unix Index: files/pkg-message.in =================================================================== RCS file: files/pkg-message.in diff -N files/pkg-message.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/pkg-message.in 6 Nov 2010 23:12:26 -0000 @@ -0,0 +1,16 @@ +Notes: + + * See the documentation at http://mathias-kettner.de/checkmk_livestatus.html + + * Requires that net-mgmt/nagios be built with WITH_EVENT_BROKER=yes or + livestatus.o will never be loaded... + + * unixcat (for use with reading from the socket and/or inetd(8) support) + moved from %%PREFIX%%/bin + to %%PREFIX%%/lib/mk-livestatus + in order to avoid a conflict with sysutils/ucspi-unix + +To enable mk-livestatus add the following lines into nagios.cfg: + broker_module=%%PREFIX%%/lib/mk-livestatus/livestatus.o /var/spool/nagios/rw/live + event_broker_options=-1 +