Configuration of check_aws_status - Warning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Configuration of check_aws_status - Warning

Post by sgiworks »

Hello Team,

While configuration of check_aws_status plugin, I am getting following warning. Can you please help in the resolution.

Warning
(No output on stdout) stderr: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- nokogiri (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/nagios/libexec/check_aws_status.rb:4

Regards,
Swapnil
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Configuration of check_aws_status - Warning

Post by Box293 »

Have you tested the plugin from the command line before adding it to Nagios XI? If yes, did it work?

You may need to install some gems.

The script requires these:

Code: Select all

require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'pp'
This guide explains how:
http://guides.rubygems.org/rubygems-basics/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Configuration of check_aws_status - Warning

Post by sgiworks »

I have a new warning message, after amending the command to /usr/bin/python $USER1$/check_aws_status_feed.py


(No output on stdout) stderr: Traceback (most recent call last):

File "/usr/local/nagios/libexec/check_aws_status_feed.py", line 18, in <module>
import feedparser
ImportError: No module named feedparser
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Configuration of check_aws_status - Warning

Post by sgiworks »

one more step further, managed to fix earlier issue by installing "sudo yum install python-pip"

now with a new UNKNOWN ERROR:

AWS UNKNOWN: Feed http://status.aws.amazon.com/rss/ec2.rss could not be parsed. Check command options.

Note: I am trying with this plugin: https://exchange.nagios.org/directory/P ... ge/details


Regards,
Swapnil
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Configuration of check_aws_status - Warning

Post by sgiworks »

Don't worry, issue has been fixed. our DBA made some changes in the script and got it working.

All Set

Thanks,
Swapnil
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Configuration of check_aws_status - Warning

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Locked