Page 1 of 2

AWS CloudWatch Plugin for Nagios XI

Posted: Thu Jan 22, 2015 12:38 pm
by swapnil.kadam
Hello Team,

I am new to Nagios family, and currently trying to integrate Nagios XI with Amazon CloudWatch. So that I can see the AWS CloudWatch metrics log in Nagios.
Please let me know if there is plugin available to integrate Nagios XI and AWS CloudWatch. I would appreciate if you can provide implementation steps for the same.

Regards,
Swapnil

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Thu Jan 22, 2015 2:51 pm
by slansing
Actually, there is! Check this one out:

http://exchange.nagios.org/directory/Pl ... cs/details

You can integrate it with this:

http://assets.nagios.com/downloads/nagi ... lugins.pdf

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Fri Jan 23, 2015 11:21 am
by swapnil.kadam
Is there a way to configure it using Nagios XI web interface? or by just installing a plug-in with host file configuration?
Please share any relevant documentation.

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Fri Jan 23, 2015 11:50 am
by scottwilkerson
This plugin for sure will require CLI access. While you can create commands for this plugin through the UI, you will need to test it as suggested here
http://assets.nagios.com/downloads/nagi ... lugins.pdf

As of this time there is no wizard for this plugin.

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Fri Jan 23, 2015 3:37 pm
by swapnil.kadam
Can I view CloudWatch Metrics log in Nagios? The data which is captured by CloudWatch from AWS resources
If yes, how can I configure it?

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Mon Jan 26, 2015 10:46 am
by scottwilkerson
swapnil.kadam wrote:Can I view CloudWatch Metrics log in Nagios? The data which is captured by CloudWatch from AWS resources
If yes, how can I configure it?
As slansing pointed out in the documentation in this post, you can add the the plugin to XI and configure it to pull CloudWatch Metrics
slansing wrote:Actually, there is! Check this one out:

http://exchange.nagios.org/directory/Pl ... cs/details

You can integrate it with this:

http://assets.nagios.com/downloads/nagi ... lugins.pdf

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Mon Jan 26, 2015 5:29 pm
by swapnil.kadam
I am getting following error message:

(No output on stdout) stderr: /usr/local/nagios/libexec/check_cloudwatch_status-2.1.77.rb:12:in `require': no such file to load -- rubygems (LoadError)

Configuration details from services.cfg file for nagios:

define service {
host_name Amazon_EC2_Instance_Name
service_description AWS CPUUtilization
use generic-service
check_command check_cloudwatch_status!i-xxxxxxxx!/usr/local/nagios/libexec/ec2-api/ec2_credentials.cfg!CPUUtilization!50!80
max_check_attempts 3
}

Troubleshooting Details:

[root@ip-10-1-252-182 libexec]# ll check_cloudwatch_status.rb
-rwxrwxrwx 1 root nagios 23340 Dec 10 16:32 check_cloudwatch_status.rb

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Mon Jan 26, 2015 5:40 pm
by tgriep
Is this the same problem you are having in this post?

http://support.nagios.com/forum/viewtop ... =6&t=31104

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Mon Jan 26, 2015 9:07 pm
by swapnil.kadam
No, this is a different problem with integration of CloudWatch with Nagios XI

Re: AWS CloudWatch Plugin for Nagios XI

Posted: Mon Jan 26, 2015 9:15 pm
by Box293
Can you please post the command definition for the check_command "check_cloudwatch_status".

CCM > Commands > Commands
Click the floppy disk icon and it will show the commands in a text file.