Nagios 3.2.0 won't start as daemon - config problems.
Posted: Wed Sep 03, 2014 8:37 am
Hello,
I compiled and installed Nagios according to http://nagios.sourceforge.net/docs/3_0/ ... buntu.html. There is something wrong with my config though and I hope you could help me get on track.
My Nagios 3.2.0 was installed to /etc/nagios3.
1. Nagios won't run as daemon or as service - ALREADY FIXED SEE http://support.nagios.com/forum/viewtop ... 77#p110577
Nagios will run only, when deployed like
or
However, it will not run when
(After I hit "Enter" button nothing more is shown, just next command prompt. Package daemon is installed)
or
I checked /etc/init.d/nagios script and directories there seem fine.
Terminal says: "Starting nagios: done.", however no new process is created. Still, I can type /etc/init.d/nagios stop and nagios is killed (always the same PID - 229).
2. Wrong site name - ALREADY FIXED SEE http://support.nagios.com/forum/viewtop ... 05#p110425
It is defined in cgi.cfg; cgi.cfg sits in /etc/nagios3/etc, next to nagios.cfg
However, my apache2 seems to ignore it, as it creates my site as localhost/nagios instead of localhost/nagios3
My nagios.conf included in apache:
Have you ever encountered problems like these?
I compiled and installed Nagios according to http://nagios.sourceforge.net/docs/3_0/ ... buntu.html. There is something wrong with my config though and I hope you could help me get on track.
My Nagios 3.2.0 was installed to /etc/nagios3.
1. Nagios won't run as daemon or as service - ALREADY FIXED SEE http://support.nagios.com/forum/viewtop ... 77#p110577
Nagios will run only, when deployed like
Code: Select all
/etc/nagios3/bin/nagios /etc/nagios3/etc/nagios.cfgCode: Select all
nohup /etc/nagios3/bin/nagios /etc/nagios3/etc/nagios.cfgCode: Select all
/etc/nagios3/bin/nagios -d /etc/nagios3/etc/nagios.cfgor
Code: Select all
/etc/init.d/nagios startTerminal says: "Starting nagios: done.", however no new process is created. Still, I can type /etc/init.d/nagios stop and nagios is killed (always the same PID - 229).
2. Wrong site name - ALREADY FIXED SEE http://support.nagios.com/forum/viewtop ... 05#p110425
It is defined in cgi.cfg; cgi.cfg sits in /etc/nagios3/etc, next to nagios.cfg
Code: Select all
url_html_path=/nagios3My nagios.conf included in apache:
Code: Select all
ScriptAlias /nagios/cgi-bin "/etc/nagios3/sbin"
<Directory "/etc/nagios3/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/etc/nagios3/share"
<Directory "/etc/nagios3/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios3/etc/htpasswd.users
Require valid-user
</Directory>