Hello,
I installed the latest version of Nagios Core 4.4.14. The Nagios itself is running, The apace and php-fpm service also running. The site loading properly, but all of the options shows the following error messages:
Unable to get process status
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
The httpd error log shows the following for all CGIs.
Thu Oct 19 15:41:16.921796 2023] [cgid:error] [pid 1037454:tid 139957935003392] (13)Permission denied: [client 10.75.137.53:64060] AH01257: unable to connect to cgi daemon after multiple tries: /usr/local/nagios/sbin/status.cgi, referer
: https://nagios.bp.emea.bosch.com/nagios/side.php
[Thu Oct 19 15:41:17.552976 2023] [cgid:error] [pid 1037452:tid 139957993522944] (13)Permission denied: [client 10.75.137.53:64059] AH01257: unable to connect to cgi daemon after multiple tries: /usr/local/nagios/sbin/status.cgi, referer
: https://nagios.bp.emea.bosch.com/nagios/side.php
The CGIs permission is the following:
drwxrwxr-x 2 nagios2 nagios2 4096 Oct 19 15:29 .
drwxr-xr-x 8 root root 79 Oct 19 15:30 ..
-rwxrwxr-x 1 nagios2 nagios2 329408 Oct 19 15:29 archivejson.cgi
-rwxrwxr-x 1 nagios2 nagios2 314808 Oct 19 15:29 avail.cgi
-rwxrwxr-x 1 nagios2 nagios2 306312 Oct 19 15:29 cmd.cgi
-rwxrwxr-x 1 nagios2 nagios2 277856 Oct 19 15:29 config.cgi
-rwxrwxr-x 1 nagios2 nagios2 322968 Oct 19 15:29 extinfo.cgi
-rwxrwxr-x 1 nagios2 nagios2 273944 Oct 19 15:29 histogram.cgi
-rwxrwxr-x 1 nagios2 nagios2 253336 Oct 19 15:29 history.cgi
-rwxrwxr-x 1 nagios2 nagios2 249224 Oct 19 15:29 notifications.cgi
-rwxrwxr-x 1 nagios2 nagios2 327104 Oct 19 15:29 objectjson.cgi
-rwxrwxr-x 1 nagios2 nagios2 245088 Oct 19 15:29 outages.cgi
-rwxrwxr-x 1 nagios2 nagios2 245104 Oct 19 15:29 showlog.cgi
-rwxrwxr-x 1 nagios2 nagios2 322984 Oct 19 15:29 status.cgi
-rwxrwxr-x 1 nagios2 nagios2 325248 Oct 19 15:29 statusjson.cgi
-rwxrwxr-x 1 nagios2 nagios2 269904 Oct 19 15:29 statusmap.cgi
-rwxrwxr-x 1 nagios2 nagios2 265648 Oct 19 15:29 statuswml.cgi
-rwxrwxr-x 1 nagios2 nagios2 249232 Oct 19 15:29 statuswrl.cgi
-rwxrwxr-x 1 nagios2 nagios2 269760 Oct 19 15:29 summary.cgi
-rwxrwxr-x 1 nagios2 nagios2 261568 Oct 19 15:29 tac.cgi
-rwxrwxr-x 1 nagios2 nagios2 278048 Oct 19 15:29 trends.cgi
SE Linux also disabled.
Do you have any other hints to solve this problem?
Thank you in advance.
Apache can't connect CGI files.
Re: Apache can't connect CGI files.
Solution:
/etc/httpd/conf.modules.d/00-mpm.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Line need to be enabled to remove the #, and the other Load module need to be commented out.
/etc/httpd/conf.modules.d/00-mpm.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Line need to be enabled to remove the #, and the other Load module need to be commented out.
-
- Posts: 1
- Joined: Mon Dec 18, 2023 2:22 am
Re: Apache can't connect CGI files.
Great
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Last edited by FerneHodkie on Mon Dec 18, 2023 2:25 am, edited 1 time in total.
Re: Apache can't connect CGI files.
Good idea, I will try itMartonT88 wrote: ↑Wed Oct 25, 2023 3:02 am Solution:
/etc/httpd/conf.modules.d/00-mpm.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so connections
Line need to be enabled to remove the #, and the other Load module need to be commented out.
Re: Apache can't connect CGI files.
great, thanks for your solution.MartonT88 wrote: ↑Wed Oct 25, 2023 3:02 am iq test free Solution:
/etc/httpd/conf.modules.d/00-mpm.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Line need to be enabled to remove the #, and the other Load module need to be commented out.