GithubHelp home page GithubHelp logo

ssssuprrd's Introduction

Super Simple Server Stats Using Python and RRDTool

Collection of simple monitoring sccripts in Python. Why Python? Because. Demo at http://cybojanek.net:8080

Requirements

  1. simplejson, rrdtool, twisted Python packages
  2. web server

Installation

  1. Configure config.json
  2. Launch with twistd:
twistd -y server.py

Configuration

Why a JSON file? So I can reuse the info in index.html.

The configuration file is a single JSON dictionary, with the following usage:

  • network_devices

    • dictionary of device name to role, ie: "eth0": "web"
  • cpu

    • physical: number of physical cpus, used to mark max line, especially usefull for hyperthreading
  • hdd

    • dictionary of device name to role, ie: "sda": "root"
  • swap

    • Set to "true" / "false" for whether to record swap usage
  • nginx

    • Set to a non empty url that points to the nginx stat module
    • You also need to enable the nginx stats module:
location /nginx_status {
    stub_status on;
    access_log   off;
}

ssssuprrd's People

Contributors

cybojanek avatar

Watchers

 avatar  avatar

ssssuprrd's Issues

Migration support for rrd sources

Have the ability to migrate previous rrd sources to be up to date with current standards for this project (ie new sources, changed names etc)

cpu graph whitespace

rsync caused cpu usage, but also a white gap, meaning reading /proc/stat was done incorrectly

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.