diff options
author | Colin Smith <colin@pfsense.org> | 2005-09-11 21:16:00 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-09-11 21:16:00 +0000 |
commit | da87b24aea3eb048927ec227ca290f292e22a704 (patch) | |
tree | 2309a7022331a33734282bc3617f2d49361d20ca | |
parent | 6b401fcddb0ea70163a001c380e751dcd4a0734f (diff) | |
download | pfsense-packages-da87b24aea3eb048927ec227ca290f292e22a704.tar.gz pfsense-packages-da87b24aea3eb048927ec227ca290f292e22a704.tar.bz2 pfsense-packages-da87b24aea3eb048927ec227ca290f292e22a704.zip |
Tinker with arpwatch and send all email reports to /var/log/arpwatch.reports so we can parse them in another tab.
-rw-r--r-- | packages/arpwatch.xml | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml index 11320e80..61be6f35 100644 --- a/packages/arpwatch.xml +++ b/packages/arpwatch.xml @@ -16,6 +16,17 @@ <rcfile>arpwatch.sh</rcfile> <executable>arpwatch</executable> </service> + <tabs> + <tab> + <text>Settings</text> + <url>/pkg_edit.php?xml=arpwatch.xml&id=0</url> + <active/> + </tab> + <tab> + <text>Reports</text> + <url>/arpwatch_reports.php</url> + </tab> + </tabs> <fields> <field> <fielddescr>Listening Interface</fielddescr> @@ -32,16 +43,9 @@ global $config; conf_mount_rw(); config_lock(); - foreach($config['installedpackages']['arpwatch']['config'] as $arpw) { - $ints = $arpw['interface']; - } - if($ints == "") { - $ints = "lan"; - log_error("Could not find a interface for arpwatch. Defaulting to LAN"); - } - global $config; - $int = convert_friendly_interface_to_real_interface_name($ints); - $start = "/usr/local/sbin/arpwatch -d -d -i {$int} | logger -p daemon.info -i -t arpwatch"; + $int = $config['installedpackages']['arpwatch']['config'][0]['interface']; + $int = convert_friendly_interface_to_real_interface_name($int); + $start = "/usr/local/sbin/arpwatch -d -i {$int} > /var/log/arpwatch.reports 2>&1"; $stop = "/usr/bin/killall arpwatch"; write_rcfile(array( "file" => "arpwatch.sh", |