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'
|
path: '/var/cache/metadata_r1.komreg.net'
|
||||||
|
|
||||||
'^lb-test-.+-\d+\.komreg\.net$':
|
'^lb-test-.+-\d+\.komreg\.net$':
|
||||||
|
autoupdate:
|
||||||
sunet::dockerhost2:
|
sunet::dockerhost2:
|
||||||
sunet::lb::load_balancer:
|
sunet::lb::load_balancer:
|
||||||
interface: 'ens3'
|
interface: 'ens3'
|
||||||
sunet::fleetlock_client:
|
sunet::fleetlock_client:
|
||||||
|
fe_servers:
|
||||||
|
|
||||||
log-test-sto3-1.komreg.net:
|
log-test-sto3-1.komreg.net:
|
||||||
autoupdate:
|
autoupdate:
|
||||||
|
|
|
@ -883,8 +883,14 @@ class nrpe {
|
||||||
sunet::nagios::nrpe_command {'check_entropy':
|
sunet::nagios::nrpe_command {'check_entropy':
|
||||||
command_line => '/usr/lib/nagios/plugins/check_entropy -w 200'
|
command_line => '/usr/lib/nagios/plugins/check_entropy -w 200'
|
||||||
}
|
}
|
||||||
sunet::nagios::nrpe_command {'check_ntp_time':
|
if ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['full'], '22.04') > 0 ){
|
||||||
command_line => '/usr/lib/nagios/plugins/check_ntp_time -H localhost'
|
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':
|
sunet::nagios::nrpe_command {'check_scriptherder':
|
||||||
command_line => '/usr/local/bin/scriptherder --mode check'
|
command_line => '/usr/local/bin/scriptherder --mode check'
|
||||||
|
|
Loading…
Add table
Reference in a new issue