From b057ff41f32ccba198a41a5babc51da6f48911a5 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 18 Oct 2010 20:55:48 -0400 Subject: . add the check_mysql_health plugin . add an additional nagios::defaults::plugins class that is included in the nagios::defaults, this can be used to install other nagios plugins that aren't distributed in the nagios-plugins package . use the nagios::defaults::plugins to setup the check_mysql_health plugin . add a check_mysql_health command to defaults/commands.pp in the section for commands for services defined by other modules . change the nagios::service::mysql to use the more advanced check_mysql_health plugin, instead of the basic check_mysql plugin --- manifests/defaults/commands.pp | 4 ++++ manifests/defaults/plugins.pp | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 manifests/defaults/plugins.pp (limited to 'manifests/defaults') diff --git a/manifests/defaults/commands.pp b/manifests/defaults/commands.pp index bbb6ce5..25ab1bc 100644 --- a/manifests/defaults/commands.pp +++ b/manifests/defaults/commands.pp @@ -90,6 +90,10 @@ class nagios::defaults::commands { # from bind module check_dig2: command_line => '$USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$ --record_type=$ARG2$'; + + # from mysql module + check_mysql_health: + command_line => '$USER1$/check_mysql_health --hostname $ARG1$ --port $ARG2$ --username $ARG3$ --password $ARG4$ --mode $ARG5$ --database $ARG6$'; } # notification commands diff --git a/manifests/defaults/plugins.pp b/manifests/defaults/plugins.pp new file mode 100644 index 0000000..1df8064 --- /dev/null +++ b/manifests/defaults/plugins.pp @@ -0,0 +1,5 @@ +class nagios::defaults::plugins { + + nagios::plugin { 'check_mysql_health': source => 'nagios/plugins/check_mysql_health'; } + +} -- cgit v1.2.3