Giter Club home page Giter Club logo

phpsyswatch's People

Contributors

justyns avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

phpsyswatch's Issues

Auto-delete old records

Right now, everything is logged indefinitely. DB size so far isn't too big of a problem(~250mb for a few months worth of logs on a moderately trafficked server)

There should be an option to auto-delete records older than X amount of days. Vacuum should also be called on the sqlite database to free up space.

Check if dbfile exists in main loop

right now, if you delete dbfile while watch.php is still running, it will error out and die - but it also leaves a 0byte db file in its place causing it not to create the db automatically.

as part of the main while loop, it needs to check if the file exists and die if not so that it can be created the next time cron runs watch.php.

No scrollbar in firefox

Some firefox browsers aren't showing a scrollbar on the window that pops up from the graphs

Monitor swap usage

Need to add a new table to monitor swap usage, almost identical to the current memory table:

CREATE TABLE swap (
    id INTEGER PRIMARY_KEY AUTO_INCREMENT,
    time INTEGER,
    total INTEGER,
    used INTEGER,
    free INTEGER
    );

And then start logging swap usage in the main loop, preferably by checking /proc and not using shell_exec

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.