OP#436 add nagios hostgroups, and example groups and contacts

This commit is contained in:
2026-03-01 16:02:31 +01:00
parent c0e9342dd3
commit 741bc76fb6
4 changed files with 40 additions and 2 deletions

View File

@@ -73,6 +73,20 @@
# Default is '10.00,6.00,4.00'.
# @param [String] ng_load_ensure The ensure value for the check_load command.
# Default is 'present'.
# @param [String] ng_contactgroup_name The name of the default contact group.
# Default is 'admins'.
# @param [String] ng_contactgroup_alias The alias of the default contact group.
# Default is 'Nagios Administrators'.
# @param [String] ng_contactgroup_ensure The ensure value for the default
# contact group. Default is 'present'.
# @param [String] ng_contact_name The name of the default contact. Default is
# 'nagiosadmin'.
# @param [String] ng_contact_alias The alias of the default contact. Default is
# 'Nagios Admin'.
# @param [String] ng_contact_groups The contact groups for the default contact.
# Default is 'admins'.
# @param [String] ng_contact_email The email address for the default contact.
# Default is 'nagiosadmin@example.net'.
###############################################################################
class confdroid_nagios::params (
@@ -85,6 +99,17 @@ class confdroid_nagios::params (
String $ng_main_user = 'nagios',
String $ng_main_password = 'nagios',
# contact groups
String $ng_contactgroup_name = 'admins',
String $ng_contactgroup_alias = 'Nagios Administrators',
String $ng_contactgroup_ensure = 'present',
# contacts
String $ng_contact_name = 'nagiosadmin',
String $ng_contact_alias = 'Nagios Admin',
String $ng_contact_groups = 'admins',
String $ng_contact_email = 'nagiosadmin@example.net',
# nagios.cfg
String $ng_log_file = '/var/log/nagios/nagios.log',