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 /README | |
parent | 4d2d0a813a718ad412fbd05da8588b8e90d0b9a3 (diff) | |
parent | 4d6b051acd53217860e1401946e45550e20c91a0 (diff) |
Merge remote-tracking branch 'shared/master'
Conflicts:
README
manifests/service.pp
Diffstat (limited to 'README')
-rw-r--r-- | README | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -51,9 +51,9 @@ Services Services can be monitored by using the "nagios::service" component. -The simplest form is:: +The simplest form is: - nagios::service { 'check_http': + nagios::service { 'check_http': check_command => 'http_port!80', } @@ -65,6 +65,29 @@ Obviously, the check command must either be defined using nagios_command objects (some are supplied in nagios::defaults::commands) or in the nagios configuration files directly. +NRPE Services +------------- + +Some Nagios services need to be checked via NRPE. The following will make the +nagios server define a service that will check the NRPE command 'check_cpu' on +the current node: + + nagios::service { 'CPU Usage': + use_nrpe => 'true', + check_command => "check_cpu", + nrpe_args => "-t 60" + } + +NRPE Commands +------------- + +To be able to call NRPE commands on a host, one needs to define that command +and what it is going to execute: + + nagios::nrpe::command { 'debsums': + check_command => '/usr/lib/nagios/plugins/check_debsums openssh-server' + } + Upgrade Notes ============= |