Page 1 of 1

How to install a plugin from github?

Posted: Wed Jan 15, 2014 3:12 am
by reincarne
Hi,
I'm wondering how to install plugins from github?
I used to work with simple command scripts but not with more complicated plugins.
For example this plugin:
https://github.com/pyr/check-graphite

First of all I guess I need to install ruby on my server.
Now where do I put the files? I assume I need to create a new folder inside the lib folder, move there the plugin files.
Then create a new command in Nagios which is using the check_graphite.rb file as a command.

Am I right or there is something else to do?

Also what what is the best ruby version to work on red had with nagiosxi?

Thanks in advance.

Re: How to install a plugin from github?

Posted: Wed Jan 15, 2014 11:46 am
by sreinhardt
You are correct in thinking that first you need ruby, then you need to install this as a gem(or so I would think), the plugin however should be added to /usr/local/nagios/libexec, and finally yes you need a command for your services in nagios to use. Honestly, I would just look into "yum install ruby" or something similar to get the rpm version of ruby installed from redhat repos.