RUN sed -i 's|\(authorized_for_all_services=.*\)|\1,guest|' /etc/nagios/cgi.cfg
RUN sed -i 's|\(authorized_for_all_hosts=.*\)|\1,guest|' /etc/nagios/cgi.cfg
RUN sed -i 's|\(authorized_for_read_only=.*\)|\1,guest|' /etc/nagios/cgi.cfg
+ADD no-localhost-ssh.patch /usr/local/share/no-localhost-ssh.patch
+RUN patch -p1 < /usr/local/share/no-localhost-ssh.patch
RUN mkdir /etc/nagios/cfg
RUN chown nagios:nagios /etc/nagios/cfg
RUN sed -i 's|\(#cfg_dir=/etc/nagios/routers.*\)|\1\ncfg_dir=/etc/nagios/cfg|' /etc/nagios/nagios.cfg
--- /dev/null
+The Nagios Docker container won't have SSH access enabled.
+
+The irregularity in tabs vs. spaces occurs upstream.
+
+--- a/etc/nagios/objects/localhost.cfg
++++ b/etc/nagios/objects/localhost.cfg
+@@ -131,19 +131,6 @@
+
+
+
+-# Define a service to check SSH on the local machine.
+-# Disable notifications for this service by default, as not all users may have SSH enabled.
+-
+-define service{
+- use local-service ; Name of service template to use
+- host_name localhost
+- service_description SSH
+- check_command check_ssh
+- notifications_enabled 0
+- }
+-
+-
+-
+ # Define a service to check HTTP on the local machine.
+ # Disable notifications for this service by default, as not all users may have HTTP enabled.
+