[467551] Mount Nagios Logfile
Mount Nagios logfile to host to enable log streaming to elasticsearch Change-Id: I297f61067c0ff3e870e14b124a5c6fdd49e12b01
This commit is contained in:
parent
23730808d4
commit
b99d39dd95
@ -87,6 +87,19 @@ spec:
|
|||||||
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.nagios.timeout | default "30" }}
|
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.nagios.timeout | default "30" }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tuple $envAll "nagios" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
{{ tuple $envAll "nagios" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||||
|
- name: nagios-log-ownership
|
||||||
|
{{ tuple $envAll "nagios" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
command:
|
||||||
|
- chown
|
||||||
|
- -R
|
||||||
|
- nagios:root
|
||||||
|
- /opt/nagios/var/log
|
||||||
|
volumeMounts:
|
||||||
|
- name: pod-var-log
|
||||||
|
mountPath: /opt/nagios/var/log
|
||||||
|
readOnly: false
|
||||||
containers:
|
containers:
|
||||||
- name: apache-proxy
|
- name: apache-proxy
|
||||||
{{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "apache_proxy" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
@ -170,7 +183,13 @@ spec:
|
|||||||
mountPath: /opt/nagios/etc/nagios_objects.cfg
|
mountPath: /opt/nagios/etc/nagios_objects.cfg
|
||||||
subPath: nagios_objects.cfg
|
subPath: nagios_objects.cfg
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: pod-var-log
|
||||||
|
mountPath: /opt/nagios/var/log
|
||||||
|
readOnly: false
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: pod-var-log
|
||||||
|
hostPath:
|
||||||
|
path: /opt/nagios/var/log
|
||||||
- name: nagios-etc
|
- name: nagios-etc
|
||||||
secret:
|
secret:
|
||||||
secretName: nagios-etc
|
secretName: nagios-etc
|
||||||
|
@ -1071,7 +1071,7 @@ conf:
|
|||||||
check_command: check_ntp_sync
|
check_command: check_ntp_sync
|
||||||
hostgroup_name: base-os
|
hostgroup_name: base-os
|
||||||
nagios:
|
nagios:
|
||||||
log_file: /opt/nagios/var/nagios.log
|
log_file: /opt/nagios/var/log/nagios.log
|
||||||
cfg_file:
|
cfg_file:
|
||||||
- /opt/nagios/etc/nagios_objects.cfg
|
- /opt/nagios/etc/nagios_objects.cfg
|
||||||
- /opt/nagios/etc/objects/commands.cfg
|
- /opt/nagios/etc/objects/commands.cfg
|
||||||
@ -1093,7 +1093,7 @@ conf:
|
|||||||
temp_path: /tmp
|
temp_path: /tmp
|
||||||
event_broker_options: -1
|
event_broker_options: -1
|
||||||
log_rotation_method: d
|
log_rotation_method: d
|
||||||
log_archive_path: /opt/nagios/var/archives
|
log_archive_path: /opt/nagios/var/log/archives
|
||||||
use_syslog: 1
|
use_syslog: 1
|
||||||
log_service_retries: 1
|
log_service_retries: 1
|
||||||
log_host_retries: 1
|
log_host_retries: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user