AWS CloudWatch Plugin for Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

AWS CloudWatch Plugin for Nagios XI

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: AWS CloudWatch Plugin for Nagios XI

Post 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
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: AWS CloudWatch Plugin for Nagios XI

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: AWS CloudWatch Plugin for Nagios XI

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: AWS CloudWatch Plugin for Nagios XI

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: AWS CloudWatch Plugin for Nagios XI

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: AWS CloudWatch Plugin for Nagios XI

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: AWS CloudWatch Plugin for Nagios XI

Post by tgriep »

Is this the same problem you are having in this post?

http://support.nagios.com/forum/viewtop ... =6&t=31104
Be sure to check out our Knowledgebase for helpful articles and solutions!
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: AWS CloudWatch Plugin for Nagios XI

Post by swapnil.kadam »

No, this is a different problem with integration of CloudWatch with Nagios XI
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: AWS CloudWatch Plugin for Nagios XI

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked