---
name: nagios-check_puppet
version: 1.3
origin: net-mgmt/nagios-check_puppet
comment: Nagios plugin for checking Puppet daemon availability
arch: freebsd:9:x86:64
www: http://renatasystems.org/freebsd/check_puppet.html
maintainer: alexey@renatasystems.org
prefix: /usr/local
licenselogic: single
flatsize: 12910
desc: |
  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
categories: [net-mgmt]
files:
  /usr/local/bin/check_puppet: c3ca3291e2626509783541ced8fffa6e0687f7ca6b4cc3109436d0955c00ce55
  /usr/local/man/man1/check_puppet.1.gz: 1f8554613112bbc2ea28e3084894562524fcb526d648443611d728f8809c196c
scripts: {}
message: "*******************************************************************************\n\nConfiguration
  expamle:\n\n1. On the client side in snmpd.conf(5) create a new exec command:\n\n
  \ exec check_puppet /usr/local/bin/check_puppet\n\n2. On the Nagios node create
  (if necessary) `check_snmp_oid' checkcommand:\n\n  define command {\n    command_name
  check_snmp_oid\n    command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w
  $ARG2$ -c $ARG3$\n  }\n\nBe sure to provide `command_line' here with correct authentication
  options\nspecific to your SNMP installation. You need to have package from\nnet-mgmt/nagios-plugins
  installed on your system compiled with WITH_NETSNMP\noption enabled (disabled by
  default).\n\n3. Create a new check service:\n\n  define service {\n    use                 generic-service\n
  \   host_name           your_hostname\n    service_description Puppet daemon\n    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!\n
  \ }\n \nAdjust OID numbers to your SNMP installation by checking the output of\nsnmpwalk(1)
  command. The first OID should be the STRING output from exec, the\nsecond should
  point to the INTEGER exit code.\n\nRestart Nagios and SNMP daemons to apply new
  configuration.\n\n*******************************************************************************\n"
