uuf6429 / httpdmon Goto Github PK
View Code? Open in Web Editor NEWApache Realtime Logfile Monitor
Apache Realtime Logfile Monitor
Listen for 'q' keypress and exit.
There are currently lots of reasons why it should fail on Windows.
Fix them all and make Bill happy.
What's a CLI app without accepting any arguments?
Add the following list of CLI arguments: --help -i/--interval= -ep/--errorlog= -ap/accesslog=
The updater code in class HttpdMon should be moved out into a separate class.
Instead of using create_function()
on a string in configuration, declare the function as a callback (closure or at least define function in top of file and return function name as string).
Pros: Cleaner approach, doesn't trigger security issue
Cons: Runtime config cannot be written to file
Add an option to show file size in human-readable form (eg, KB, MB, etc).
This fixes several issues:
Line wrapping breaks especially on access-log entries... maybe an issue with the ANSI escape filter?
Show some feedback on startup (to give proper indications on initial crashes etc).
It seems i'm unable to use the updated httpdmon version. It's reporting "edmFATAL] No configuration loaded. (error 0, httpdmon:740) genericons.example.html.list.txt"
I tried to set it up fresh, but it's not clear to me how to make a config file. I'm also not sure if I need a "definition file", and even what a definition file is. it might be helpful to show an valid example value of $NAME in
"To download access/error log definitions, run the following command for the desired file (replace $NAME with the definition file name):"
Thanks!
After cleaning up log files via plesk:
/usr/local/psa/admin/sbin/statistics --calculate-all
The following error comes up inside httpdmon:
[FATAL] fread(): Length parameter must be greater than 0 (code 2, line 145)
The reason is probably the use of filesize()
on a truncated file.
Allow updating configuration file via CLI calls
Instead of defaulting to time()
, use a value passed as a CLI argument (parsed via strtotime()
).
Add more default logfile path locations.
I installed but does not read the log records. why could it be? I'm doing what mistake?
server: ubuntu14.04
Thanks for the great tool! On my Ubuntu 14/Plesk 12 server the log paths were as follows. I added the to the list and am good to go.
'/var/www/vhosts/*/logs/access_log', // linux + plesk 12
'/var/www/vhosts/*/logs/error_log', // linux + plesk 12
It's worth noting that Plesk 12 also makes duplicate copies of the logs with different permissions to /var/www/vhosts/system/*/logs/(access_log|error_log), but they don't show correct associated domain name when that path is used in httpdmon.
I don't know if it's worth including the new paths in the tool or not, but hope this helps somebody else!
Add CLI option to resolve IPs to hostnames.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.