diff options
author | mh <mh@immerda.ch> | 2013-01-02 19:54:17 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-01-02 19:54:17 +0100 |
commit | 8b4e71729288d25e44d8433be27dc1a5d9fe63d9 (patch) | |
tree | 5460675cf9f10df08f298c777d1e37d8fbcfbb6f /manifests/command | |
parent | 4d2d0a813a718ad412fbd05da8588b8e90d0b9a3 (diff) | |
parent | 4d6b051acd53217860e1401946e45550e20c91a0 (diff) |
Merge remote-tracking branch 'shared/master'
Conflicts:
README
manifests/service.pp
Diffstat (limited to 'manifests/command')
-rw-r--r-- | manifests/command/nrpe.pp | 14 | ||||
-rw-r--r-- | manifests/command/nrpe_timeout.pp | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/manifests/command/nrpe.pp b/manifests/command/nrpe.pp new file mode 100644 index 0000000..7539a26 --- /dev/null +++ b/manifests/command/nrpe.pp @@ -0,0 +1,14 @@ +class nagios::command::nrpe { + + # this command runs a program $ARG1$ with arguments $ARG2$ + nagios_command { + 'check_nrpe': + command_line => '/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$' + } + + # this command runs a program $ARG1$ with no arguments + nagios_command { + 'check_nrpe_1arg': + command_line => '/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$' + } +} diff --git a/manifests/command/nrpe_timeout.pp b/manifests/command/nrpe_timeout.pp new file mode 100644 index 0000000..3415566 --- /dev/null +++ b/manifests/command/nrpe_timeout.pp @@ -0,0 +1,11 @@ +class nagios::command::nrpe_timeout { + nagios_command { + 'check_nrpe_timeout': + command_line => '/usr/lib/nagios/plugins/check_nrpe -t $ARG1$ -H $HOSTADDRESS$ -c $ARG2$ -a $ARG3$' + } + + nagios_command { + 'check_nrpe_1arg_timeout': + command_line => '/usr/lib/nagios/plugins/check_nrpe -t $ARG1$ -H $HOSTADDRESS$ -c $ARG2$' + } +} |