Commit Graph

94 Commits

Author SHA1 Message Date
DL6ER 3483ee8407 Remove intermediate variables where we don't need them
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-01-05 23:03:23 +01:00
DL6ER d0d0dfede5 Extract first 7 characters of the hash as this is what "git --no-pager describe --always" gives as output
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-01-05 22:36:58 +01:00
DL6ER cf93110aee Final fix for Travis versioning and all the cosmetic issues we have seen
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-01-05 22:34:07 +01:00
DL6ER c9ee9f552a Store DNSSEC result per domain not per query
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-31 16:50:58 +01:00
DL6ER a722dbda82 Return DNSSEC result in getAllQueries result
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-31 15:21:09 +01:00
DL6ER 21e60e3f9a Merge pull request #174 from pi-hole/new/extra-logging
Handle dnsmasq "extra" logging
2017-12-28 22:44:01 +01:00
DL6ER dbc9457708 Worked on review comments
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-28 20:48:29 +01:00
DL6ER 12a46e5ccf Apply the same idea in the telnet request
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-23 12:04:41 +01:00
DL6ER 478568e1ee Extend the new debug command a little bit
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-21 15:54:52 +01:00
DL6ER 541d86bc74 Add (undocumented) debugging command over telnet (display unknown queries)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-21 15:45:42 +01:00
DL6ER c9d990f403 Use a better detection for '.' in the version string / commit hash
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-08 17:18:09 +01:00
DL6ER 32c2471e04 Check if version is of format vX.YYY or vXX.YYY to decide whether on a deployed version or not
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-07 22:42:24 +01:00
DL6ER 33132c72d6 Use GIT_BRANCH not GIT_TAG ...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-11-03 19:35:03 +01:00
DL6ER ff6af26d04 Apply the same logic for the API request ">version"
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-11-03 19:29:14 +01:00
DL6ER fbc5c6d914 Merge pull request #143 from pi-hole/new/pihole_status_stats
Detect pihole blocking status
2017-10-25 18:22:25 +02:00
DL6ER 06efbdf5bb Merge pull request #134 from pi-hole/new/clientsovertime
[WIP] Add clients over time data structure
2017-10-10 19:06:20 +02:00
DL6ER 95f76ad0e4 Detect pihole blocking status and return this on API request
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-10-05 17:48:00 +02:00
DL6ER 2baad5c1a4 Fix that API is expecting a different format of FTL's answer in FTL itself for the sake of convenience (the output format is now similar to ">forward-names")
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-30 10:37:31 +02:00
DL6ER b1833aee97 Merge branch 'development' into tweak/killmessage
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-29 22:50:56 +02:00
DL6ER 88e5e2941e Merge branch 'development' into new/clientsovertime
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-29 22:50:05 +02:00
DL6ER 42c0dcc1e6 Apply API_EXCLUDE_CLIENTS filtering to algorithm that returns clients over time data
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-29 22:34:13 +02:00
DL6ER 83f7a41c97 Remove extra newline
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-24 23:25:59 +02:00
DL6ER d8e037fc32 Send confirmation after ">kill" command
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-24 11:20:04 +02:00
DL6ER ff2c0ea964 Always send EOM at end of transmission (if connection is still alive)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-24 11:13:30 +02:00
DL6ER a14167fcf9 Return absolute instead of relative data in client over time requests 2017-09-23 13:03:25 +02:00
DL6ER 199fccf643 Add ">ClientsoverTime" request 2017-09-22 20:50:21 +02:00
DL6ER 891cfa5bf5 Ensure percentages in forward destinations do always sum up to one
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-22 17:10:01 +02:00
DL6ER 14b0b17119 Just fix the typo
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 22:57:13 +02:00
DL6ER f249126ed4 Revert "Fixed a typo and added some parentheses to the new equations for the sake of readability."
This reverts commit 93b57db17f.
2017-09-20 22:56:19 +02:00
DL6ER 93b57db17f Fixed a typo and added some parentheses to the new equations for the sake of readability. 2017-09-20 22:32:18 +02:00
DL6ER a186a53731 Implemented comments from GitHub
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 22:01:13 +02:00
DL6ER 557569ce6b :codacy: is very critical about reduction of scopes of variables
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 17:36:16 +02:00
DL6ER 1b6d9e714b Check for potential floating point exceptions if we have zero queries in memory
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 17:25:36 +02:00
DL6ER 3088020c01 Return also percentages for query types over time
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 17:11:56 +02:00
DL6ER 00d49759f6 Modify forward destinations over time to give normalized percentages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 17:07:52 +02:00
DL6ER 995addfbc9 Make ">querytypes" return percentages
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 16:46:05 +02:00
DL6ER fc63712add Make ">forward-names" use the same function as ">forward-dest unsorted" because these two routines do exactly the same thing. Remove the obsolete function.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 16:41:00 +02:00
DL6ER 9790cfd531 Make ">forward-dest" return normalized percentages instead of absolute numbers
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-20 16:32:25 +02:00
DL6ER 8ebc2e7f51 Add comments to the code 2017-08-13 15:22:40 +02:00
DL6ER 21c9a497e2 Make "unique_clients" returning the number of clients that have been active within the most recent 24 hours (match the behavior of top-clients). Add "clients_ever_seen" to preserve the information of how many unique clients FTL has seen in its runtime (whether or not they have been active recently) 2017-08-13 14:53:45 +02:00
DL6ER 13b8a8312d Add "withzero" as an option for "top-clients" to show also known clients that have zero queries within the most recent 24 hours 2017-08-13 14:52:47 +02:00
DL6ER 845bf8354f Offer unsorted list of forward destinations (test may fails) 2017-07-08 13:59:23 +02:00
DL6ER 01dc64cea4 Refactor DB thread to run exclusively either saving queries into the DB *or* deleting old queries (i.e. every hour at minute 59 no queries will be saved to the DB, but instead, two minutes of data will be saved at the full hour) 2017-06-22 23:14:13 +02:00
DL6ER cda02291ff Add number of unique clients to statistics 2017-06-19 19:39:44 +02:00
DL6ER 1755c71a2b Restructure DELETE statement because it didn't work as expected (#81)
* Restructure DELETE statement because it didn't work as expected

* Revert changes in the Makefile
2017-06-16 12:33:44 +02:00
DL6ER 692d69947e Add FTL SQLite3 implementation, we compile SQLite3 on-the-fly to become independent of installed libraries
Limit DB filesize, configureable via config file, if set to zero, the DB functionality is disabled altogether
Add ">dbstats" to the telnet interface
2017-06-09 09:47:13 +02:00
DL6ER 22e50c5a34 Use allocated boolean for free 2017-05-27 14:22:48 +02:00
DL6ER 3bead9d83c Used wrong index in getForwardDestinations 2017-05-27 14:19:53 +02:00
DL6ER c616bbc838 Don't exclude audited domains from dash board tables (#47) 2017-05-12 23:17:17 +02:00
DL6ER 14ab44a032 Restructure code such that cast is not necessary for qsort comparison function (#41) 2017-05-10 22:36:05 +02:00