Guide for installing 4.0.7 on Ubuntu 14.04

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.
emislivec
Posts: 52
Joined: Tue Feb 25, 2014 10:06 am

Re: Guide for installing 4.0.7 on Ubuntu 14.04

Post by emislivec »

shaunie1975 wrote:I ran the ./configure as

Code: Select all

./configure --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/conf.d
which didnt work...
Looks like I told you the old directory: https://help.ubuntu.com/14.04/serverguide/httpd.html
conf-available: this directory contains available configuration files. All files that were previously in /etc/apache2/conf.d should be moved to /etc/apache2/conf-available.
Sorry about that. So in the future we should be able to do it automatically with:

Code: Select all

./configure --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/conf-available
shaunie1975 wrote:Now when I login I see the nagios core and the logo then below that i see a red X and not running next to it.
This probably means the Nagios server isn't running. We can check that with:

Code: Select all

[root@core]# service nagios status
No lock file found in /usr/local/nagios/var/nagios.lock
This tells us Nagios isn't running. Then to start it:

Code: Select all

[root@core]# service nagios start
Starting nagios: done.
[root@core]# service nagios status
nagios (pid 6224) is running...
With chkconfig installed you can check that Nagios is set to start automatically:

Code: Select all

[root@core]# chkconfig --list nagios
nagios          0:off   1:off   2:on    3:on    4:on    5:on    6:off
If it's not set to start automatically, we can change that with:

Code: Select all

chkconfig --add nagios
Locked