summaryrefslogtreecommitdiff
path: root/manifests/command/nrpe.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-01-02 19:54:17 +0100
committermh <mh@immerda.ch>2013-01-02 19:54:17 +0100
commit8b4e71729288d25e44d8433be27dc1a5d9fe63d9 (patch)
tree5460675cf9f10df08f298c777d1e37d8fbcfbb6f /manifests/command/nrpe.pp
parent4d2d0a813a718ad412fbd05da8588b8e90d0b9a3 (diff)
parent4d6b051acd53217860e1401946e45550e20c91a0 (diff)
Merge remote-tracking branch 'shared/master'
Conflicts: README manifests/service.pp
Diffstat (limited to 'manifests/command/nrpe.pp')
-rw-r--r--manifests/command/nrpe.pp14
1 files changed, 14 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$'
+ }
+}