From root@undeliverable.renatasystems.org  Wed May 27 20:14:34 2009
Return-Path: <root@undeliverable.renatasystems.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0012E106570E
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 May 2009 20:14:33 +0000 (UTC)
	(envelope-from root@undeliverable.renatasystems.org)
Received: from hs-9.renatasystems.org (hs-9.renatasystems.org [83.222.5.149])
	by mx1.freebsd.org (Postfix) with SMTP id 385CA8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 May 2009 20:14:32 +0000 (UTC)
	(envelope-from root@undeliverable.renatasystems.org)
Received: (qmail 40758 invoked by uid 0); 28 May 2009 00:14:30 +0400
Message-Id: <20090527201430.40757.qmail@hs-9.renatasystems.org>
Date: 28 May 2009 00:14:30 +0400
From: Alexey V.Degtyarev <alexey@renatasystems.org>
Reply-To: Alexey V.Degtyarev <alexey@renatasystems.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: net-mgmt/nagios-check_puppet - Nagios plugin to check Puppet daemon activity
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         135006
>Category:       ports
>Synopsis:       New port: net-mgmt/nagios-check_puppet - Nagios plugin to check Puppet daemon activity
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 27 20:20:01 UTC 2009
>Closed-Date:    Sat May 30 16:15:48 UTC 2009
>Last-Modified:  Sat May 30 16:15:48 UTC 2009
>Originator:     Alexey V. Degtyarev
>Release:        FreeBSD 7.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD renatasystems.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
check_puppet - is a very simple Nagios plugin to check Puppet daemon
availability with SNMP.

Why check_puppet?

1. It does check whether puppetd and puppetmasterd is alive.

2. It does check state.yaml freshness

3. It does not require the full net-mgmt/nagios-plugins package on the client
side

4. It is written in sh - code interpreter available in a base system

WWW: http://renatasystems.org/freebsd/check_puppet.html
>How-To-Repeat:
	
>Fix:

	

