Git Product home page Git Product logo

android-munin-node's Introduction

Android Munin Node - A munin node program for Android
=====================================================
Android Munin Node is a implementation of munin node for android. It isn't directly compatible with Munin, but uses a Virtual node in Munin with a plugin that parses
data that another script takes as an upload from the "node" running on the Android Device. Plugins can be easily added to the project but need to be built in at this
time. Requires mod_python to be installed on the web server to collect the data from the Android Devices.

Example Install
=====================================================
Lets pretend that your website data lives at /var/www/localhost/htdocs/

Make a Directory in /var/www/localhost/htdocs/ called android and copy the python scripts there
Make a Directory in /var/www/localhost/htdocs/android/ called data

Edit android_ and change the variable storedir to /var/www/localhost/htdocs/android/data/
Then edit handler.py and change the variable storedir to /var/www/localhost/htdocs/android/data/

Create Directive in your apache vhost or .htaccess file so that handler.py gets ran
Example:
<Directory "/var/www/localhost/htdocs/android/">
                Options +ExecCGI
                AllowOverride all
                Order allow,deny
                allow from all
                SetHandler mod_python
                PythonHandler handler
</Directory>

Install Munin_Node.apk to your android device and get the unique id.
Create a symlink in your munin plugins directory to point to /var/www/localhost/htdocs/android/android_ called android_youruniqueid
eg: ln -sf /var/www/localhost/htdocs/android/android_ /etc/munin/plugins/android_bd52a2a1608bb3d3

Add to your new virtual node into your plugin-conf.d/munin-node in your munin directory.
Example virtual node:

[android_bd52a2a1608bb3d3]
host_name android-debug

Make sure to change the part in the brackets to your unique id, and set the host_name to something you remember.

Edit your Munin Server munin.conf for your Virtual Node
Example Configuration:
[android-debug]
   address 127.0.0.1
   use_node_name no
   
 Make sure you change the part in the brackets to the host name you set in the previous step and the address points to the host that had the android plugin.
 
 Make sure that you reload your apache configuration and your munin-node so that the changes take place
 

android-munin-node's People

Contributors

silverchris 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.