-
-
Notifications
You must be signed in to change notification settings - Fork 506
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 webstats - Pi-hole stats with DietPi-Cloudshell (v113 milestone) #233
Comments
👍 |
I had to search for this as they don't use the global variable they generated, that holds the path in their code Theres no reference to Looks like some code left over from the install script. They dont even parse or use mmm, needs more investigation. |
I was unable to replicate this with DietPi-Ramlog 2 and Full logging modes on a fresh install. It may be language/locale related. I need some more information. Can you paste results of:
Reboot system to generate pihole.log. Allow for a few minutes of queries, then:
|
@k-plan It appears DNSMASQ is logging dates in english:
Where as, your system date is pulling de:
So it looks like I was right. I'll try a few things and get back to you, might need you to test them, but i'll let you know. |
Looks like we can use the following to force english months from date:
If you can confirm the following returns
|
YES! 👍 :0)) |
@k-plan Ok so all the main issues have been resolved. The only outstanding item is:
Although this file is only related to the |
Correct! Happend this moment.
But no more "divide-by-zero error" in AdminLTE before dieitpi-logclear is run: To change |
It appears this hasn't reached the PiHole master branch yet (which DietPi forks).
Hehe, no worries, its not much work (this time :) ). Just a change in the following line is all it needed:
|
not fussed about this. Will only be notice, if BTW: - will |
Ah, missed that one. Same fix as per https://github.com/Fourdee/DietPi/blob/master/dietpi/dietpi-logclear#L117: You can apply this now, just download the new script and restart dietpi-cloudshell:
Patched for v113 |
💯 👍 |
do some testing with modified Results: - with (+) Display graph and counters match with "... Today" bottom in AdminLTE and fits the specified date. Same in Cloudshell It will be my preferred choice. Will be a good default choice for Pi-hole installation. - with ~ Display graph and counters is the past 24 h in the same record.
My upshot: it's now run better as the current default automated install of pi-hole itself. |
@k-plan
https://github.com/Fourdee/DietPi/blob/testing/dietpi/dietpi-logclear#L109-L151 When you reboot the system using DietPi-Ramlog mode 1/2, all log file contents is cleared. We dont store the log file data over reboots, unless you're using full logging mode. The 2nd DietPi-Ramlog mode backs up the logfile contents, but as we (and pihole) dont parse the backups, in theory both DietPi-Ramlog modes will give the same results. You should always have todays pihole logs and stats, unless the pihole.log file exceeds 5MB in size, or you reboot system.
Excellent 👍 The core DietPi optimizations including ramlog and quicker ondemand upscaling will improve PiHole (dns query) response times.
Great suggestions 👍 . I'll leave them here for reference and take a look when things settle down :) |
@Fourdee
How you described, it will be as we desired.
Make sense and my device will do as described above.
Yes, I have read in the describtion of DietPi-Ramlog:
But I can't find
No matter, confused me a little bit. Can be as desired. |
This is because we are using Also, when DietPi-Logclear backs up the logfiles, it actually reads the contents, then adds that data to the existing backups, before the original logfile in /var/log is cleared. So in theory, you could change the code to backup the pihole logs aswell, but you would need to do it a different way. Because |
Hey,
If user wants to use their own list, instead of the default, then they need to manually create You could just ask. |
Seems strange to copy a file from a tempoary directory each time You could even
Clearly unnecessary :) |
One day, we might be friends, and we will look back and laugh. Until then, I think you're a pompous sod... ;) I use the term "temp install directory" loosely. It is, in fact, permanent. The way the install process works is we clone the git repository into The reason I made gravity copy the file each time was so that we could be sure that the user has absolutely not made changes to If you think there are better ways we could be doing things that would mean more compatibility with DietPi, whilst still maintaining compatibility with other systems, then go ahead and submit a PR with your fixes so that you don't have to keep tweaking them each time we update! :) |
Lol, I really couldnt care less what your opinion of me is.
So what your saying is
Will do. |
Meh, not trash talk, just an assessment of how your general attitude has been. But that's probably just me, not a reflection on the rest of the Pi-hole team. Anyway, all that aside.
Correct, before we did this, we were individually curling each file into the required locations, which was causing some issues if connections were dropped mid-install. Made sense to clone the whole repo, and then there isn't as much to download/overwrite when there are updates. |
If I need an assessment of my attitude, I'll ask for one. You really need to learn a way of controlling your emotions and keeping your personal opinions of people, to yourself.
Thanks for the confirmation. |
v113 (20/03/16) Important notes: Odroid C2 | Odroids flagship SBC is now supported in DietPi. Currently under beta, more info and image download: http://forum.odroid.com/viewtopic.php?f=138&t=19948 Software Additions: DietPi-Software | Added DietPi optimized installation option for Redis Server: http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=5&p=1504#p1504 DietPi-Software | Added DietPi optimized installation option for BaiKal (Lightweight CalDAV + CardDAV server): http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=5&p=1502#p1502 DietPi-Software | Added DietPi optimized installation option for RPi-Monitor: http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=5&p=1502#p1503 DietPi-Software | Added additional Linux installation option for Node.js v5.x: Many thanks to "bhaveshgohel" and "spiderkeys" for their input on this one: https://github.com/Fourdee/DietPi/issues/231 Changes / Improvements / Optimizations: DietPi-Process_Tool (RPi 3) | Added options for Bluetooth service and hciuart. DietPi-Software | Ampache installation has been updated to latest (3.8.2). DietPi-Software | PiHole web interface updated to latest DietPi-BugReport | Will now use the system wide UUID, generated by DietPi on 1st install for reference code, instead of MAC address as Odroids use a software configured MAC address (all the same). Bug fixes: Kodi (C2) | Resolved issues with no sound. Using ALSA and asound.conf from oversun, pulseaudio will be uninstalled: http://forum.odroid.com/viewtopic.php?f=136&t=19433&p=131413&hilit=Oversun#p131206 DietPi-External_drive_setup | Will now apply the permissions flag to NTFS drive mount. This allows for linux permissions on NTFS drives, and prevents Owncloud installations on USB NTFS drives from reporting a permissions warning. Applied to new DietPi image installations only, will not effect existing installations. Many thanks to CedArctic for the fix: https://github.com/Fourdee/DietPi/pull/225 DietPi-Uninstall | Resolved an issue where Squeezelite would not uninstall. Many thanks to "SASH" for the bug report. DietPi-LogClear | Resolved an issue where non-english locale would cause pihole.log file to be cleared. This is due to DNSMASQ always logging in english dates, regardless of system locale. Many thanks to K-Plan for reporting the bug and with testing: https://github.com/Fourdee/DietPi/issues/233#issuecomment-196407135 DietPi-Cloudshell | Resolved an issue where non-english locale would prevent DNS query and block count stats updating. DietPi-Software | Will now always clear the apt cache and update it, prior to installing the selected software. The previous "once every 7days" update caused missing package errors if a package filename was changed in the repo during that time. DietPi-Software | Resolved an issue where apt-get errors were not providing error details. PiHole | Resolved possible divide by zero in /var/www/pihole/data.php. The PiHole master branch (which DietPi forks) is yet to merge and recieve this fix. Many thanks to K-Plan: https://github.com/Fourdee/AdminLTE/commit/e1cd3556c55d982d8548e207c1f8d35a09d78f7d General (Coded by rotational467) | DietPi will now correctly identify RPi 3 with cpu id a22082: https://github.com/Fourdee/DietPi/pull/239
@Fourdee
have noticed and tested Update PiHole webstats to current #232
Really nice work, but run into several problems.
Query Log
" page.Also can be seen in logfile:
/error.log
(May be have a look at: pi-hole/web#61 )
Fix: https://www.reddit.com/r/pihole/comments/49t4hp/query_log_not_being_parsed_correctly/
DietPi-Ramlog #1
orDietPi-Ramlog #2
is used, because "/var/log/pihole.log
" is gone, after 1h.edit: - fix for the log message
But didn't solve the fundamental issue using Ramlog with Pi-hole.
Better to have
/var/log/pihole.log
synced in Ram or on disk for 1 day.[Regardless of used:
Full (Rsyslog & Logrotate)
orDietPi-Ramlog #2
]The text was updated successfully, but these errors were encountered: