CGI Error on Centos 7
Posted: Thu Sep 21, 2017 5:15 pm
I have installed nagios core 4.3.2-8.el7 from epel and done the SELinux config suggested by the startup script. Subsequently the nagios daemon started and looks ok:
Still the nagios home page shows "Unable to get process status" and "End of script output before headers" is written to the apache error log. Setting SELinux to permissive does not help and the permissions seem ok, as installed by RPM.
Any suggestions where to start looking?
Code: Select all
nagios.service - Nagios Network Monitoring
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled)
Active: active (running) since Thu 2017-09-21 22:56:33 CEST; 1h 11min ago
Docs: https://www.nagios.org/documentation/
Process: 11601 ExecStopPost=/bin/rm -f /var/spool/nagios/cmd/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 11599 ExecStopPost=/bin/rm -f /var/spool/nagios/status.dat (code=exited, status=0/SUCCESS)
Process: 11596 ExecStopPost=/bin/rm -f /var/run/nagios/nagios.pid (code=exited, status=0/SUCCESS)
Process: 11595 ExecStopPost=/usr/bin/rm -f /var/spool/nagios/cmd/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 11605 ExecStart=/usr/sbin/nagios -d /etc/nagios/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 11603 ExecStartPre=/usr/sbin/nagios -v /etc/nagios/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 11606 (nagios)
CGroup: /system.slice/nagios.service
├─11606 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
├─11607 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
├─11608 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
├─11609 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
├─11610 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
├─11611 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
├─11612 /usr/sbin/nagios --worker /var/spool/nagios/cmd/nagios.qh
└─11613 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
Any suggestions where to start looking?