From 83c730d86a793be8d57d42696cf17f74a896c7c5 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 8 Jun 2011 16:46:22 -0400 Subject: NRPE2, cleanup code a little, dynamically grab list of valid check_foo commands. --- config/nrpe2/nrpe2.xml | 93 ++++++++++++++++++-------------------------------- 1 file changed, 33 insertions(+), 60 deletions(-) diff --git a/config/nrpe2/nrpe2.xml b/config/nrpe2/nrpe2.xml index 55f96319..f08fe50f 100644 --- a/config/nrpe2/nrpe2.xml +++ b/config/nrpe2/nrpe2.xml @@ -1,7 +1,7 @@ - Nagios NRPEv2 - Describe your package requirements here + Nagios NRPEv2 + Describe your package requirements here nrpe2 2.11 NRPEv2 @@ -18,7 +18,7 @@ nrpe2 nrpe2 Nagios NRPE Daemon - + installedpackages->package->nrpe2 /usr/local/pkg/ @@ -40,8 +40,8 @@ listtopic Configuration Options - temp - + temp + Port Number server_port @@ -66,13 +66,13 @@ listtopic Commands - temp + temp Command Definitions that the Nagios server can call via the NRPE daemon. none - rowhelper - + rowhelper + Name (Allowed Characters: a-zA-Z_) name @@ -81,64 +81,37 @@ - Command - command - select - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Command + command + select_source + + command + command - Warning Level - warning - At which level do you want a warning to be alerted on? - input - 15 + Warning Level + warning + At which level do you want a warning to be alerted on? + input + 15 - Critical Level - critical - At which level do you want a warning to be alerted on? - input - 15 + Critical Level + critical + At which level do you want a warning to be alerted on? + input + 15 - Extra Options - extra - Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting! - input - 25 + Extra Options + extra + Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting! + input + 25 - + @@ -159,10 +132,10 @@ nrpe2_custom_php_write_config(); - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); + nrpe2_custom_php_write_config(); + nrpe2_custom_php_service(); - unset($_POST['temp']); + unset($_POST['temp']); -- cgit v1.2.3