Fingers crossed

This commit is contained in:
Micke Nordin 2023-04-24 15:51:49 +02:00
parent 9b44a99135
commit f1276d52d3
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -186,11 +186,11 @@ define service {
notes_url https://<%= site %>/status.php
action_url /grafana/dashboard/script/histou.js?host=$HOSTNAME$&service=$SERVICEDISPLAYNAME$&theme=light&annotations=true
<% if site.match('test') -%>
<% version_variable = 'nextcloud_version_test_' << cur_cust -%>
<% version_variable = 'nextcloud_version_test_' << site.sub('/\.drive.*/','') -%>
<% else -%>
<% version_variable = 'nextcloud_version_prod_' << cur_cust -%>
<% version_variable = 'nextcloud_version_prod_' << site.sub('/\.drive.*/','') -%>
<% end -%>
check_command check_nextcloud_version!'<%= version_variable %>'
check_command check_nextcloud_version!'<%= @facts[version_variable] %>'
check_interval 5
check_period 24x7
contact_groups naemon-admins