diff options
author | mh <mh@immerda.ch> | 2010-10-21 02:24:09 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-21 02:24:09 +0200 |
commit | 6227899364bc721b9c728151a69c46386d96cf44 (patch) | |
tree | 2e1836203a98c41d2b77ce81d4120c35b045eba7 /manifests/defaults | |
parent | a6fc95172382e10b3341e6f973b7d7f4159cf67b (diff) |
add check_dns2
check_dns had some problems with down nameservers. This one properly
checks the right nameserver.
Diffstat (limited to 'manifests/defaults')
-rw-r--r-- | manifests/defaults/commands.pp | 4 | ||||
-rw-r--r-- | manifests/defaults/plugins.pp | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/manifests/defaults/commands.pp b/manifests/defaults/commands.pp index 9375858..06e45e9 100644 --- a/manifests/defaults/commands.pp +++ b/manifests/defaults/commands.pp @@ -98,6 +98,10 @@ class nagios::defaults::commands { # from mysql module check_mysql_health: command_line => '$USER1$/check_mysql_health --hostname $ARG1$ --port $ARG2$ --username $ARG3$ --password $ARG4$ --mode $ARG5$ --database $ARG6$'; + + # better check_dns + check_dns2: + command_line => '$USER1$/check_dns2 -c $ARG1 A $ARG2'; } # notification commands diff --git a/manifests/defaults/plugins.pp b/manifests/defaults/plugins.pp index 1df8064..842f9ce 100644 --- a/manifests/defaults/plugins.pp +++ b/manifests/defaults/plugins.pp @@ -1,5 +1,10 @@ class nagios::defaults::plugins { - nagios::plugin { 'check_mysql_health': source => 'nagios/plugins/check_mysql_health'; } + nagios::plugin { + 'check_mysql_health': + source => 'nagios/plugins/check_mysql_health'; + 'check_dns2': + source => 'nagios/plugins/check_dns2'; + } } |