Recommit for updates in build 135
This commit is contained in:
129
doc/index.html
129
doc/index.html
@@ -195,7 +195,7 @@ Re-type new password:
|
||||
|
||||
<h3 id="label-Additional+UI+users">Additional UI users</h3>
|
||||
|
||||
<p>The main user is automatically created. If you want to add more users, this should be done via the define confdroid_nagios::server::access. In your control repo, site.pp etc. address the access define like this:</p>
|
||||
<p>The main user is automatically created. If you want to add more users, this should be done via the define <code>confdroid_nagios::server::access</code>. In your control repo, site.pp etc. address the access define like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::server::access { 'example':
|
||||
ng_htpasswd_user => 'example_user',
|
||||
@@ -217,6 +217,24 @@ Re-type new password:
|
||||
|
||||
<p>This requires the contact groups to be in place as well.</p>
|
||||
|
||||
<p>Alternatively you also can create a custom class within this module and use the export command like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_contact { 'ops':
|
||||
ensure => present,
|
||||
alias => 'Operations',
|
||||
contact_name => 'ops',
|
||||
contactgroups => 'operations',
|
||||
email => 'ops@example.net',
|
||||
can_submit_commands => '1',
|
||||
register => '1',
|
||||
use => 'generic-contact',
|
||||
target => $ng_target_base_contact,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h3 id="label-Adding+contact+groups">Adding contact groups</h3>
|
||||
|
||||
<p>In order to add contact groups for the notifications, address the define <code>confdroid_nagios::nagios::objects::add_contactgroups</code> in your config repo, site.pp etc. like this:</p>
|
||||
@@ -228,6 +246,20 @@ Re-type new password:
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Alternatively you also can create a custom class within this module and use the export command like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_contactgroup { 'operations':
|
||||
ensure => present,
|
||||
alias => 'Operations Team',
|
||||
contactgroup_name => 'operations',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_tgt_contactgroup_base,
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h3 id="label-Adding+host+groups">Adding host groups</h3>
|
||||
|
||||
<p>In order to add host groups, address the define <code>confdroid_nagios::nagios::objects::add_hostgroups</code> in your config repo, site.pp etc. like this:</p>
|
||||
@@ -238,22 +270,109 @@ Re-type new password:
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Hosts will be populated through the target.pp dynamically.</p>
|
||||
<p>Alternatively you also can create a custom class within this module and use the export command like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_hostgroup { 'rhel-servers':
|
||||
ensure => present,
|
||||
hostgroup_name => 'rhel-servers',
|
||||
alias => 'RHEL Servers',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_hostgroup_base,
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Hosts themselves will be populated through the target.pp dynamically.</p>
|
||||
|
||||
<h3 id="label-Adding+service+groups">Adding service groups</h3>
|
||||
|
||||
<p>ToDo</p>
|
||||
<p>In order to add service groups, address the define <code>confdroid_nagios::nagios::objects::add_servicegroups</code> in your config repo, site.pp etc. like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::nagios::objects::add_servicegroups { 'example_servicegroup':
|
||||
ng_servicegroup_name => 'example_servicegroup',
|
||||
ng_servicegroup_alias => 'Example servicegroup',
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Alternatively you also can create a custom class within this module and use the export command like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_servicegroup { 'network-services':
|
||||
ensure => present,
|
||||
servicegroup_name => 'network-services',
|
||||
alias => 'Network Services',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_target_svcgrp_base,
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h3 id="label-Adding+time+periods">Adding time periods</h3>
|
||||
|
||||
<p>ToDo</p>
|
||||
<p>In order to add time periods, address the define <code>confdroid_nagios::nagios::objects::add_timeperiods</code> in your config repo, site.pp etc. like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
|
||||
ng_timep_name => 'example_timeperiod',
|
||||
ng_timep_alias => 'Example timeperiod',
|
||||
ng_timep_monday => '00:00-00:00',
|
||||
ng_timep_tuesday => '00:00-00:00',
|
||||
ng_timep_wednesday => '00:00-00:00',
|
||||
ng_timep_thursday => '00:00-00:00',
|
||||
ng_timep_friday => '00:00-00:00',
|
||||
ng_timep_saturday => '00:00-00:00',
|
||||
ng_timep_sunday => '00:00-00:00',
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Alternatively you also can create a custom class within this module and use the export command like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_timeperiod { 'office_hours':
|
||||
ensure => present,
|
||||
timeperiod_name => 'office_hours',
|
||||
alias => 'Office hours only, 5 Days A Week 09-05',
|
||||
monday => '09:00-17:00',
|
||||
tuesday => '09:00-17:00',
|
||||
wednesday => '09:00-17:00',
|
||||
thursday => '09:00-17:00',
|
||||
friday => '09:00-17:00',
|
||||
saturday => '00:00-00:00',
|
||||
sunday => '00:00-00:00',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_tgt_timeperiods_base,
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h3 id="label-Adding+custom+commands">Adding custom commands</h3>
|
||||
|
||||
<p>ToDo</p>
|
||||
<p>Commands are defined in <code>confdroid_nagios::nagios::objects::commands</code> and deployed /etc/nagios/conf.d/nagios_commands_base.cfg through PuppetDB exports like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">@@nagios_command { 'check_disk':
|
||||
ensure => present,
|
||||
command_name => 'check_disk',
|
||||
command_line => '$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h3 id="label-Adding+templates">Adding templates</h3>
|
||||
|
||||
<p>In order to add time periods, address the define <code>confdroid_nagios::nagios::objects::add_templates</code> in your config repo, site.pp etc. like this:</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">confdroid_nagios::nagios::objects::templates { 'generic contact':
|
||||
ng_template_object => 'contact',
|
||||
ng_template_object_name => 'generic-contact',
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<h2 id="label-PuppetDB">PuppetDB</h2>
|
||||
|
||||
<p>A working instance of PuppetDB connected to the Puppet master is required for this to work. Installation and configuration of PuppetDB is out of scope for this module, however <a href="https://gitlab.confdroid.com/puppet/cd_puppetdb">cd_puppetdb</a> is available to automate this task for you as well within a few minutes.</p>
|
||||
|
||||
Reference in New Issue
Block a user