From 729b8dfdf310e629e717257e42ff57cbde9aef47 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 15 Nov 2015 19:22:09 +0100 Subject: nrpe2 package fixes - Add input validations - Add privileges configuration - Fix package install/deinstall --- config/nrpe2/nrpe2.xml | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'config') diff --git a/config/nrpe2/nrpe2.xml b/config/nrpe2/nrpe2.xml index f70835c3..dcd6a5a9 100644 --- a/config/nrpe2/nrpe2.xml +++ b/config/nrpe2/nrpe2.xml @@ -42,10 +42,9 @@ /* ====================================================================================== */ ]]> - Nagios NRPEv2 nrpe2 - 2.2.1 - NRPEv2 + 2.2.2 + Services: NRPEv2 /pkg_edit.php?xml=nrpe2.xml&id=0 /usr/local/pkg/nrpe2.inc @@ -58,35 +57,39 @@ nrpe2 nrpe2.sh nrpe2 - Nagios NRPE Daemon + Nagios NRPEv2 Daemon installedpackages->package->nrpe2 /usr/local/pkg/ https://packages.pfsense.org/packages/config/nrpe2/nrpe2.inc + + /etc/inc/priv/ + https://packages.pfsense.org/packages/config/nrpe2/nrpe2.priv.inc + listtopic - NRPE Options - temp + Service Options - Enabled + Enable NRPE enabled Check this to enable NRPE daemon. checkbox + on listtopic Configuration Options - temp Port Number server_port Port number we should wait for connections on. (Default: 5666) input + 5666 @@ -107,12 +110,12 @@ dont_blame_nrpe Check this to enable accept NRPE arguments. (Default: 0) checkbox + on listtopic Commands - temp Command Definitions that the Nagios server can call via the NRPE daemon. @@ -158,34 +161,29 @@ Extra Options (Example: -s Z \$ARG1\$ \$ARG2\$) extra - Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting!]]> + Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting! input 25 - - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); - - - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); - nrpe2_custom_php_install_command(); - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); - nrpe2_custom_php_write_config(); + nrpe2_custom_php_deinstall_command(); + + nrpe2_resync_package(); + + + nrpe2_resync_package(); + - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); + nrpe2_resync_package(); - - unset($_POST['temp']); - + + nrpe2_custom_php_validation_command($_POST, $input_errors); + -- cgit v1.2.3