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.
How to install a plugin from github?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to install a plugin from github?
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.