summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-09-27 13:18:51 -0400
committerMicah Anderson <micah@riseup.net>2010-09-27 13:18:51 -0400
commit784bd6271f46f72b84f28c7e3a346c7fa86b9baa (patch)
tree85045f3a393b904ec9e06b55b2600b05def34862 /templates
parentc4fa87912095d35e48c5b1a5f7c6f3b589c73e69 (diff)
add a more advanced mysql health check plugin:
* create a mysql::server::nagios::base class with the common parts needed for the basic plugin, and the health plugin * make mysql::server:nagios inherit mysql::server:nagios::base * create a new class mysql::server::nagios::check_health inheriting ::base the nagios module has also received a new define to setup the different nagios::service pieces for the different health check modes that might be desired its assumed you would setup the different health check modes in site-mysql/init.pp as different hosts will require different modes and/or parameters, for example: class site-mysql::server { include mysql::server::nagios::check_health nagios::service::mysql_health { [ 'connection-time', 'uptime', 'threads-connected', 'threadcache-hitrate' ]: require => Mysql_grant[$nagios_mysql_user], } case $hostname { "eider": { nagios::service::mysql_health { [ 'slave-io-running', 'slave-sql-running', 'slave-lag' ]: require => Mysql_grant[$nagios_mysql_user], } } } }
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions