fixed ntp check
added two new manifests for new Test Lb servers
This commit is contained in:
parent
a9fca4619f
commit
e0a131f7c7
2 changed files with 10 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue