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

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4406Themes and Skins13Add-ons761Graphics 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
Clustering and High-Availability check_hbase_regionserver_jmx.pl (Advanced Nagios Plugins Collection)
0.0 (0)
5.6K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Davide Lemma (3)Chad Columbus (3)Marcin Bednarski (3)Andrea Bolongaro (2)
See More
Newest Contributors
pawal (1)matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)
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