linked client installations to target
This commit is contained in:
12
README.md
12
README.md
@@ -1,6 +1,6 @@
|
|||||||
|Repo Name| version | Build Status|
|
|Repo Name| version | Build Status|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|`cd_nagios`| 0.0.0.10 | [](https://jenkins.confdroid.com/job/cd_nagios/)|
|
|`cd_nagios`| 0.0.1.0 | [](https://jenkins.confdroid.com/job/cd_nagios/)|
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
Nagios is a powerful open source software solution for monitoring your IT environments.
|
Nagios is a powerful open source software solution for monitoring your IT environments.
|
||||||
@@ -37,9 +37,13 @@ Nagios is a powerful open source software solution for monitoring your IT enviro
|
|||||||
### Features
|
### Features
|
||||||
|
|
||||||
Installation:
|
Installation:
|
||||||
* install httpd
|
* Nagios Server instance:
|
||||||
* install server binaries on Nagios server
|
* install httpd via cd_apache
|
||||||
* install client binaries on clients
|
* install Nagios server binaries on Nagios server
|
||||||
|
|
||||||
|
* Nagios clients:
|
||||||
|
* install client binaries like nagios plugins etc.
|
||||||
|
* install NRPE (optional)
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
* configure all aspects of Nagios on server
|
* configure all aspects of Nagios on server
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ class cd_nagios::client::target (
|
|||||||
|
|
||||||
if $::fqdn != $ng_nagios_server {
|
if $::fqdn != $ng_nagios_server {
|
||||||
|
|
||||||
|
require cd_nagios::main::install
|
||||||
|
|
||||||
@@nagios_host { $::fqdn:
|
@@nagios_host { $::fqdn:
|
||||||
ensure => $ng_ping_ensure,
|
ensure => $ng_ping_ensure,
|
||||||
alias => $::hostname,
|
alias => $::hostname,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class cd_nagios::main::install (
|
|||||||
ensure => $pkg_ensure,
|
ensure => $pkg_ensure,
|
||||||
}
|
}
|
||||||
|
|
||||||
# if we want o use NRPE, install it
|
# if we want to use NRPE, install it
|
||||||
|
|
||||||
if $ng_include_nrpe == true {
|
if $ng_include_nrpe == true {
|
||||||
package {$reqpackages_nrpe:
|
package {$reqpackages_nrpe:
|
||||||
|
|||||||
37
manifests/nagios/objects/hostdependencies.pp
Normal file
37
manifests/nagios/objects/hostdependencies.pp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
## cd_nagios::nagios::objects::hostdependencies.pp
|
||||||
|
# Module name: cd_nagios
|
||||||
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||||
|
# # License:
|
||||||
|
# This file is part of cd_nagios.
|
||||||
|
#
|
||||||
|
# cd_nagios is used for providing automatic configuration of Nagios
|
||||||
|
# Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com)
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
# @summary Class manages basic hostgroups known to NAGIOS through Puppet
|
||||||
|
# exports, and populates /etc/nagios/conf.d/nagios_base_hostgroups.cfg.
|
||||||
|
################################################################################
|
||||||
|
class cd_nagios::nagios::objects::hostdependencies (
|
||||||
|
|
||||||
|
|
||||||
|
) inherits cd_nagios::params {
|
||||||
|
|
||||||
|
if $::fqdn == $ng_nagios_server {
|
||||||
|
|
||||||
|
@@nagios_hostdependency {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user