-
-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi Software | PiHole: "Queries over time" show only graph 1 hour #839
Comments
Thanks for the report 👍 There is an exclusion for PiHole's log file clearing with DietPi-Ramlog. It should allow for 24 hour logs. Let me run some tests here and check source. edit:
Most likely this, Mode 2 probably moving the log contents, before 24h check is done. Notes:
|
yes, I noticed this, but can't understand or debug, what your script is doing ... sorry for my disability. 😃 On the outdated PiHole installation, with Ramlog 2, graphing will works like a charm.
|
Yep, checked code, looks fine. Shouldn't trigger a clear unless previous day.
Thanks, i'll check 👍 |
The first screenshot is taken from this device (NanoPi v146)
But it's the same, as well on RPi Zero W or OPi One (latest image version) updated to v147, |
Really strange, I cant seem to replicate this on RAMlog mode 1/2. PiHole logs are only cleared if day Just wondering if your PiHole log file is hitting 5MB> in size? in which case, it will be cleared to free up RAMlog (20MB tmpfs max): Other thing could be |
No, it's only my personal test device for my single computer.
But anyway ... shall we start form the scratch? (hope it is the last time, I do this ...) |
OPi One installation:
Software:
So choose for uninstall and after this run install via After automated reboot, PiHole works. Setup Pihole: Tested and work:
Graphing in "Queries over time" start working after 10 min. After 47 min:
👎 Now installation on RPi-Zero-W is running .... |
RPi-Zero-W installation:
Software:
After automated reboot, PiHole works. Setup Pihole:
Do you noticed "Every Hour at 17 Minutes " on ALL tested devices❓ update: 20:17:00
Yes, |
for testing:
No, choose, add and switch BTW: Hope, with "Pi-hole FTL engine" all become better. 😃 |
Thanks, i'll check 👍
Looks like a change from php to C: https://github.com/pi-hole/FTL/blob/master/main.c should make for much reduced query times, espically with use of multithreading: https://github.com/pi-hole/FTL/blob/master/main.c#L43-L49 If IO on log file has any impact on query time, it "should" run faster on DietPi (RAMlog) 😉 |
https://github.com/pi-hole/FTL#pi-hole-ftl
Yep, and Sonic is copyright of SEGA lmao |
Only change default locale=en_GB didn't help. Must remove all other language support.
Flat file support will decease. Running database in RAMlog? 😉
|
Got it:
This will cause scrape to miss those entries, removing them. I'll try a fix.
|
+ PiHole log clear fix, non en_GB default: https://github.com/Fourdee/DietPi/issues/839
This commit should do it: |
Test is running on one device. Thanks. |
Testing:
Different language in logfile content depends on device (NanoPi Neo vs. OrangePi One), but it seem to be equal. |
Only copy your command from here 😃 But yes, you're right:
😄 ( ... and British form a Dane - nice!) 🤣
yes, I think so. It seem to be working on my Chinese locale RPi-Zero_W now.
🤣
Yes, if it will run well on your C2 too. Failure with locales in scripting, just as difficult every time. |
Testing results:
|
Yep, my bad 👍 |
**v148** (08/04/17) --- **Changes / Improvements / Optimizations:** DietPi-Config | WiFi: Country code is now also applied to cfg80211 module params (ieee80211_regdom=): https://github.com/Fourdee/DietPi/issues/838 DietPi-Config | Network NAS/Misc: Added option to delay boot, until a valid network connection is established: https://github.com/Fourdee/DietPi/issues/842 DietPi-Config | Audio > Sound Card: Added support for AudioPhonics I-Sabre-K2M (9018K2M): https://github.com/Fourdee/DietPi/issues/716 DietPi-Software | NTPD check/wait: Is now bypassed if no valid network connection is available. It will be checked again, before software installation: https://github.com/Fourdee/DietPi/issues/840 DietPi-Software | Tonido: Now available for installation. Lightweight alternative to NextCloud/Owncloud: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=6476#p6476 DietPi-Software | IceCast: Now available for installation. This is a Shoutcast streaming server, using DarkIce for audio input: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=6526#p6526 DietPi-Software | MotionEye: Now available for installation (RPi only). Web interface and surveillance for your RPi/USB camera. Mainly focused towards motion detection usage: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&start=100 DietPi-Software | CloudPrint (Google): Now available for installation. Print server with support for Google cloud printing. Many thanks to Sciamano for his assistance with testing: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&start=100#p6630 DietPi-Set_Hardware | RPi Camera: Now enables bcm2835-v4l2 by default. Required for /dev/video0 stream (mainly for motioneye). General | Boot: All failed drive mounts will be re-mounted after network connection is established. This is mainly a failsafe for CIFS/net shares, to ensure they are mounted again after network established: https://github.com/Fourdee/DietPi/issues/842#issuecomment-289448261 --- **Bug fixes:** DietPi-Software | YaCy: Web interface admin details are now set during install. Username = admin, password = dietpi. Many thanks to Pilovali for reporting this!: DietPi-Software | Gogs: Installation now resolved. Due to https://dl.gogs.io/ removing "latest" links for binary download. Now hosted on dietpi.com: https://github.com/Fourdee/DietPi/issues/833 DietPi-Software | OMV: Has been disabled. We have recieved too many reports from users with issues, due to incompatibility with DietPi. As we cant control what OMV does and how it does it, we cannot support it: https://github.com/Fourdee/DietPi/issues/851 DietPi-RAMlog | PiHole: Resolved an issue where PiHole logs were being cleared every 1 hour, if default locale on system is not en_GB. PiHole logs allow for current day and 5MB size limit. Many thanks to @k-plan for his assistance with this one: https://github.com/Fourdee/DietPi/issues/839 General | Cron-Daily: Removed a df export left over from auto TRIM code (no longer used). General | RoseapplePi CPU temp: Now functional. Many thanks to @joaofl for this fix: https://github.com/Fourdee/DietPi/issues/848 --- **RPi Stretch:** DietPi-Software | FFmpeg now sucessfully installs: https://github.com/Fourdee/DietPi/issues/475
Tested devices:
DietPi Version:
Installed software:
Install PiHole via
dietpi-software
PiHole Version:
PiHole logfile:
Fiddle around a lot, e.g. fresh install pihole, different devices, starting with new images, install by hand or
dietpi.txt
, Ramlog 1 or 2 or no, but with no success. 😢I think it is a problem in
dietpi-logclear
withdnsmasq
:https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-logclear#L108
because every hour at
xx:17:01 dnsmasq
log start new again.Wondering, why no other DietPi user notice graphing issue in the PiHole web interface ... ❓
BTW: my main productive system, with a old and outdated PiHole installation, it works like a charm ...
The text was updated successfully, but these errors were encountered: