Nagios 4.4.5 fresh install not working on Solaris 11.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chedaille
Posts: 4
Joined: Wed Jul 08, 2020 10:45 am

Nagios 4.4.5 fresh install not working on Solaris 11.4

Post by chedaille »

Hello,

I have just installed Nagios Core 4.4.5 on a Solaris 11 system with the following Software configuration:

Code: Select all

SunOS solaris11 5.11 11.4.0.15.0 i86pc i386 i86pc
GCC 7.3.0
GD 2.2.5
PHP 5.6.36
Apache 2.4.33
Nagios 4.4.5
To perform the installation, I followed the official instructions from Nagios website:
https://support.nagios.com/kb/article/n ... ml#Solaris

After a fresh install, I am now facing 2 main issues that are preventing to use Nagios and deploy it in production:

1) When login into Nagios with nagiosadmin user, the error "Not running" is displayed.

See attached screenshot: https://prnt.sc/te8j9k

However, the services is correctly running:

Code: Select all

STATE          STIME    FMRI
online         18:28:28 svc:/application/nagios:default
online         19:28:03 svc:/network/http:apache24
I have restarted both services and the issue remains.

2) When trying to navigate using the left hand side menu, the CGI files are being downloaded instead of being executed.
https://prnt.sc/te8r1l

- Apache file /etc/apache2/2.4/httpd.conf seems to be configured with correct directives:

Code: Select all

 AddHandler cgi-script .cgi
 Options Indexes FollowSymLinks ExecCGI
- I have checked the file /etc/apache2/2.4/conf.d/nagios.conf that also has the ExecCGI option:

Code: Select all

<Directory "/usr/local/nagios/sbin">
   Options ExecCGI			<<<<<<<<<<<<<<<<<<
   AllowOverride None
   <IfVersion >= 2.3>
      <RequireAll>
         Require all granted
Could anyone please assist to investigate what is causing both issues ?

Kind Regards,
chedaille
Posts: 4
Joined: Wed Jul 08, 2020 10:45 am

Re: Nagios 4.4.5 fresh install not working on Solaris 11.4

Post by chedaille »

Hello,

I have finally resolved this on my own. I "simply" forgot to uncomment the following lines in /etc/apache2/2.4/httpd.conf

Code: Select all

        LoadModule cgid_module libexec/mod_cgid.so
        LoadModule cgi_module libexec/mod_cgi.so
Both issues are now solved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 4.4.5 fresh install not working on Solaris 11.4

Post by scottwilkerson »

chedaille wrote:Hello,

I have finally resolved this on my own. I "simply" forgot to uncomment the following lines in /etc/apache2/2.4/httpd.conf

Code: Select all

        LoadModule cgid_module libexec/mod_cgid.so
        LoadModule cgi_module libexec/mod_cgi.so
Both issues are now solved.
Glad to hear you have them resolved!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked