Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4416Themes and Skins13Add-ons768Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Using Nagios To Monitor For WinSCP & SSH Host Key Check
0.0 (0)
63.7K
RSS Feed
Newest Listings Updated Listings
Top Contributors
John Shorey (4)deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)
See More
Newest Contributors
Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)faddom (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > John Cooper
JC

John Cooper

@johnc10uk

User Stats

Member Since: June 6, 2014

Favorites0

Views

Projects0

No Projects Found
Check_AWS_CloudWatch_metrics

ELB/RDS update

For ELB and RDS you don't need to define the instance_id so updated code to take hostname and shorten it for the elb/rds name. You can then use $HOSTNAME$ in the Nagios service check check_cloudwatch_status.rb! YOURPATH/nagios/plugins/check_cloudwatch_status.rb -a $HOSTNAME$ -f ec2_credentials.cfg -L RequestCount -S Sum line 348 :- if namespace.eql?(AWS_NAMESPACE_EC2) dimensions = "InstanceId=#{instance_id}" elsif namespace.eql?(AWS_NAMESPACE_RDS) # Strip off the name from the address instance_id, *restofvalues = address.split('.') instance_id = instance_id.split('-')[0...-1].join('-') dimensions = "DBInstanceIdentifier=#{instance_id}" elsif namespace.eql?(AWS_NAMESPACE_ELB) # Strip off the name Load-Balancer-Name from the address Load-Balancer-Name-123456789.elb.amazon.com instance_id, *restofvalues = address.split('.') instance_id = instance_id.split('-')[0...-1].join('-') dimensions = "LoadBalancerName=#{instance_id}" end

Reviewed 12 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile