From 6a025571a7ebec0bf99b685ea783012ffe31e795 Mon Sep 17 00:00:00 2001 From: Gardar Thorsteinsson Date: Wed, 17 Jan 2018 15:34:44 +0000 Subject: [PATCH] Livestatus remote service support added --- Dockerfile | 9 +++++++++ supervisord-nagios.conf | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d46012b..562a8bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,12 @@ RUN yum install -y check-mk-livestatus # Add check_mk livestatus broker module to nagios config RUN echo "broker_module=/usr/lib64/check_mk/livestatus.o /var/spool/nagios/cmd/livestatus debug=1" >> /etc/nagios/nagios.cfg +# +# Install Remote Livestatus service +# Needs livestatus xinetd config below +# +RUN yum install -y xinetd + # Lets make sure adagios can write to nagios configuration files, and that # it is a valid git repo so we have audit trail WORKDIR /etc/nagios @@ -98,6 +104,9 @@ ADD container-files / ADD supervisord-nagios.conf /etc/supervisor.d/supervisord-nagios.conf EXPOSE 80 +# Livestatus remote service +EXPOSE 6557 + VOLUME ["/data", "/etc/nagios", "/var/log/nagios", "/etc/adagios", "/opt/adagios", "/opt/pynag"] ENTRYPOINT ["/config/bootstrap.sh"] diff --git a/supervisord-nagios.conf b/supervisord-nagios.conf index b3bf397..b61e4e9 100644 --- a/supervisord-nagios.conf +++ b/supervisord-nagios.conf @@ -8,5 +8,8 @@ command=/usr/sbin/nagios /etc/nagios/nagios.cfg [program:npcd] command=/usr/sbin/npcd -f /etc/pnp4nagios/npcd.cfg +[program:xinetd] +command=/usr/sbin/xinetd -f /etc/xinetd.conf + [group:nagios] -programs=httpd,nagios,npcd +programs=httpd,nagios,npcd,xinetd