check_procs_multi

check_procs_multi

Description

check_procs_multi is a Nagios plugin similar to check_procs able to check several processes at once. See the INSTALL file for installation instructions

Usage

Usage:
check_procs_multi --proc name,warning_min,warning_max,critical_min,critical_max
            [--verbose]
            [--version|--help]

Mandatory arguments:
  --proc           name,warning_min,warning_max,critical_min,critical_max
                             process check definition

Options:
  --help,-h,-?               prints the usage
  --version,V                print version number
  --verbose,-v               be more verbose (can be repeated)

Installation

Build and install check_procs_multi

Dependences

check_procs_multi depends on several Perl modules:

  • Carp
  • English
  • File::Slurp
  • Getopt::Long
  • Nagios::Plugin
  • Nagios::Plugin::Threshold
  • version

Perl modules can be found on the "Comprehensive Perl Archive Network"

(CPAN). The "How to install CPAN modules" guide summarizes how these can be installed

http://www.cpan.org/modules/INSTALL.html

On many systems Perl modules are also available as installation packages (refer to your system documentation on how to install them).

The 'perl Makefile.PL' command (see below) will list the missing packages the you will need to install.

Install to /usr/lib/nagios/plugins/contrib

In the source directory run:

perl Makefile.PL
make
make install

Install to a custom directory (CUSTOM_DIR)

In the source directory run:

perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR
make
make install

The man page is installed to /usr/share/man/man1/check_procs_multi.1 you can customize the path by setting INSTALLMAN1DIR as follows

perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR
make
make install

Manual installation

Substitute #!perl at the beginning of the script with the location of your Perl interpreter and copy it to the desired location

Generate the man page with pod2man

pod2man check_procs_multi > CUSTOM_MAN_FILE

Please report any installation problem to or open a ticket at https://trac.id.ethz.ch/projects/nagios_plugins/newticket

Development

Develompment tree: svn co https://svn.id.ethz.ch/nagios_plugins/check_procs_multi