Skip to content

Instantly share code, notes, and snippets.

@freyes
Created December 3, 2012 20:35
Show Gist options
  • Save freyes/4197804 to your computer and use it in GitHub Desktop.
Save freyes/4197804 to your computer and use it in GitHub Desktop.
nagios check rds configuration
# check a RDS with nagios and change the check host command (by default ping)
# to check an open tcp port
define command {
command_name check-rds-host-alive
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 3306
}
define host {
use generic-host
host_name rds
alias rds
check_command check-rds-host-alive
address foobar.us-east-1.rds.amazonaws.com
}
define service{
use generic-service
host_name rds
service_description MySQL server
check_command check_mysql_database!username!password!dbname
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment