Skip to content

Commit

Permalink
Livestatus remote service support added
Browse files Browse the repository at this point in the history
  • Loading branch information
gardart committed Jan 17, 2018
1 parent 7d817db commit 6a02557
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
5 changes: 4 additions & 1 deletion supervisord-nagios.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6a02557

Please sign in to comment.