Page 3 of 3
Re: New offline intsallation of Nagios HELP
Posted: Mon Jan 16, 2017 3:32 pm
by rkennedy
In addition to what @dwhitfield posted -
Please run the following and post the output -
Code: Select all
tail -n100 /var/log/httpd/error_log
tail -n100 /var/log/httpd/ssl_error_log
tail -n100 /var/log/httpd/access_log
tail -n100 /var/log/httpd/ssl_access_log
Also, post your entire /etc/httpd/conf.d/ folder for us to look at.
Lastly, we'll need to see which version of apache you're running. Please show us the output of
apachectl -v
Re: New offline intsallation of Nagios HELP
Posted: Tue Jan 17, 2017 9:43 am
by techcrunch
I've changed my Nagios.conf to replicate yours and I've included all files requested for in the zip file.
Thanks,
Nagios Logs.zip
Re: New offline intsallation of Nagios HELP
Posted: Tue Jan 17, 2017 11:36 am
by rkennedy
You have quite a few problems going on -
Code: Select all
[root@localhost tmp]# [Mon Jan 16 10:42:01.525913 2017] [:error] [pid 22657] [client 127.0.0.1:41323] PHP Warning: Unknown: open(/var/lib/php/session/sess_n32atlogtstva2onqtsmqifhs1, O_RDWR) failed: No space left on device (28) in Unknown on line 0
You'll need to add more space to the machine.
The contents of your conf.d directory suggest this is not a clean system, there are multiple other processes running on it which can affect Nagios -
Code: Select all
utoindex.conf nagiosmobile.conf README
fcgid.conf nagiosql.conf revocator.conf
mailman.conf nagiosxi.conf squid.conf
manual.conf nagiosxi.conf_ORIG_20170112 ssl.conf
mod_security.conf nrdp.conf ssl.conf.nagiosxibackup
mrtg.conf nss.conf userdir.conf
nagios.conf php.conf welcome.conf
mod_security -
Code: Select all
"/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "29"] [id "960008"] [rev "2"] [msg "Request Missing a Host Header"] [severity "WARNING"] [ver "OWASP_CRS/2.2.6"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "localhost.localdomain"] [uri "/"] [unique_id "WH3WKg-IeeciWiTEMsGIaQAAAAI"]
[root@localhost tmp]#
Please install on a minimal machine, with no prior applications running on it - this is how you can get a proper install setup & working. Having all of these items already on the machine is going to affect the initial setup.
Re: New offline intsallation of Nagios HELP
Posted: Tue Jan 17, 2017 12:04 pm
by techcrunch
This was a clean install. Please assist on how to get through the security error.
Re: New offline intsallation of Nagios HELP
Posted: Tue Jan 17, 2017 12:12 pm
by techcrunch
I can get to the installer page. However when I set up the URL, Admin Name, Password, etc, ----> then click install, I get the Forbidden error. Please assist.
Re: New offline intsallation of Nagios HELP
Posted: Tue Jan 17, 2017 12:20 pm
by dwhitfield
techcrunch wrote:This was a clean install.
Are you just importing all of your Apache configs from another machine? Are you installing clean and then adding on top of it?
Did you take care of the space issue?