summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert latency to ms before use it to compare with value defined in gateway ↵Renato Botelho2015-12-111-3/+3
| | | | conf
* Merge pull request #2207 from phil-davis/patch-2Renato Botelho2015-12-111-31/+89
|\
| * Gateway advanced parameter validationPhil Davis2015-12-111-31/+89
|/ | | | | | | | | | | | | This does what I can think of so far: 1) Make sure low latency < high latency, low loss < high loss 2) Loss interval must be at least latencyhigh otherwise every packet that was high latency would be counted as lost before it came back. (see note below) 3) averaging time period must be at least 2 times probe interval - it is not much of an "average" if it averages less than 2 probes :) 4) alert interval must be at least probe interval - there is no point recalculating the average latency and loss more often than once every probe interval. 5) Criteria for showing or hiding the advanced options on page load fixed up to account for all the fields now in the advanced section. 6) Additional information - I have written some stuff that I think is now helpful. Note: Currently the default loss interval is 500 and latencyhigh is also 500. This makes no sense to me. If a probe comes back in > 500ms then the thread that is waiting for the reply will have given up (loss interval has expired). So any packets with an RTT > 500ms will be considered lost. Therefore there will be no packets recorded with an RTT > 500ms. Therefore the average latency can never exceed latencyhigh. It seems to me that "loss interval" needs to be reasonably higher than "latencyhigh" in any sensible configuration. Thoughts?
* Change quality rrd delay variable again to match same unit apinger used so ↵Renato Botelho2015-12-111-1/+1
| | | | we don't break current database. Ticket #5624
* Fix parameter orderRenato Botelho2015-12-111-2/+2
|
* Add template to rrd updateRenato Botelho2015-12-111-2/+2
|
* Actually call bc to do the math, ticket #5624Renato Botelho2015-12-111-1/+1
|
* Convert delay to milliseconds for RRD graph, ticket #5624Renato Botelho2015-12-111-0/+3
|
* Merge pull request #2206 from phil-davis/r002Renato Botelho2015-12-114-13/+13
|\
| * Random stuff in tools folder treePhil Davis2015-12-114-13/+13
| | | | | | | | White space and text or comment typos only - nothing functional.
* | Remove unused function create_gateway_quality_rrd()Renato Botelho2015-12-111-35/+0
| |
* | Implement RRD gateway qualiry support after move to dpinger. Fixes #5624Renato Botelho2015-12-111-0/+37
| |
* | Use $ values for vardb_pathRenato Botelho2015-12-111-5/+5
|/
* Merge pull request #2205 from phil-davis/patch-2Renato Botelho2015-12-111-1/+5
|\
| * Only ask Proceed with upgrade question oncePhil Davis2015-12-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | On nanoBSD there is a "Proceed with upgrade?" question warning about the duplicate slice. After answering "y" to that, the system does the duplicate slice, which takes some minutes. Then it asks again "Proceed with upgrade?" after displaying all the packages it will install. That is a bit annoying at the console - I answer "y" and go off to make a cup of tea, only to come back and find that it is waiting asking again. On nanoBSD a reboot is known to be required anyway, because even if it is some little package that gets upgraded, and not the core OS, the partition is always switched. So we can say that in the first warning and then skip asking "Proceed with upgrade?" a second time. What do you think? Should it ask a 2nd time after displaying the packages to be installed? Or is it OK to skip that confirmation prompt? Also, I moved the call to setup_nanobsd_env inside the "if nanobsd" - it worked like it was because setup_nanobsd_env returns without doing anything if the system is not nanobsd, but it just looked odd and there seems no point calling it when not nanobsd.
* | Merge pull request #2185 from phil-davis/factory-default-interfaces-20151208Renato Botelho2015-12-112-0/+63
|\ \
| * | Automatically choose some interface combinationsPhil Davis2015-12-082-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on factory default boot. This allows the system to switch interfaces from the newer ones in the default config (e.g. em0 em1) back to the interfaces used by: Alix - vr1 vr0 APU - re1 re2 that match the WAN and LAN labels printed on many existing devices. It means these devices can boot the default config and this will automatically detect that there is no em0/em1 and will instead select whatever exists out of vr1/vr0 or re1/re2. This avoids the user having to use the serial cable to do interface assignment when starting a brand new image, or when resetting to factory defaults. It could easily be extended to other common interface combinations. For me, this (or similar) would be very beneficial. At remote sites it is really good if it is possible to do reset to factory defaults, or put a fresh CF/SD card in, and the system boots without needing to connect a serial cable and do interface assignment.
* | | Merge pull request #2182 from NOYB/write_config_only_optionRenato Botelho2015-12-111-1/+7
|\ \ \
| * | | Write Config Only OptionNOYB2015-12-071-1/+7
| | | | | | | | | | | | | | | | Add write_config function option to only write the config. Sometimes syncing firewall is not necessary or desirable. ex: changing log display options.
* | | | Merge pull request #2191 from phil-davis/patch-3Renato Botelho2015-12-111-13/+3
|\ \ \ \
| * | | | Internationalize console reboot scriptPhil Davis2015-12-101-13/+3
| | | | | | | | | | | | | | | | | | | | This file previously had to have a space after "Do you want to proceed [y|n]?" to make the prompt for user input nice. That made it one of the few exceptions to the code style guide, where lines are not supposed to have blank space at the end. Might as well have 1 less exception to the rule by internationalizing it, which removes the literal "EOD" echo output stuff.
* | | | | Merge pull request #2192 from phil-davis/patch-4Renato Botelho2015-12-111-13/+3
|\ \ \ \ \
| * | | | | Internationalize console halt scriptPhil Davis2015-12-101-13/+3
| |/ / / / | | | | | | | | | | | | | | | This file previously had to have a space after "Do you want to proceed [y|n]?" to make the prompt for user input nice. That made it one of the few exceptions to the code style guide, where lines are not supposed to have blank space at the end. Might as well have 1 less exception to the rule by internationalizing it, which removes the literal "EOD" echo output stuff.
* | | | | Merge pull request #2193 from phil-davis/patch-5Renato Botelho2015-12-111-15/+4
|\ \ \ \ \
| * | | | | Internationalize console reset to factory defaultsPhil Davis2015-12-101-15/+4
| |/ / / / | | | | | | | | | | This is another one that was using echo EOD stuff and needed a space after "Do you want to proceed [y|n]?".
* | | | | Merge pull request #2194 from phil-davis/patch-6Renato Botelho2015-12-111-27/+12
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Internationalize more of config.console.incPhil Davis2015-12-101-27/+12
| |/ / / | | | | | | | | | | | | This code is a whole mix of some palces that use gettext() and other chunks of output that are hardcoded text between "EOD" markers. I have got rid of the "EOD" blocks where there is a question asked - those needed to have a space at the end of the question. To meet code style guide it is easy if questions are all in their own echo statements and the space " " can be visibly coded in.
* | | | Merge pull request #2195 from phil-davis/patch-8Renato Botelho2015-12-111-10/+0
|\ \ \ \
| * | | | Remove bonus debug from filter_log.incPhil Davis2015-12-101-10/+0
| |/ / / | | | | | | | | These debug blocks look like they should not be in production. if 'debug' is turned on, then they would always log_error() and return for all log lines, even good ones.
* | | | Merge pull request #2201 from phil-davis/patch-10Renato Botelho2015-12-111-1/+1
|\ \ \ \
| * | | | apinger loss_interval array key namePhil Davis2015-12-111-1/+1
| | | | |
* | | | | Merge pull request #2204 from phil-davis/patch-13Renato Botelho2015-12-111-4/+4
|\ \ \ \ \
| * | | | | dpinger help textPhil Davis2015-12-111-4/+4
| |/ / / / | | | | | | | | | | | | | | | The packet loss thresholds must still be in % ? milliseconds does not look valid. Other things are minor formatting.
* | | | | Merge pull request #2202 from phil-davis/patch-11Renato Botelho2015-12-111-4/+4
|\ \ \ \ \
| * | | | | Fix GW setting names in upgrade_configPhil Davis2015-12-111-4/+4
| |/ / / /
* | | | | Merge pull request #2200 from phil-davis/patch-2Renato Botelho2015-12-111-3/+3
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | gwlb array key typo loss_intervalPhil Davis2015-12-111-3/+3
|/ / / /
* | | | Goodbye apingerRenato Botelho2015-12-101-2/+0
| | | |
* | | | Write upgrade config to replace apinger by dpinger, it should fix #5624Renato Botelho2015-12-103-2/+52
| | | |
* | | | Ticket #5624: Welcome dpinger!Renato Botelho2015-12-109-383/+260
| | | |
* | | | Add rc.gateway_alarm scriptRenato Botelho2015-12-101-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | dpinger always pass 3 parameters to alert_cmd, what can make pfSctl confuse, This script will be called by dpinger when alarm goes on or off, then it's going to call pfSctl
* | | | Fix indentRenato Botelho2015-12-101-3/+3
| | | |
* | | | Simplify logic and break some long lines, no functional changesRenato Botelho2015-12-101-99/+78
| | | |
* | | | Remove calculated optionsRenato Botelho2015-12-101-87/+0
| | | |
* | | | Change apinger_default to dpinger_defaultRenato Botelho2015-12-101-32/+32
| | | |
* | | | Merge pull request #2199 from heper/patch-2Stephen Beaver2015-12-101-0/+2
|\ \ \ \
| * | | | fix #5563heper2015-12-101-0/+2
| | | | |
* | | | | Fixed #5602 by dynamically updating hte help text based on the cert selected.Stephen Beaver2015-12-103-11/+26
|/ / / /
* | | | Code style and white space in etcPhil Davis2015-12-1029-100/+131
| | | |
* | | | Fix #5598 - Nanobsd upgrade fails on GUIRenato Botelho2015-12-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | When -p is used on nanobsd, progres socket must be created on secondary partition (chroot_dir) otherwise pkg, that runs with -c chroot_dir, will not be able to find UNIX socket to connect and send events
OpenPOWER on IntegriCloud