Nagios Netsaint Related Tips Install Non Root

You only have to log with a non-privileged user:

First install the APACHE libraries:

cd $HOME/tmp
tar xzvf ../httpd-2.2.21.tar.gz
cd /tmp/httpd-2.2.21
./configure --prefix=$HOME/apache
make install
$HOME/apache/bin/apachectl -kstart

netstat -tnlp | grep 8080
tcp        0      0  *               ESCUCHAR    29073/httpd

Now we have to install the gd libraries:

cd tmp
tar xvf ../gd-2.0.33.tar.gz
cd gd-2.0.33/
./configure --prefix=$HOME/gd
make install

And finally the nagios (core) installation:

/configure --prefix=$HOME/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=ocm --with-nagios-group=ocm --with-command-group=ocm --with-gd-lib=$HOME/gd/lib --with-gd-inc=$HOME/gd/include --with-httpd-conf=$HOME/apache/conf

> tip for avoiding compile rss faliure
sed -i 's:for file in includes/rss/\*;:for file in includes/rss/\*.\*;:g' ./html/Makefile
sed -i 's:for file in includes/rss/extlib/\*;:for file in includes/rss/extlib/\*.\*;:g' ./html/Makefile
> end tip
ocm@achtung:~/nagios$make all
ocm@achtung:~/make install
ocm@achtung:~/make install-commandmode

Now you can start the nagios daemon:

ocm@achtung:~/nagios3/etc$ htpasswd -c htpasswd.users nagiosadmin
ocm@achtung:~$ ./nagios3/bin/nagios -d nagios3/etc/