Nagios 4.4.5 fresh install not working on Solaris 11.4

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios 4.4.5 fresh install not working on Solaris 11.4

Postby chedaille » Wed Jul 08, 2020 12:37 pm

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/nagios-core-installing-nagios-core-from-source-96.html#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: 2
Joined: Wed Jul 08, 2020 10:45 am

Re: Nagios 4.4.5 fresh install not working on Solaris 11.4

Postby chedaille » Fri Jul 10, 2020 7:20 am

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.
chedaille
 
Posts: 2
Joined: Wed Jul 08, 2020 10:45 am

Re: Nagios 4.4.5 fresh install not working on Solaris 11.4

Postby scottwilkerson » Fri Jul 10, 2020 7:36 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18968
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Community Support

Who is online

Users browsing this forum: No registered users and 22 guests