Build precise queries to find exactly what you need
Press ESC to close
Everything works great until SSL is enabled. To get this working with SSL you have to use an additional cnf. Then, when using that cnf it no longer accepts the host/port params so they have to be called out in a cnfgroup (in the file). Its just kind of awkwardly designed it seems. In order to add a new db for monitoring you either have to create a new cnfgroup in the cnf file or create a new cnf. In order to integrate smoothly with our monitoring system Opsview, this needs to be able to accept all arguments at the commandline.
So we would need minimally params for ssl-ca and ssl-mode that would get passed into DBI. I think we are going to try to re-write the code for this. Also, would be nice if Consol put their code in revision control so the community can help improve/maintain it.
In case this may help anyone, this is what you need to do to execute against AWS RDS: ./check_mysql_health –mode connection-time –database myDBName –username ‘username’ –password ‘userpassword’ –warning 1 –critical 5 –environment NAGIOS__SERVICEMYSQL_MYCNF=’/mnt/opsview/usr/local/nagios/etc/mysql_rds.cnf’ –environment NAGIOS__SERVICEMYSQL_MYCNFGROUP=’groupName’
download the RDS cert bundle and put that with your certs: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html
In the cnf file I have specified above, I have these contents:
[client] ssl-ca = /etc/ldap/cacerts/rds-combined-ca-bundle.pem ssl-mode = ‘VERIFY_CA’
[groupName] host = MyHostname.us-east-1.rds.amazonaws.com port = 12345
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!