Removing nagios service from a node results in apache errors
- [local1.bitmask.local] Error: /Stage[main]/Apache::Base/Service[apache]: Failed to call refresh: Could not start Service[apache]: Execution of '/usr/sbin/service apache2 start' returned 1: Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. - [local1.bitmask.local] Error: /Stage[main]/Apache::Base/Service[apache]: Could not start Service[apache]: Execution of '/usr/sbin/service apache2 start' returned 1: Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. - [local1.bitmask.local] Wrapped exception: - [local1.bitmask.local] Execution of '/usr/sbin/service apache2 start' returned 1: Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. - [local1.bitmask.local] Notice: Finished catalog run in 129.90 seconds - [local1.bitmask.local] APPLY COMPLETE (changes and failures) {user: varac, platform: 0.8 (7834_build_essential_packages f5eca), leap_cli: 1.8 (develop 1b734)}
root@local1:~# systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: exit-code) since Sat 2016-01-23 01:43:47 AEDT; 4min 15s ago Process: 11925 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 11977 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) Jan 23 01:43:47 local1 apache2[11977]: Starting web server: apache2 failed! Jan 23 01:43:47 local1 apache2[11977]: The apache2 configtest failed. ... (warning). Jan 23 01:43:47 local1 apache2[11977]: Output of config test was: Jan 23 01:43:47 local1 apache2[11977]: AH00526: Syntax error on line 33 of /etc/apache2/conf-enabled/nagios3.conf: Jan 23 01:43:47 local1 apache2[11977]: Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration Jan 23 01:43:47 local1 apache2[11977]: Action 'configtest' failed. Jan 23 01:43:47 local1 apache2[11977]: The Apache error log may have more information. Jan 23 01:43:47 local1 systemd[1]: apache2.service: control process exited, code=exited status=1 Jan 23 01:43:47 local1 systemd[1]: Failed to start LSB: Apache2 web server. Jan 23 01:43:47 local1 systemd[1]: Unit apache2.service entered failed state. root@local1:~# rm /etc/apache2/conf-enabled/nagios3.conf root@local1:~# systemctl restart apache2.service root@local1:~# systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Sat 2016-01-23 01:48:16 AEDT; 3s ago Process: 11925 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 12842 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─12859 PassengerHelperAgent ├─12864 PassengerLoggingAgent ├─12875 PassengerWatchdog (cleaning up...) ├─12876 /usr/sbin/apache2 -k start ├─12879 PassengerWatchdog ├─12882 PassengerHelperAgent ├─12887 PassengerLoggingAgent ├─12897 /usr/sbin/apache2 -k start ├─12898 /usr/sbin/apache2 -k start ├─12899 /usr/sbin/apache2 -k start ├─12900 /usr/sbin/apache2 -k start └─12901 /usr/sbin/apache2 -k start Jan 23 01:48:16 local1 apache2[12842]: Starting web server: apache2.
(from redmine: created on 2016-01-22)