Compare commits

...

4 Commits

Author SHA1 Message Date
aa83361a8e OP#672 update Readme with new feature 2026-09-07 14:40:59 +02:00
c2149834d3 OP#672 update Readme with new feature 2026-09-07 14:39:23 +02:00
5db2481d76 OP#672 edit target to include correct variables 2026-09-07 13:52:13 +02:00
eefd846f7c OP#672 add fqdnn variable 2026-09-07 13:46:59 +02:00
3 changed files with 9 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ CONFIGURATION
- manages the main alloy pipeline for loki and prometheus - manages the main alloy pipeline for loki and prometheus
- manages log rotation for rsyslog to allow adm membership - manages log rotation for rsyslog to allow adm membership
- manage service - manage service
- optional: include nagios target for the alloy service (set `ay_manage_nagios`to `true`)
## Repo Documentation ## Repo Documentation
@@ -53,6 +54,8 @@ See the full Puppet documentation including parameters in `docs/index.html`
All dependencies must be included in the catalogue. All dependencies must be included in the catalogue.
- [confdroid_nagios](https://sourcecode.confdroid.com/confdroid/confdroid_nagios) if nagios monitoring is desired
## Deployment ## Deployment
- native Puppet deployment - native Puppet deployment

View File

@@ -8,7 +8,7 @@ class confdroid_alloy::monitoring::target (
) inherits confdroid_alloy::params { ) inherits confdroid_alloy::params {
if $ay_manage_nagios == true { if $ay_manage_nagios == true {
@@nagios_service { "check_alloy_${fqdn}": @@nagios_service { "check_alloy_${fqdn}":
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server", check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
notification_period => '24x7', notification_period => '24x7',

View File

@@ -20,6 +20,7 @@
# @param [Boolean] ay_manage_nagios whether to manage nagios service exports # @param [Boolean] ay_manage_nagios whether to manage nagios service exports
# @param [String] ay_target_service the target file for nagios service exports # @param [String] ay_target_service the target file for nagios service exports
# @param [Array] ay_target_contacts the contacts for nagios service exports # @param [Array] ay_target_contacts the contacts for nagios service exports
# @param [String] ay_procs_allowed the allowed number of processes for nagios service exports
# @summary Class contains all parameters for the confdroid_alloy module. # @summary Class contains all parameters for the confdroid_alloy module.
############################################################################## ##############################################################################
class confdroid_alloy::params ( class confdroid_alloy::params (
@@ -47,8 +48,12 @@ class confdroid_alloy::params (
Boolean $ay_manage_nagios = false, Boolean $ay_manage_nagios = false,
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg', String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
Array $ay_target_contacts = ['nagiosadmin'], Array $ay_target_contacts = ['nagiosadmin'],
String $ay_procs_allowed = '1:1'
) { ) {
# defaults
$fqdn = $facts['networking']['fqdn']
# service # service
$ay_service = 'alloy' $ay_service = 'alloy'