nrpe.cfg 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ####################################################
  2. # Sample NRPE Config File
  3. # Written by: Ethan Galstad (nagios@nagios.org)
  4. #
  5. # Last Modified: 02-21-2002
  6. ####################################################
  7. # PORT NUMBER
  8. # Port number we should wait for connections on.
  9. # This must be a non-priveledged port (i.e. > 1024).
  10. server_port=5666
  11. # SERVER ADDRESS
  12. # Address that nrpe has to bind to in case there are
  13. # more as one interface and we do not want nrpe to bind
  14. # (thus listen) on all interfaces.
  15. #server_address=192.168.1.1
  16. # ALLOWED HOST ADDRESSES
  17. # This is a comma-delimited list of IP address of hosts that are allowed
  18. # to talk to the NRPE daemon.
  19. #
  20. # Note: The daemon only does rudimentary checking of the client's IP
  21. # address. I would highly recommend adding entries in your /etc/hosts.allow
  22. # file to allow only the specified host to connect to the port
  23. # you are running this daemon on.
  24. allowed_hosts=127.0.0.1,192.168.0.2
  25. # DEBUGGING OPTION
  26. # This option determines whether or not debugging
  27. # messages are logged to the syslog facility. 0=off, 1=on
  28. debug=0
  29. # COMMAND DEFINITIONS
  30. # Command definitions that this daemon will run. Definitions
  31. # are in the following format:
  32. #
  33. # command[<command_name>]=<command_line>
  34. #
  35. # When the daemon receives a request to return the results of <command_name>
  36. # it will execute the command specified by the <command_line> argument.
  37. #
  38. # Unlike Nagios, the command line cannot contain macros - it must be
  39. # typed exactly as it should be executed.
  40. #
  41. # Note: Any plugins that are used in the command lines must reside
  42. # on the machine that this daemon is running on! The examples below
  43. # assume that you have plugins installed in a /usr/local/nagios/libexec
  44. # directory.
  45. command[check_users]=/usr/local/nagios/libexec/check_users 5 10
  46. command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30
  47. command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1
  48. command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb1
  49. command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z
  50. command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200