This repository has been archived by the owner on Nov 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
README
69 lines (69 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Class: icinga
# This module manages icinga
#
# Definition:
# icinga::command::commands
# icinga::contact::contacts
# icinga::contact::contactgroups
# icinga::host::hosts
# icinga::host::hostgroups
# icinga::host::hostextinfo
# icinga::service::services
# icinga::service::servicegroups
# nagios-nrpe::whitelist
#
# Parameters:
# Commands:
# $command - specify the command_line
#
# Contacts:
# $alias - specify the contact
# $email - specify the email, default is root@localhost
# $group - specify the contactgroup
#
# Contactgroups:
# $alias - specify the contactgroup
#
# Services:
# $command - specify the check_command
# $group - specify the servicegroup
#
# Nagios-NRPE:
# $whitelist - specify the whitelist, default is 127.0.0.1
#
# Actions:
# Installs the icinga.cfg etc.
#
# Requires:
# -
#
# Sample Usage:
# icinga::command::commands { "nrpe_check_apt":
# command => '$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apt',
# }
#
# icinga::contact::contacts { $contacts[user]:
# alias => $contacts[alias],
# email => $contacts[email],
# group => $contacts[group],
# }
#
# icinga::contact::contactgroups { $contactgroups[group]:
# alias => $contactgroups[alias],
# }
#
# icinga::host::hosts { "$::hostname": }
#
# icinga::host::hostgroups { $hostgroups: }
#
# icinga::host::hostextinfo { "$::hostname": }
#
# icinga::service::services { "apt":
# command => "nrpe_check_apt",
# }
#
# icinga::service::servicegroups { $servicegroups: }
#
# nagios-nrpe::whitelist { "/etc/nagios/nrpe.cfg":
# whitelist => hiera('whitelist'),
# }