Created
December 3, 2012 20:35
-
-
Save freyes/4197804 to your computer and use it in GitHub Desktop.
nagios check rds configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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