I'm installing a plugin using https://exchange.nagios.org/directory/P ... cs/details
I have managed to install the plugin and command.
Nagios XI version : 5.2.9
I have installed the ruby and gem as required
# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
root@nagmonusdev1:(07-14 13:24): /usr/local/nagios/libexec
# gem -v
1.3.7
# gem list
*** LOCAL GEMS ***
amazon-ec2 (0.9.17)
CloudyScripts (2.14.64)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (2.9.2)
xml-simple (1.1.5)
zip (2.0.2)
Getting below error
# ./check_cloudwatch_status-2.5.07.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- fog (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./check_cloudwatch_status-2.5.07.rb:12
from ./check_cloudwatch_status-2.5.07.rb:12:in `each'
from ./check_cloudwatch_status-2.5.07.rb:12
Can someone assist me resolving this error. Not sure, if it requires any additional gem to be installed or the environment path variable.
Need assistance on install cloudwatch plugin
Re: Need assistance on install cloudwatch plugin
First off, the plugin is not one that is made to be ran by just using ./. Take a look at the document that references how it should be defined -
You'll want to use RUBYOPT="rubygems" prior to executing it.
Second, it looks like you're missing the the fog plugin as the plugin requires from your gem list. You'll need to get this installed prior to running the plugin.
Code: Select all
define command {
command_name check_cloudwatch_status
command_line RUBYOPT="rubygems" /usr/local/ec2-monitor/CloutomateMonitoring/lib/nagios/check_cloudwatch_status.rb -a $HOSTADDRESS$ -i $ARG1$ -f $ARG2$ -C $ARG3$ --warning $ARG4$ --critical $ARG5$
}
Second, it looks like you're missing the the fog plugin as the plugin requires from your gem list. You'll need to get this installed prior to running the plugin.
Code: Select all
Requirements:
Ruby version >= 1.8.7
Fog gem version >= 1.25.0
Former Nagios Employee