Code Monkey home page Code Monkey logo

httpdmon's Introduction

Hi there ๐Ÿ‘‹

httpdmon's People

Contributors

scrutinizer-auto-fixer avatar uuf6429 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

httpdmon's Issues

More paths

Add more default logfile path locations.

not read the log records

I installed but does not read the log records. why could it be? I'm doing what mistake?
server: ubuntu14.04

Relocate log file locations / parsers to external file

This fixes several issues:

  • seamlessly allows adding custom configuration without forcefully breaking in the future
  • decoupling configuration from main program
  • allows shipping of specific configuration scenarios
  • decreases read attempts of scenarios outside of expected situation

Make it breath on Windows

There are currently lots of reasons why it should fail on Windows.
Fix them all and make Bill happy.

Configurable callbacks should be callable

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

Pass Arguments

What's a CLI app without accepting any arguments?
Add the following list of CLI arguments: --help -i/--interval= -ep/--errorlog= -ap/accesslog=

Fatal Error (fread() length must be greater than 0)

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.

plesk 12 has changed log paths

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!

clarify initial setup process?

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!

Faulty Line Wrapping

Line wrapping breaks especially on access-log entries... maybe an issue with the ANSI escape filter?

Startup status

Show some feedback on startup (to give proper indications on initial crashes etc).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.