Commit Graph

74 Commits

Author SHA1 Message Date
Renato Botelho
d1d3428a5a Mark host as up or down before execute script, then script can use this information.
Submitted by: 	Jean Debogue <jean@wedebugyou.com>
2014-09-04 07:47:42 -03:00
Ermal
e61f548f2c Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
Renato Botelho
115b7b8183 Start using filterlog 2014-04-14 09:47:32 -03:00
Ermal
412f9462a1 Remove another unused script 2014-03-28 23:17:07 +01:00
Renato Botelho
72a95734e3 When WANTIME is empty, there is nothing to do here 2013-12-24 12:09:34 -02:00
Renato Botelho
67e861292a test only does integer comparison, use bc to compare float 2013-12-24 12:08:19 -02:00
Renato Botelho
128cc1f419 Save status even if no script is executed 2013-12-24 12:07:24 -02:00
Renato Botelho
cd14bb1950 On first run REVIOUSSTATUS doesn't exist, so it cannot be UP or DOWN, invert the logic to fix this. While I'm here, check if file exists before cat it 2013-12-24 12:06:51 -02:00
jim-p
9e3784217b Fix CP stats generation for concurrent users. Fixes #3225 2013-09-23 09:56:35 -04:00
Renato Botelho
5aa68a55a6 Fix #3113, fix multiple english spell errors s/seperet/separat/ 2013-07-28 10:31:14 -03:00
jim-p
fd5efd386f Fix exec perms on mail.php 2013-06-13 13:12:47 -04:00
jim-p
dd16aadff6 Add a simple CLI mail script capable of sending an SMTP message using echo/piped input, e.g. ifconfig -a | mail.php -s"ifconfig output" 2013-06-13 13:05:14 -04:00
Renato Botelho
5705c60a24 Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change.

This reverts commit 40c7b1a98b, reversing
changes made to d896f86751.
2013-02-17 11:34:44 -03:00
Michael Newton
91ca7e9fa0 use associative array for captive portal to prevent confusion, messiness, and abuse 2013-02-14 21:14:38 -08:00
Renato Botelho
cba9d7d9a5 Adjust RRD captive portal graphs for CP zones
- Create RRD configs per zone
- Add tabs to see graphs per zone
- Migrate existing rrd files to default cpZone
- While I'm here, call unset() for $rrdcreate and $rrdupdatesh

Resolves #2655
2013-02-06 15:54:47 -02:00
Renato Botelho
5e5d5abc0f Fix indent and whitespaces 2013-02-06 15:54:47 -02:00
smos
dc3e3acb9b Disable Execution timeout for this script. 2012-08-17 07:15:06 +02:00
smos
b45d6db6c4 Round off the values. 2012-05-23 20:25:27 +02:00
smos
5e13bc843e Convert the Bytes per Second into kilobits per second like the status page says 2012-05-23 20:08:40 +02:00
smos
d535507a07 Add more fields to the 3g stats 2012-05-23 13:25:49 +02:00
smos
99f95f7d3b Add the 3G mode display, really needs a function that translates these into sane display numbers for strength and mode.
The mode is actually a combination of LED color 4 = blue(idle), 5 = cyan(connected), and submode 7 = HSDPA
I need to find some proper documentation, really.
2012-05-23 12:15:23 +02:00
smos
7efe5ac50c Initialize the statistics, also parse on MODE messages 2012-05-23 11:41:23 +02:00
smos
73ce690995 Make sure to bail the stats script if we can not open the modem device. 2012-05-23 09:21:44 +02:00
smos
5e5896856a Add 3G statistics for Huawei modems, split the Cellular stats out to per interface instead of global. 2012-05-21 15:31:02 +02:00
jim-p
ca88c37ed5 Include TCP flags in CLI filter parser output (if present) 2012-05-09 13:25:50 -04:00
Jim P
30a560cfca Merge pull request #53 from jeandebogue/patch-1
Move the echo "UP|DOWN" earlier
2012-03-15 06:19:24 -07:00
Warren Baker
4b0e8c916b No need for extra function and touching of file, just set the value and use grep from XML to determine to beep or not 2012-02-23 10:35:03 +02:00
Yehuda Katz
5e4d70a082 Option to disable startup/shutdown sounds 2012-02-22 23:17:05 -05:00
jeandebogue
fad0e014a7 Update usr/local/bin/ping_hosts.sh 2012-02-21 08:52:56 +01:00
smos
b9ee868674 Revert "Remove the -S $SRCIP to ping and added a timeout."
This is functionality that can not be removed to properly keep VPN tunnels alive.

This reverts commit d4e37b2edd.
2012-02-21 08:04:45 +01:00
jeandebogue
d4e37b2edd Remove the -S $SRCIP to ping and added a timeout. 2012-02-21 08:55:49 +01:00
jim-p
0c305760d1 Allow using subnets and special nets in the CLI version of easyrule 2012-01-13 14:27:48 -05:00
jim-p
633136b87f Fix help text 2012-01-13 13:31:34 -05:00
Andrew Thompson
7734aea648 Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.
2011-08-17 14:15:18 +12:00
jim-p
27d0722d13 Merge remote branch 'upstream/master' 2011-05-19 08:50:48 -04:00
Warren Baker
9cd7285680 Ensure that $timestamp is only ever written out if it contains a value and let file be retained through reboots. 2011-05-16 16:25:32 +02:00
Seth Mos
aff70640bf Swap if statement, add fields into ipsecpinghosts file 2011-03-16 13:28:39 +01:00
Seth Mos
e3e85044d1 Add field 8 for address family 2011-03-16 13:26:46 +01:00
Chris Buechler
020b954f20 at least don't touch rrd here, that rrd won't exist anyway 2011-02-06 00:13:55 -05:00
Chris Buechler
bfa49caee3 Revert "the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd)" this is used by at least the DNS server pkg
This reverts commit 9fcf15773c.
2011-02-06 00:05:37 -05:00
Chris Buechler
9fcf15773c the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd) 2011-02-05 03:10:26 -05:00
Warren Baker
20413b72bf Added Captive Portal RRD graphs, there are two graphs one for the number of logged in users since last rrd poll, and concurrent number of users logged in. 2011-01-28 17:16:19 +02:00
jim-p
16926fdccc Use grep -c instead of wc and awk. Also use full paths. 2010-11-29 18:38:17 -05:00
jim-p
ac617a8ffa Eliminate a cat-to-grep 2010-11-29 18:31:29 -05:00
Erik Fonnesbeck
baaa8bb142 Move this function to allow removing it from easyrule. 2010-11-10 22:58:30 -07:00
Ermal
65167fcc05 Do not run anymore the cron job for monitoring check_reload_status since it has a monitoring process that does this through kqueue. 2010-10-16 15:27:30 +00:00
jim-p
e97d0e42f4 Fix permissions. 2010-03-14 17:29:40 -04:00
jim-p
865ff9b464 Refactor the Easy Rule code a bit. Add a CLI version. 2010-03-14 17:16:32 -04:00
jim-p
b3e79d5ee5 Fix double printing of log entries 2010-02-15 13:01:12 -05:00
Ermal Luçi
f41c9fd56a ping_hosts.sh is no more in /etc. Remove some unneeded lines. 2010-02-03 15:19:14 +00:00