Преглед изворни кода

Updated sample commands for new plugin format

Ethan Galstad пре 24 година
родитељ
комит
0b075c42ba
2 измењених фајлова са 15 додато и 8 уклоњено
  1. 5 0
      Changelog
  2. 10 8
      nrpe.cfg.in

+ 5 - 0
Changelog

@@ -3,6 +3,11 @@ NRPE Changelog
 **************
 
 
+1.6 - ??/??/2002
+----------------
+- Updated sample commands to match new plugin argument format
+
+
 1.5 - 06/03/2002
 ----------------
 - Added setuid/setgid option to config file (suggested by Marek Cervenka) 

+ 10 - 8
nrpe.cfg.in

@@ -89,11 +89,13 @@ debug=0
 # Note: Any plugins that are used in the command lines must reside
 # on the machine that this daemon is running on!  The examples below
 # assume that you have plugins installed in a /usr/local/nagios/libexec
-# directory.
-
-command[check_users]=/usr/local/nagios/libexec/check_users 5 10
-command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30
-command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1
-command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb1
-command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z
-command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200 
+# directory.  Also note that you will have to modify the definitions below
+# to match the argument format the plugins expect.  Remember, these are
+# examples only!
+
+command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
+command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
+command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1
+command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1
+command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
+command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200