summaryrefslogtreecommitdiff
path: root/manifests/command/nrpe.pp
blob: 7539a266a97c44d53850cf1fa04b851c191cbc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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$'
  }
}