Hi all,
I just started work on a set of Munin plugins for Gitorious, which is
something we'll be using on the new servers we're setting up on
gitorious.org.
I'm creating it as a gem, and it's already possible to install an
early version on your server, using `gem install
gitorious-munin-plugins`. This will result in a single binary
`gitorious-munin-plugin` provides a CLI for working with
the plugins:
- list available plugins and which have been "installed" on your
server
- "Install" new plugins
- "Uninstall" plugins that have been installed
The gitorious-munin-plugin is also the actual binary that you
symlink into /etc/munin/plugins on your server, and it will check
which name it was called as to load the actual plugin code from inside
the gem. You don't need to think too much about this, however, just
use the binary to install and uninstall the plugins. But if you want
to contribute your own plugins, this information will probably save
you some wtf's.
Assumptions
-----------
This gem assumes your Munin plugins are installed in
/etc/munin/plugins - YMMW.
Furthermore, in order to use the plugin you will need to create
/etc/gitorious.conf, which will need to contain at least:
GITORIOUS_HOME=/where/you/installed/gitorious
Furthermore, you may define RAILS_ENV in that file if you're not
running with the default ("production").
Based on this single source of information, there's infrastructure in
the library to load the Mysql parameters from your database.yml file
in order to query the database.
Report types
------------
We'll be migrating many more plugins, but at the time being there is
one plugin for SSH keys and one for users.
Source
------
If you use Munin with Gitorious, we'd love to include your reports in
the library. The source is at
https://gitorious.org/gitorious/gitorious-munin-plugins
and any files inside lib/gitorious-munin-plugins/plugins in the source
are made available as plugins. Have a look at
https://gitorious.org/gitorious/gitorious-munin-plugins/blobs/master/lib/gitorious-munin-plugins/plugins/gitorious_users.rb
to see the code for the users plugin. It's really very simple.
Looking forward to your contributions!
Cheers,
- Marius
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]