Table of Contents

Nagios plugins

check_disk

Check the amount of disk space available.

Warning on 20% remaining, critical on 10% remaining, looking at path “/”:

check_disk -w 20% -c 10% -p /

check_load

Check the current system load average. The load average format is the same used by “uptime” and “w”.

check_load -r -w 2,1.5,1 -c 4,3,2

check_procs

Check for running processes.

Some available arguments:

OpenSSH

SSHD will have one proc for the master daemon, and one for each user login as well. So setting a minimal range of 1 will check if it is running at all:

check_procs -c 1: -u root -C sshd -a /usr/sbin/sshd

ntpd

check_procs -c 1: -u root -C ntpd -a /usr/sbin/ntpd

syslog-ng

check_procs -c 1: -u root -C syslog-ng -a /usr/sbin/syslog-ng

check_swap

Check swap space.

Warn on 20% available remaining, critical on 10%:

check_swap -w 20% -c 10%