diff --git a/README.md b/README.md index d52b2f5..06320a7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ |Repo Name| version | Build Status| |---|---|---|---| -|`cd_nagios`| 0.0.0.10 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios)](https://jenkins.confdroid.com/job/cd_nagios/)| +|`cd_nagios`| 0.0.1.0 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios)](https://jenkins.confdroid.com/job/cd_nagios/)| ### Synopsis 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 Installation: -* install httpd -* install server binaries on Nagios server -* install client binaries on clients +* Nagios Server instance: + * install httpd via cd_apache + * install Nagios server binaries on Nagios server + +* Nagios clients: + * install client binaries like nagios plugins etc. + * install NRPE (optional) Configuration * configure all aspects of Nagios on server diff --git a/manifests/client/target.pp b/manifests/client/target.pp index 39a0a76..96dee87 100644 --- a/manifests/client/target.pp +++ b/manifests/client/target.pp @@ -27,6 +27,8 @@ class cd_nagios::client::target ( if $::fqdn != $ng_nagios_server { + require cd_nagios::main::install + @@nagios_host { $::fqdn: ensure => $ng_ping_ensure, alias => $::hostname, diff --git a/manifests/main/install.pp b/manifests/main/install.pp index 8095e6a..5239862 100644 --- a/manifests/main/install.pp +++ b/manifests/main/install.pp @@ -59,7 +59,7 @@ class cd_nagios::main::install ( ensure => $pkg_ensure, } - # if we want o use NRPE, install it + # if we want to use NRPE, install it if $ng_include_nrpe == true { package {$reqpackages_nrpe: diff --git a/manifests/nagios/objects/hostdependencies.pp b/manifests/nagios/objects/hostdependencies.pp new file mode 100644 index 0000000..cf49fa7 --- /dev/null +++ b/manifests/nagios/objects/hostdependencies.pp @@ -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 . +# @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 { + + } + + + } +}