--- nagios-check_puppet.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	nagios-check_puppet
#	nagios-check_puppet/files
#	nagios-check_puppet/files/pkg-message.in
#	nagios-check_puppet/Makefile
#	nagios-check_puppet/distinfo
#	nagios-check_puppet/pkg-descr
#
echo c - nagios-check_puppet
mkdir -p nagios-check_puppet > /dev/null 2>&1
echo c - nagios-check_puppet/files
mkdir -p nagios-check_puppet/files > /dev/null 2>&1
echo x - nagios-check_puppet/files/pkg-message.in
sed 's/^X//' >nagios-check_puppet/files/pkg-message.in << '5245a8065e76f8e45f55707d7a46f4a6'
X*******************************************************************************
X
XConfiguration expamle:
X
X1. On the client side in snmpd.conf(5) create a new exec command:
X
X  exec check_puppet %%PREFIX%%/bin/check_puppet
X
X2. On the Nagios node create (if necessary) `check_snmp_oid' checkcommand:
X
X  define command {
X    command_name check_snmp_oid
X    command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$
X  }
X
XBe sure to provide `command_line' here with correct authentication options
Xspecific to your SNMP installation. You need to have package from
Xnet-mgmt/nagios-plugins installed on your system compiled with WITH_NETSNMP
Xoption enabled (disabled by default).
X
X3. Create a new check service:
X
X  define service {
X    use                 generic-service
X    host_name           your_hostname
X    service_description Puppet daemon
X    check_command       check_snmp_oid!.1.3.6.1.4.1.2021.8.1.101.1,.1.3.6.1.4.1.2021.8.1.100.1!,0!,1!
X  }
X 
XAdjust OID numbers to your SNMP installation by checking the output of
Xsnmpwalk(1) command. The first OID should be the STRING output from exec, the
Xsecond should point to the INTEGER exit code.
X
XRestart Nagios and SNMP daemons to apply new configuration.
X
X*******************************************************************************
5245a8065e76f8e45f55707d7a46f4a6
echo x - nagios-check_puppet/Makefile
sed 's/^X//' >nagios-check_puppet/Makefile << '908a211d3f9b031b1fa91675b16062bc'
X# New ports collection makefile for:	nagios-check_puppet
X# Date created:				Wed 27 May 2009
X# Whom:					Alexey V. Degtyarev
X#
X# $FreeBSD$
X#
X
XPORTNAME=	check_puppet
XPORTVERSION=	1.1
XCATEGORIES=	net-mgmt
XMASTER_SITES=	ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
XPKGNAMEPREFIX=	nagios-
X
XMAINTAINER=	alexey@renatasystems.org
XCOMMENT=	Nagios plugin for checking Puppet daemon availability
X
XNO_BUILD=	yes
X
XMAN1=		check_puppet.1
XMANS=		${MAN1}
X
XSUB_FILES=	pkg-message
X
XPLIST_FILES=	bin/check_puppet
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/check_puppet ${PREFIX}/bin/check_puppet
X.for man in ${MANS}
X	${INSTALL_MAN} ${WRKSRC}/${man} ${MAN${man:E}PREFIX}/man/man${man:E}
X.endfor
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
908a211d3f9b031b1fa91675b16062bc
echo x - nagios-check_puppet/distinfo
sed 's/^X//' >nagios-check_puppet/distinfo << '81983e70f21cf78df28e2484107e8e2d'
XMD5 (check_puppet-1.1.tar.gz) = 4837f430635fe550aebd0f3f56db8e4b
XSHA256 (check_puppet-1.1.tar.gz) = 594b81de35977f3ebff70f62462abc37f54b503b6f70dd40258d9b06dffe81bf
XSIZE (check_puppet-1.1.tar.gz) = 6652
81983e70f21cf78df28e2484107e8e2d
echo x - nagios-check_puppet/pkg-descr
sed 's/^X//' >nagios-check_puppet/pkg-descr << '8a5cda53f38f260762be0977ba6fe135'
Xcheck_puppet - is a very simple Nagios plugin to check Puppet daemon
Xavailability with SNMP.
X
XWhy check_puppet?
X
X1. It does check whether puppetd and puppetmasterd is alive.
X
X2. It does check state.yaml freshness
X
X3. It does not require the full net-mgmt/nagios-plugins package on the client
Xside
X
X4. It is written in sh - code interpreter available in a base system
X
XWWW: http://renatasystems.org/freebsd/check_puppet.html
8a5cda53f38f260762be0977ba6fe135
exit
--- nagios-check_puppet.shar ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed May 27 22:22:06 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135006 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/135006: commit references a PR
Date: Fri, 29 May 2009 19:47:31 +0000 (UTC)

 miwi        2009-05-29 19:47:21 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-mgmt             Makefile 
   Added files:
     net-mgmt/nagios-check_puppet Makefile distinfo pkg-descr 
     net-mgmt/nagios-check_puppet/files pkg-message.in 
   Log:
   check_puppet - is a very simple Nagios plugin to check Puppet daemon
   availability with SNMP.
   
   Why check_puppet?
   
   1. It does check whether puppetd and puppetmasterd is alive.
   
   2. It does check state.yaml freshness
   
   3. It does not require the full net-mgmt/nagios-plugins package on the client
   side
   
   4. It is written in sh - code interpreter available in a base system
   
   WWW: http://renatasystems.org/freebsd/check_puppet.html
   
   PR:             ports/135006
   Submitted by:   Alexey V. Degtyarev
   
   Revision  Changes    Path
   1.186     +1 -0      ports/net-mgmt/Makefile
   1.1       +33 -0     ports/net-mgmt/nagios-check_puppet/Makefile (new)
   1.1       +3 -0      ports/net-mgmt/nagios-check_puppet/distinfo (new)
   1.1       +36 -0     ports/net-mgmt/nagios-check_puppet/files/pkg-message.in (new)
   1.1       +15 -0     ports/net-mgmt/nagios-check_puppet/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat May 30 16:15:47 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135006 
>Unformatted:
