OP#672 add nagios monitoring

This commit is contained in:
2026-09-07 16:33:31 +02:00
parent 0108bba166
commit 94042d4eb7
3 changed files with 36 additions and 0 deletions

View File

@@ -65,6 +65,9 @@
# @param [String] pt_pptdb_server_crt placeholder for the server.crt
# @param [String] pt_pptdb_server_key placeholder for the server.crt
# @param [String] pt_pptdb_log_max_age the max age for puppetdb logs in days
# @param [Boolean] pt_manage_nagios whether to manage nagios settings
# @param [String] pt_target_service the nagios service config file
# @param [Array] pt_target_contacts the nagios contacts to notify
###############################################################################
class confdroid_puppet::params (
@@ -141,6 +144,12 @@ class confdroid_puppet::params (
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
String $pt_r10k_webhook_port = '8085',
# nagios
Boolean $pt_manage_nagios = false,
String $pt_target_service = '/etc/nagios/conf.d/puppet_service.cfg',
Array $pt_target_contacts = ['nagiosadmin'],
String $pt_procs_allowed = '1:'
) {
# facts
$fqdn = $facts['networking']['fqdn']