diff options
author | jim-p <jimp@pfsense.org> | 2011-06-08 16:46:22 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-06-08 16:46:22 -0400 |
commit | 83c730d86a793be8d57d42696cf17f74a896c7c5 (patch) | |
tree | bc339dc9825456cdf9c4c7db6dec5301211dd232 /config/nrpe2 | |
parent | d833cc25c9198c55c9d9e8749ca1c2385a691005 (diff) | |
download | pfsense-packages-83c730d86a793be8d57d42696cf17f74a896c7c5.tar.gz pfsense-packages-83c730d86a793be8d57d42696cf17f74a896c7c5.tar.bz2 pfsense-packages-83c730d86a793be8d57d42696cf17f74a896c7c5.zip |
NRPE2, cleanup code a little, dynamically grab list of valid check_foo commands.
Diffstat (limited to 'config/nrpe2')
-rw-r--r-- | config/nrpe2/nrpe2.xml | 93 |
1 files 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 @@ <?xml version="1.0" encoding="utf-8" ?> <packagegui> - <description>Nagios NRPEv2</description> - <requirements>Describe your package requirements here</requirements> + <description>Nagios NRPEv2</description> + <requirements>Describe your package requirements here</requirements> <name>nrpe2</name> <version>2.11</version> <title>NRPEv2</title> @@ -18,7 +18,7 @@ <rcfile>nrpe2</rcfile> <executable>nrpe2</executable> <description>Nagios NRPE Daemon</description> - </service> + </service> <configpath>installedpackages->package->nrpe2</configpath> <additional_files_needed> <prefix>/usr/local/pkg/</prefix> @@ -40,8 +40,8 @@ <field> <type>listtopic</type> <name>Configuration Options</name> - <fieldname>temp</fieldname> - </field> + <fieldname>temp</fieldname> + </field> <field> <fielddescr>Port Number</fielddescr> <fieldname>server_port</fieldname> @@ -66,13 +66,13 @@ <field> <type>listtopic</type> <name>Commands</name> - <fieldname>temp</fieldname> + <fieldname>temp</fieldname> </field> <field> <fielddescr>Command Definitions that the Nagios server can call via the NRPE daemon.</fielddescr> <fieldname>none</fieldname> - <type>rowhelper</type> - <rowhelper> + <type>rowhelper</type> + <rowhelper> <rowhelperfield> <fielddescr>Name (Allowed Characters: a-zA-Z_)</fielddescr> <fieldname>name</fieldname> @@ -81,64 +81,37 @@ <required/> </rowhelperfield> <rowhelperfield> - <fielddescr>Command</fielddescr> - <fieldname>command</fieldname> - <type>select</type> - <options> - <option><name></name><value></value></option> - <option><name>check_dhcp</name><value>check_dhcp</value></option> - <option><name>check_dig</name><value>check_dig</value></option> - <option><name>check_disk</name><value>check_disk</value></option> - <option><name>check_dns</name><value>check_dns</value></option> - <option><name>check_file_age</name><value>check_file_age</value></option> - <option><name>check_http</name><value>check_http</value></option> - <option><name>check_icmp</name><value>check_icmp</value></option> - <option><name>check_ifoperstatus</name><value>check_ifoperstatus</value></option> - <option><name>check_ifstatus</name><value>check_ifstatus</value></option> - <option><name>check_load</name><value>check_load</value></option> - <option><name>check_log</name><value>check_log</value></option> - <option><name>check_nntp</name><value>check_nntp</value></option> - <option><name>check_nntps</name><value>check_nntps</value></option> - <option><name>check_ntp</name><value>check_ntp</value></option> - <option><name>check_ntp_peer</name><value>check_ntp_peer</value></option> - <option><name>check_ntp_time</name><value>check_ntp_time</value></option> - <option><name>check_oracle</name><value>check_oracle</value></option> - <option><name>check_ping</name><value>check_ping</value></option> - <option><name>check_procs</name><value>check_procs</value></option> - <option><name>check_rpc</name><value>check_rpc</value></option> - <option><name>check_ssh</name><value>check_ssh</value></option> - <option><name>check_swap</name><value>check_swap</value></option> - <option><name>check_tcp</name><value>check_tcp</value></option> - <option><name>check_time</name><value>check_time</value></option> - <option><name>check_udp</name><value>check_udp</value></option> - <option><name>check_ups</name><value>check_ups</value></option> - <option><name>check_users</name><value>check_users</value></option> - </options> + <fielddescr>Command</fielddescr> + <fieldname>command</fieldname> + <type>select_source</type> + <source><![CDATA[nrpe2_get_commands()]]></source> + <source_name>command</source_name> + <source_value>command</source_value> </rowhelperfield> <rowhelperfield> - <fielddescr>Warning Level</fielddescr> - <fieldname>warning</fieldname> - <description>At which level do you want a warning to be alerted on?</description> - <type>input</type> - <size>15</size> + <fielddescr>Warning Level</fielddescr> + <fieldname>warning</fieldname> + <description>At which level do you want a warning to be alerted on?</description> + <type>input</type> + <size>15</size> <required/> </rowhelperfield> <rowhelperfield> - <fielddescr>Critical Level</fielddescr> - <fieldname>critical</fieldname> - <description>At which level do you want a warning to be alerted on?</description> - <type>input</type> - <size>15</size> + <fielddescr>Critical Level</fielddescr> + <fieldname>critical</fieldname> + <description>At which level do you want a warning to be alerted on?</description> + <type>input</type> + <size>15</size> <required/> </rowhelperfield> <rowhelperfield> - <fielddescr>Extra Options</fielddescr> - <fieldname>extra</fieldname> - <description>Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting!</description> - <type>input</type> - <size>25</size> + <fielddescr>Extra Options</fielddescr> + <fieldname>extra</fieldname> + <description>Warning! Use at your own risk, incorrect settings here may prevent NRPE from starting!</description> + <type>input</type> + <size>25</size> </rowhelperfield> - </rowhelper> + </rowhelper> </field> </fields> <custom_delete_php_command> @@ -159,10 +132,10 @@ nrpe2_custom_php_write_config(); </custom_php_deinstall_command> <custom_php_resync_config_command> - nrpe2_custom_php_write_config(); - nrpe2_custom_php_service(); + nrpe2_custom_php_write_config(); + nrpe2_custom_php_service(); </custom_php_resync_config_command> <custom_php_command_before_form> - unset($_POST['temp']); + unset($_POST['temp']); </custom_php_command_before_form> </packagegui> |