BSD Ports

net-mgmt/nagios-check_puppet 1.3_1 DragonFly

Nagios plugin for checking Puppet daemon availability

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
net-mgmt
Package size
6.6 KiB, 12.6 KiB installed

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

In the other systems

The newest version among them is 1.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlynet-mgmt/nagios-check_puppet1.3_1 newestnone known-[email protected]-
FreeBSDnet-mgmt/nagios-check_puppet1.3_1 newestnone known-[email protected]-
HardenedBSDnet-mgmt/nagios-check_puppet1.3_1 newestno data-[email protected]-
GhostBSDnet-mgmt/nagios-check_puppet1.3_1 newestno data-[email protected]-

Install

Binary package:

pkg install nagios-check_puppet

From DPorts:

cd /usr/dports/net-mgmt/nagios-check_puppet && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Configuration example:

1. On the client side in snmpd.conf(5) create a new exec command:

  exec check_puppet /usr/local/bin/check_puppet

2. On the Nagios node create (if necessary) `check_snmp_oid' checkcommand:

  define command {
    command_name check_snmp_oid
    command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$
  }

Be sure to provide `command_line' here with correct authentication options
specific to your SNMP installation. You need to have package from
net-mgmt/nagios-plugins installed on your system compiled with WITH_NETSNMP
option enabled (disabled by default).

3. Create a new check service:

  define service {
    use                 generic-service
    host_name           your_hostname
    service_description Puppet daemon
    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!
  }

Adjust OID numbers to your SNMP installation by checking the output of
snmpwalk(1) command. The first OID should be the STRING output from exec, the
second should point to the INTEGER exit code.

Restart Nagios and SNMP daemons to apply new configuration.