nagios: Add support for NSCA passive checks.
This commit is contained in:
parent
037fe31dd6
commit
fb89a9506f
3 changed files with 52 additions and 0 deletions
|
@ -442,3 +442,32 @@ define nagios::target::nrpe::service($source=undef,
|
|||
|
||||
}
|
||||
|
||||
|
||||
# Install NSCA client tools
|
||||
#
|
||||
class nagios::target::nsca inherits nagios::target {
|
||||
|
||||
package { "nsca-client":
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Register new NSCA service to Nagios server
|
||||
#
|
||||
# === Sample usage:
|
||||
#
|
||||
# nagios::target::nsca::service { "test": }
|
||||
#
|
||||
define nagios::target::nsca::service() {
|
||||
|
||||
require nagios::target::nsca
|
||||
|
||||
@@nagios::service { "${::homename}_${name}":
|
||||
command => "check_dummy!0",
|
||||
description => $name,
|
||||
host => $::homename,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue