Giter Site home page Giter Site logo

munin-node-access's Introduction

munin-node-access

This is a quick project to give munin access to my website. Since that's a public machine, we want munin-node to listen only to requests from our desktop IP. But that IP changes whenever we reset the cable modem. This project builds a command you can run on the remote machine to update its munin-node.conf with a new IP.

Usage

munin-node-access <ip> - updates your /etc/munin/munin-node.conf with the given IP.

This script is extra simple so that you can give someone passwordless sudo access to it.

A previous version of this script ran locally and would ssh into the remote machine for you, but that was less secure since it required root accesss.

It might be nice to accept a template filename as a parameter too, but for now we can just embed the template into the binary.

TODO

  • Accept a filename argument to provide a custom template. But maybe make it optional, and default to the compiled-in template.
  • Add an -n or --dry-run option that generates the template and prints it to stdout, but doesn't upload it anywhere. That way you can test that you are getting a sane result.
  • Add a second script that runs locally and obtains your IP then calls the remote script.
  • Provide other ways for that second script to discover your ip.

munin-node-access's People

Contributors

pjungwir avatar

Watchers

 avatar James Cloos 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.