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
Nagios XI - AWS CloudWactch Metrics issue
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI - AWS CloudWactch Metrics issue
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.rbRe: Nagios XI - AWS CloudWactch Metrics issue
[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
-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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI - AWS CloudWactch Metrics issue
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!
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb
Thanks!