aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-23 15:10:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-23 15:10:33 +0000
commit56718849003acc568d0179c5cf21b7b70e881aad (patch)
tree33f2196efc6e07720648fcbb3c8a277a34463e0a
parent5621a7230a5ab3b02bc892a09743137d05efbc91 (diff)
downloadpfsense-packages-56718849003acc568d0179c5cf21b7b70e881aad.tar.gz
pfsense-packages-56718849003acc568d0179c5cf21b7b70e881aad.tar.bz2
pfsense-packages-56718849003acc568d0179c5cf21b7b70e881aad.zip
Mtr.xml package configuration file.
Submitted-by: simond _AT_ irrelevant.org
-rw-r--r--packages/mtr.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/mtr.xml b/packages/mtr.xml
new file mode 100644
index 00000000..b0dd13bf
--- /dev/null
+++ b/packages/mtr.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <name>mtr</name>
+ <version>0.65_2</version>
+ <title>Diagnostics: mtr</title>
+ <donotsave>true</donotsave>
+ <preoutput>yes</preoutput>
+ <savetext>mtr</savetext>
+ <!-- Menu is where this packages menu will appear -->
+ <menu>
+ <name>mtr</name>
+ <tooltiptext>mtr combines the functionality of the "traceroute" and "ping" programs into a single network diagnostic tool</tooltiptext>
+ <section>Diagnostics</section>
+ <configfile>mtr.xml</configfile>
+ </menu>
+ <!-- Do not save invokes a simple input menu and will not update
+ the configuration database. -->
+ <fields>
+ <field>
+ <fielddescr>IP or Hostname</fielddescr>
+ <fieldname>hostname</fieldname>
+ <description>Enter the IP address or hostname that you would like to traceroute to.</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Count</fielddescr>
+ <fieldname>count</fieldname>
+ <description>This is the number of pings to send, each one takes 1 second</description>
+ <type>input</type>
+ <typehint>Defaults to 10</typehint>
+ </field>
+ <field>
+ <fielddescr>No DNS Lookup</fielddescr>
+ <fieldname>nodns</fieldname>
+ <description>Use this option to force mtr to display numeric IP numbers and not try to resolve the host names</description>
+ <type>checkbox</type>
+ </field>
+ </fields>
+ <custom_php_deinstall_command>
+ </custom_php_deinstall_command>
+ <custom_add_php_command>
+ $mtr_options = " -r";
+ if($_POST['count']) $mtr_options .= " -c " . $_POST['count'];
+ if($_POST['nodns']) $mtr_options .= " -n";
+ $mtr_options .= " " . $_POST['hostname'];
+ system("/usr/local/sbin/mtr" . $mtr_options);
+ </custom_add_php_command>
+</packagegui>