User Tools

Site Tools


nagios:nrpe.cfg

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nagios:nrpe.cfg [2015/06/23 12:52] jzaehrinnagios:nrpe.cfg [2015/07/14 08:28] (current) jzaehrin
Line 1: Line 1:
 +/etc/nagios/nrpe.cfg
 <code> <code>
 ############################################################################# #############################################################################
Line 96: Line 97:
 # Values: 0=do not allow arguments, 1=allow command arguments # Values: 0=do not allow arguments, 1=allow command arguments
  
-dont_blame_nrpe=0+dont_blame_nrpe=1
  
  
Line 126: Line 127:
 # Values: 0=debugging off, 1=debugging on # Values: 0=debugging off, 1=debugging on
  
-debug=1+debug=0
  
  
Line 174: Line 175:
  
 #include_dir=<somedirectory> #include_dir=<somedirectory>
-#include_dir=<someotherdirectory> 
  
  
Line 197: Line 197:
 # examples only! # examples only!
  
- 
-# The following examples use hardcoded command arguments... 
- 
-command[check_users]=/usr/lib/nagios/plugins/check_users -w 0 -c 0 
-command[check_load]=/usr/lib/nagios/plugins/check_load -w 60,40,20 -c 80,60,40 
-command[check_root]=/usr/lib/nagios/plugins/check_disk -w 30% -c 20% -p / 
-command[check_monit]=/usr/lib/nagios/plugins/check_procs -C monit -c 1min: 
-command[check_watchdog]=/usr/lib/nagios/plugins/check_procs -C watchdog -c 1min: 
-command[check_acdsn]=/usr/lib/nagios/plugins/check_procs -C acdsn -c 1min: 
-command[check_time]=/usr/lib/nagios/plugins/check_ntp_time -H ntp.metas.ch 
- 
-command[eh_time_full]=/home/acdsn/git/acdsn-scripts/set_time.sh -b >/dev/null 2>&1 && /home/acdsn/git/acdsn-scripts/broadcast_time.sh -b >/dev/null 2>&1 
-command[eh_time_part]=/bin/bash /home/acdsn/git/acdsn-scripts/set_time.sh -a $ARG1$ 
  
 # local configuration: # local configuration:
Line 219: Line 206:
 # only snipplets ending in .cfg will get included # only snipplets ending in .cfg will get included
 include_dir=/etc/nagios/nrpe.d/ include_dir=/etc/nagios/nrpe.d/
 +</code>
 +
 +/etc/nagios/nrpe.d/commands.cfg
 +<code>
 +command[check_users]=/usr/lib/nagios/plugins/check_users -w 0 -c 0
 +command[check_load]=/usr/lib/nagios/plugins/check_load -w 60,40,20 -c 80,60,40
 +command[check_root]=/usr/lib/nagios/plugins/check_disk -w 30% -c 20% -p /
 +command[check_monit]=/usr/lib/nagios/plugins/check_procs -C monit -c 1min:
 +command[check_watchdog]=/usr/lib/nagios/plugins/check_procs -C watchdog -c 1min:
 +command[check_acdsn]=/usr/lib/nagios/plugins/check_procs -C acdsn -c 1min:
 +command[check_time]=/usr/lib/nagios/plugins/check_ntp_time -H 0.debian.pool.ntp.org -t 30
 +
 +command[eh_time_full]=sudo /home/acdsn/git/acdsn-scripts/set_time.sh
 +command[eh_time_part]=/bin/bash /home/acdsn/git/acdsn-scripts/broadcast_time.sh -a $ARG1$
 </code> </code>
nagios/nrpe.cfg.1435063937.txt.gz · Last modified: 2015/06/23 12:52 by jzaehrin