Git Product home page Git Product logo

serverdiary.jl's Introduction

ServerDiary

Generates very detailed e-mails with graphs and statistics on what was happening on you server during the last days

WARNING: This is a prototype. Don't run it on your server yet!

Installation

This script is written in julia language. You need to install julia 1.3 or newer, for example using

sudo add-apt-repository ppa:jonathonf/julialang
sudo apt-get update
sudo apt install julia

You also need to install pngquant to compress the pngs and send smaller emails: sudo apt install pngquant

To install this package and its julia dependencies enter your Julia CLI and type ] to enter the Pkg-manager. Now enter add https://github.com/Agapanthus/ServerDiary.jl.

If you prefer to download manually, cd the package and run julia install.jl. If you are going to run this as a cronjob, make sure to install it for the same user as the cronjob is running!

Currently, the only supported backend is sysstat. So make sure sysstat and sar are installed and properly configured.

Usage

Run julia ServerDiary/run.jl. It will generate a file stats.email which is a multipart-html-email with images. You can send it using sendmail -i -t < stats.email. The script might take a minute to start because it imports the Plots.jl package.

Old graphs are archived in the stats folder. Feel free to delete them if they become too many.

serverdiary.jl's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.