Date: 28 May 2009 00:14:30 +0400 From: "Alexey V.Degtyarev" <alexey@renatasystems.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/135006: New port: net-mgmt/nagios-check_puppet - Nagios plugin to check Puppet daemon activity Message-ID: <20090527201430.40757.qmail@hs-9.renatasystems.org> Resent-Message-ID: <200905272020.n4RKK2Og048799@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 27 20:20:01 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090527201430.40757.qmail>