Page 1 of 1

Nagios XI - AWS CloudWactch Metrics issue

Posted: Wed Sep 06, 2017 10:03 am
by bpepaala
Hi,
I have configured AWS cloudwatch Metrics in NagiosXI. I can able to run the commands from /libexec/ folder. But from Nagios Xi, it is not working and getting the below error.


(No output on stdout) stderr: /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fog (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/nagios/libexec/check_cloudwatch_status-6.4.44.rb:12:in `block in <main>'
from /usr/local/nagios/libexec/check_cloudwatch_status-6.4.44.rb:12:in `each'
from /usr/local/nagios/libexec/check_cloudwatch_status-6.4.44.rb:12:in `<main>'

Can you please help me in fixinf this error?

Thanks
bharath

Re: Nagios XI - AWS CloudWactch Metrics issue

Posted: Wed Sep 06, 2017 12:39 pm
by scottwilkerson
Can you make sure the nagios user has access to this file

Code: Select all

ls -l /usr/share/rubygems/rubygems/core_ext/kernel_require.rb

Re: Nagios XI - AWS CloudWactch Metrics issue

Posted: Wed Sep 06, 2017 5:03 pm
by bpepaala
[nagios@camhpcvm20 etc]$ ls -l /usr/share/rubygems/rubygems/core_ext/kernel_require.rb
-rwxr-xr-x. 1 root root 4207 Feb 21 2014 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb
You have new mail in /var/spool/mail/nagios

Re: Nagios XI - AWS CloudWactch Metrics issue

Posted: Thu Sep 07, 2017 9:09 am
by scottwilkerson
Actually re-reading the error it is looking for something in the file. Can you share the file
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb

Thanks!