Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
nagios_plugins [2015/10/08 10:22]
steve
nagios_plugins [2015/10/08 10:41]
steve
Line 4: Line 4:
   * [[NRPE]]   * [[NRPE]]
  
-=== check_disk ===+==== check_disk ​====
  
 Check the amount of disk space available. Check the amount of disk space available.
Line 14: Line 14:
 </​code>​ </​code>​
  
-=== check_load ===+==== check_load ​====
  
 Check the current system load average. The load average format is the same used by "​uptime"​ and "​w"​. Check the current system load average. The load average format is the same used by "​uptime"​ and "​w"​.
Line 26: Line 26:
 </​code>​ </​code>​
  
-=== check_procs ===+==== check_procs ​====
  
 Check for running processes. Check for running processes.
Line 38: Line 38:
   * **-C <​command>​** - only check for exact match of command, without path   * **-C <​command>​** - only check for exact match of command, without path
  
-** Check that SSHD is running, with at least one process ​**+** 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: 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:
  
 <​code>​ <​code>​
-check_procs -c 1: -u root -a /​usr/​sbin/​sshd+check_procs -c 1: -u root -C sshd -a /​usr/​sbin/​sshd
 </​code>​ </​code>​
  
-=== check_swap ===+** ntpd ** 
 + 
 +<​code>​ 
 +check_procs -c 1: -u root -C ntpd -a /​usr/​sbin/​ntpd 
 +</​code>​ 
 + 
 +** syslog-ng ** 
 + 
 +<​code>​ 
 +check_procs -c 1: -u root -C syslog-ng -a /​usr/​sbin/​syslog-ng 
 +</​code>​ 
 + 
 +==== check_swap ​====
  
 Check swap space. Check swap space.