fixed ntp check

added two new manifests for new Test Lb servers
This commit is contained in:
Maria Haider 2025-04-09 19:34:04 +02:00
parent a9fca4619f
commit e0a131f7c7
Signed by: mariah
GPG key ID: 6EF520A1829E8B1D
2 changed files with 10 additions and 2 deletions

View file

@ -1386,10 +1386,12 @@ eumdsigner-test-sto3-1.komreg.net:
path: '/var/cache/metadata_r1.komreg.net'
'^lb-test-.+-\d+\.komreg\.net$':
autoupdate:
sunet::dockerhost2:
sunet::lb::load_balancer:
interface: 'ens3'
sunet::fleetlock_client:
fe_servers:
log-test-sto3-1.komreg.net:
autoupdate:

View file

@ -883,8 +883,14 @@ class nrpe {
sunet::nagios::nrpe_command {'check_entropy':
command_line => '/usr/lib/nagios/plugins/check_entropy -w 200'
}
sunet::nagios::nrpe_command {'check_ntp_time':
command_line => '/usr/lib/nagios/plugins/check_ntp_time -H localhost'
if ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['full'], '22.04') > 0 ){
sunet::nagios::nrpe_command {'check_ntp_time':
command_line => '/usr/lib/nagios/plugins/check_ntp_time -H ntp.se'
}
} else {
sunet::nagios::nrpe_command {'check_ntp_time':
command_line => '/usr/lib/nagios/plugins/check_ntp_time -H localhost'
}
}
sunet::nagios::nrpe_command {'check_scriptherder':
command_line => '/usr/local/bin/scriptherder --mode check'