OP#672 add nagios monitoring

This commit is contained in:
2026-09-24 15:34:43 +02:00
parent 4c97561efd
commit f0fae0b530
3 changed files with 36 additions and 0 deletions

View File

@@ -15,6 +15,10 @@
# @param [String] ac_email_to where to send the email to
# @param [String] ac_email_host which host to use to send the email
# @param [Variant[String,Array[String]]] ac_excludepkgs packages to exclude from updates
# @param [Boolean] ac_manage_nagios whether to manage nagios monitoring
# @param [String] ac_target_service where to write the nagios service config
# @param [String] ac_target_contacts which nagios contacts to use
# @param [String] ac_procs_allowed how many processes are allowed to run
##############################################################################
class confdroid_automatic::params (
@@ -33,6 +37,12 @@ class confdroid_automatic::params (
String $ac_email_to = 'root@example.net',
String $ac_email_host = 'localhost',
# monitoring
Boolean $ac_manage_nagios = false,
String $ac_target_service = '/etc/nagios/conf.d/automatic_service.cfg',
String $ac_target_contacts = 'nagiosadmin',
String $ac_procs_allowed = '1:',
) {
# Facts
$fqdn = $facts['networking']['fqdn']