Git Product home page Git Product logo

my-munin-plugins's Introduction

My own plugins for Munin

This small repository contains some tiny plugins (written in Bash or Python), for the Munin monitoring tool.

Despite a very rich plugin collection, I found some that could be missing to someone (well, at least to me), so I decided to write them. See below for a list of the plugins I wrote (tiny, and probably bugged), and how to install them.


How to install them?

1. First clone the repo

In a classic Ubuntu or Debian Linux environment, with Munin correctly installed with the default folder configuration, the following commands will git clone my repository:

cd ~/.local/etc/munin/    # A certain directory, you can use some place else
git clone https://github.com/Naereen/My-Munin-plugins ./My-Munin-plugins.git/  # Clone my repo
cd ./My-Munin-plugins.git/  # Go to this directory

Then, pick the plugins you like in this folder, and install them or activate them.

For instance, if you want to intall the plugin number_of_plugins.sh, then in the good folder (see step 1) do:

# Be sure it is executable
chmod 755 number_of_plugins.sh  # By default they should all be executable
# Then symlink it to /etc/munin/plugins/
sudo ln -s ${PWD}/number_of_plugins.sh /etc/munin/plugins/nb_of_plugins

You can (and should) then check that the plugin works:

$ munin-run nb_of_plugins  # Gives the number of plugin currently activated
plugins.value 34
myplugins.value 5

You can repeat these two steps for every plugins you want to install.

Note: you can also use the provided Makefile to install one or all plugins:

make install__tmux  # Ask for sudo password and install tmux.sh to /etc/munin/plugins/tmux
make install_all    # Ask for sudo password and install all my plugins to /etc/munin/plugins/

List of plugins

Required configuration

Edit your munin-node configuration file to specify the configuration.

Currently, tmux.sh and gui_windows.sh need to be ran from the user $USER (ie, you) and not munin:

[tmux]
user lilian   # adapt to your own username

[gui_windows]
user lilian   # adapt to your own username

Some screenshots

  • On the main page: tmux
  • On the page for this plugin (with the legend and information on the plots): tmux_2
  • On the main page: gui_windows
  • On the main page: number_of_plugins
  • On the page for this plugin (with the legend and information on the plots): number_of_plugins_2
  • On the main page: get-nb-of-connected-slack-users

Wishlist for future plugins ?

I would like to be able to use Munin to monitor:

  • Number of songs played from morning and number of songs currently in the waiting list, for my music player GMusicBrowser ? (by @squentin) It seems impossible... (I explored the cli API of GMusicBrowser and it seems unachievable)
  • Number of open tabs and windows in Firefox ? It seems impossible...
  • Volume of the main sound card? Seems possible. But useless?
  • Number of USB peripherics connected? Completely useless.
  • Local weather, or temperature of my home?
  • ... And you, do you have any other idea?

๐Ÿ““ References ?


  • uLogMe: keep track of your computer activity throughout the day: visualize your active window titles and the number and frequency of keystrokes, in beautiful and responsive HTML timelines.
  • selfspy: log everything you do on the computer, for statistics, future reference and all-around fun. I also worked a little bit on selfspy-vis, some tools to visualize the data collected by selfspy.
  • My minimalist dashboard, generated every hour (with a crontab file), with this bash script GenerateStatsMarkdown.sh.

๐Ÿ“œ License ? GitHub license

MIT Licensed (file LICENSE). ยฉ Lilian Besson, 2016.

Maintenance Ask Me Anything ! Analytics

ForTheBadge built-with-swag

ForTheBadge uses-badges ForTheBadge uses-git

my-munin-plugins's People

Contributors

naereen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

girish-netskope

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.