Commit graph

254 commits

Author SHA1 Message Date
Adam Warner
c10abfc61e Add column "piholed" to queries table. If name is in gravity.list, return true, else, false. We can now kill off the gravity table/script 2016-10-06 10:59:12 +01:00
Adam Warner
faa204743d Delete summary entries older than 7 days. To be made configurable in future version 2016-10-04 13:49:35 +01:00
Adam Warner
535f34f200 python script for saving summary data. For use before flushing 2016-10-04 13:33:54 +01:00
Dan Schaper
9f29bef173 Remove idx creation, sqlite3 handles this automatically. 2016-10-02 11:36:00 -07:00
Dan Schaper
64b91c8b97 with open logfile for Python autohandling of closure. 2016-10-02 11:31:12 -07:00
Dan Schaper
14424939a9 Set correct db in gravity_parse. Start using with in dnsmasq 2016-10-02 11:26:40 -07:00
Dan Schaper
185efaf82e Strip out count dictionary and remove incremental operations. 2016-10-02 11:05:56 -07:00
Dan Schaper
9f94570fff Move PRAGMA command to first step after cursor creation. 2016-10-02 09:53:43 -07:00
Dan Schaper
e9ff14daf3 Change qt (queryTable) to gt (gravityTable) 2016-10-02 09:52:47 -07:00
Promofaux
cc3fe5363a dan dropped a line = line.rstrip(), not to worry, I picked it up for him. 2016-10-02 17:39:37 +01:00
Dan Schaper
ae9b5bdffc Comments 2016-10-01 21:16:31 -07:00
Dan Schaper
e6873e0ebd Commits squashed, lots of changes. 2016-10-01 21:13:55 -07:00
Dan Schaper
2e331cbd73 Try WAL mode 2016-10-01 20:12:56 -07:00
Dan Schaper
04b5e1a7d3 Remove extra DELETE FROM - Table has just been created, should alread by empty. 2016-10-01 20:03:50 -07:00
Promofaux
b20b617718 Add pi-hole header 2016-10-02 02:56:48 +01:00
Dan Schaper
1f009462d1 Add Pi-hole Header, remove print statements 2016-10-01 18:50:15 -07:00
Promofaux
899bbc8d97 Merge branch 'development' into db 2016-10-01 21:50:14 +01:00
Dan Schaper
9a421d510a Ignore comments in adlists.list section. 2016-10-01 13:16:58 -07:00
Promofaux
48d215a53a change column name to idx 2016-10-01 02:00:58 +01:00
Promofaux
5c4cd7383b Workaround 2016-09-30 23:09:54 +01:00
Promofaux
30f24dc988 Change shebang to ensure python2 is called 2016-09-30 21:15:44 +01:00
Promofaux
6fb0756abd change db flush to 1 minute past midnight to stop results from 23:59 appearing in stats. Once we start storing more than one day, this can be revised. 2016-09-29 22:40:18 +01:00
Promofaux
74a398ce34 Much needed update to chronometer. Now Curls the api.php?summaryRaw to ensure results are the same as web 2016-09-29 20:02:31 +01:00
Promofaux
612e22135f add back in needed script 2016-09-28 21:14:53 +01:00
Dan Schaper
a9c3e2c7ba Add log_write function. Update version_check to use logical conditionals. 2016-09-28 13:09:38 -07:00
Promofaux
1fbf182f1b add minutely cron job to import log from log file to db 2016-09-28 21:04:14 +01:00
Promofaux
08f86001a2 remove no longer needed cron job 2016-09-28 21:01:18 +01:00
Promofaux
503c2b9781 remove no longer needed script 2016-09-28 20:58:27 +01:00
Promofaux
40750c0196 Add final conn.commit() 2016-09-28 20:46:16 +01:00
Promofaux
8e1b5338c6 Whoops, actually drop gravity table on each run 2016-09-28 20:43:16 +01:00
Promofaux
0e746bde44 Provide the correct number of bindings 2016-09-28 20:35:28 +01:00
Promofaux
43dca276f4 parameters, not string concats 2016-09-28 20:31:12 +01:00
Promofaux
ff3bb11c27 add gravity_parse.py to read gravity.list domains into db (for quicker lookups) 2016-09-28 20:18:34 +01:00
Promofaux
f0343c6b77 change output path 2016-09-28 20:18:04 +01:00
Dan Schaper
7fcb40739d Close IF statement 2016-09-28 10:25:37 -07:00
Dan Schaper
5a3d319677 Add fail check to dig local and remote. 2016-09-28 10:24:44 -07:00
Promofaux
cd2b954bec add dnsmasq_parse.py from https://github.com/averagesecurityguy/blue before modification 2016-09-28 18:14:51 +01:00
Dan Schaper
8466d0b681 Change NSLOOKUP to dig for resolver tests, add dnsmasq specific records check 2016-09-28 10:14:47 -07:00
Dan Schaper
5de179f1eb Remove blacklist comparison. 2016-09-28 09:52:11 -07:00
Dan Schaper
36e10595cc Change netstat to lsof. 2016-09-28 09:51:14 -07:00
Dan Schaper
edd7f28104 Add internet checks to IP section 2016-09-27 19:39:28 -07:00
Dan Schaper
dba1ab3fc0 Remove compareWhitelist 2016-09-27 19:31:21 -07:00
Dan Schaper
3df9c48012 Include ping statistics in default gateway checks. 2016-09-27 19:30:37 -07:00
Dan Schaper
ac1c299369 Revert overzealous renaming of Pi-hole in pihole.log detection. 2016-09-26 20:54:05 -07:00
Dan Schaper
5bbb3ac49a Standardize Pi-hole naming. 2016-09-26 20:50:03 -07:00
Dan Schaper
014bdf911a Add open port detection 2016-09-26 20:39:39 -07:00
Dan Schaper
874853fe18 Add lighttpd to version check 2016-09-26 19:23:30 -07:00
Dan Schaper
274b71f8bc Relocate hostname checks 2016-09-26 18:52:12 -07:00
Dan Schaper
c41d543d81 Handle lack of IPv6 gracefully. 2016-09-26 18:27:02 -07:00
Dan Schaper
7729ddab30 Mode code realignment. Handle lack of IPv6 gateway gracefully. 2016-09-26 18:21:58 -07:00