Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a self-contained plugin file #92

Open
drzraf opened this issue Mar 27, 2017 · 10 comments
Open

Provide a self-contained plugin file #92

drzraf opened this issue Mar 27, 2017 · 10 comments

Comments

@drzraf
Copy link

drzraf commented Mar 27, 2017

This great plugin would be more used if it could fit in a self-contained perl-script rather than a whole make/installation.
Hint: The make could make concatenation of the perl-code of the libraries?

@szepeviktor
Copy link
Contributor

Or it could be a proper Debian package.

@roidelapluie
Copy link
Collaborator

I'd rather have proper packages

@meersjo
Copy link

meersjo commented Apr 7, 2017

I agree, proper packages would be superior, especially since they also can take into account the differing directory structures on various distributions.

Also, it's been a long time since I did some proper perl, but I suspect that perl modules depend on being stored in separate files?

@szepeviktor
Copy link
Contributor

The first step could be a module on CPAN
https://perldoc.perl.org/perlnewmod.html

@meersjo
Copy link

meersjo commented Apr 7, 2017 via email

@szepeviktor
Copy link
Contributor

@szepeviktor
Copy link
Contributor

szepeviktor commented Apr 7, 2017

I think packaging is mainly for maintenance (no stray files) and updates.

Installation could be cpan Munin::MySQL::Graph or apt-get install munin-plugin-mysql created by cpan2deb in dh-make-perl

@kjellm
Copy link
Owner

kjellm commented Apr 7, 2017

I don't think you can get cpan to install stuff to /etc/munin. We need to put mysql.conf under /etc/munin/plugin-conf.d/. And mysql under /etc/munin/plugins. So we would need an extra install step even if we make a CPAN module.

@szepeviktor
Copy link
Contributor

szepeviktor commented Apr 7, 2017

So we would need an extra install step even if we make a CPAN module.

Currently mysql.conf needs manual configuration.

When configuring mysql.conf one may create a symlink for mysql in /etc/munin/plugins (as in Debian)

@szepeviktor
Copy link
Contributor

szepeviktor commented Apr 7, 2017

Example instructions

Installation

  1. Please install the perl module: cpan Munin::MySQL::Graph
  2. Enter your DB credentials in /etc/munin/plugin-conf.d/mysql.conf. Skeleton configuration file can be found in ...
  3. Activate the plugin by creating a symlink: ln -s .../mysql /etc/munin/plugins/
  4. Restart munin-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants