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.
Ok so I got passed that part by creating the missing directories.
Now installed the plugins but when it comes to the chkconfig
I get an error that the command is not recognised. Has this been removed from 14.04?
Can I install it?
eto@ubuntu:~$ /etc/init.d/apache2 status
* apache2 is running
eto@ubuntu:~$ /etc/init.d/apache2 stop
* Stopping web server apache2 *
eto@ubuntu:~$
eto@ubuntu:~$ /etc/init.d/apache2 start
* Starting web server apache2 *
eto@ubuntu:~$
Browsing to http://<address of server> lans me on the 'Apache2 Ubuntu Default Page'
When I look in /var/www/ the only folder there is html which has the index.html file, I believe this just the default apache2 page?
Ubuntu has a different directory structure than RHEL or CentOS.
shaunie1975 wrote:Ok so I got passed that part by creating the missing directories.
Can you post or PM the httpd nagios conf file that should be present in that directory? Apache probably does not know where it is so it cannot load the Nagios webpage.
Ubuntu uses /etc/apache2 and RHEL/CentOS use /etc/httpd so you may have to copy over some files.
root@ubuntu:/tmp/nagios-4.0.7# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file â/etc/httpd/conf.d/nagios.confâ: No such file or directory
make: *** [install-webconf] Error 1
On Debian or Ubuntu it should be "/etc/apache2/conf.d/nagios.conf" instead of "/etc/httpd/conf.d/nagios.conf". When you created the "/etc/httpd/conf.d/" it let the "make install-webconf" complete successfully, but Apache doesn't know anything about that directory or file.
We can tell ./configure where to install nagios.conf so apache will see it: add "--with-httpd-conf=/etc/apache2/conf.d/nagios.conf" to the end of the ./configure command you ran earlier. For example: