Revision history for InstallingNagios
Additions:
Next we're going to create a new group whose members include the user your web server is running as and the user Nagios is running as. Let's say we call this new group 'nagcmd' (you can name it differently if you wish). On ""RedHat"" Linux you can use the following command to add a new group (other systems may differ):
Deletions:
Additions:
----
CategoryAuditing
CategoryAuditing
Additions:
In order for Nagios to be of any use to you, you're going to have to download and install some plugins. Plugins are usually installed in the libexec/ directory of your Nagios installation (i.e. /usr/local/nagios/libexec). Plugins are scripts or binaries which perform all the service and host checks that constitute monitoring. You can grab the latest release of the plugins from the Nagios downloads page or directly from the ""SourceForge"" project page.
Deletions:
Additions:
~& From - http://nagios.sourceforge.net/docs/2_0/installing.html
Deletions:
Additions:
~@ From - http://nagios.sourceforge.net/docs/2_0/installing.html
Deletions:
Additions:
tar xzf nagios-version.tar.gz
adduser nagios
mkdir /usr/local/nagios
chown nagios.nagios /usr/local/nagios
grep "^User" /etc/httpd/conf/httpd.conf
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -G nagcmd apache
/usr/sbin/usermod -G nagcmd nagios
./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup
make all
make install
make install-init
cd /usr/local/nagios
adduser nagios
mkdir /usr/local/nagios
chown nagios.nagios /usr/local/nagios
grep "^User" /etc/httpd/conf/httpd.conf
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -G nagcmd apache
/usr/sbin/usermod -G nagcmd nagios
./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup
make all
make install
make install-init
cd /usr/local/nagios
Deletions:
==adduser nagios==
==mkdir /usr/local/nagios==
==chown nagios.nagios /usr/local/nagios==
==grep "^User" /etc/httpd/conf/httpd.conf==
==/usr/sbin/groupadd nagcmd==
==/usr/sbin/usermod -G nagcmd apache==
==/usr/sbin/usermod -G nagcmd nagios==
==./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup==
//==make all==//
==make install==
==make install-init==
==cd /usr/local/nagios==
Additions:
%%
==tar xzf nagios-version.tar.gz==
%%
%%
==adduser nagios==
%%
%%
==mkdir /usr/local/nagios==
%%
%%
==chown nagios.nagios /usr/local/nagios==
%%
%%
==grep "^User" /etc/httpd/conf/httpd.conf==
%%
%%
==/usr/sbin/groupadd nagcmd==
%%
%%
==/usr/sbin/usermod -G nagcmd apache==
==/usr/sbin/usermod -G nagcmd nagios==
%%
%%
==./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup==
%%
%%
==make install==
%%
%%
==make install-init==
%%
%%
==cd /usr/local/nagios==
%%
==tar xzf nagios-version.tar.gz==
%%
%%
==adduser nagios==
%%
%%
==mkdir /usr/local/nagios==
%%
%%
==chown nagios.nagios /usr/local/nagios==
%%
%%
==grep "^User" /etc/httpd/conf/httpd.conf==
%%
%%
==/usr/sbin/groupadd nagcmd==
%%
%%
==/usr/sbin/usermod -G nagcmd apache==
==/usr/sbin/usermod -G nagcmd nagios==
%%
%%
==./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup==
%%
%%
==make install==
%%
%%
==make install-init==
%%
%%
==cd /usr/local/nagios==
%%
Deletions:
//==adduser nagios==//
//==mkdir /usr/local/nagios==//
//==chown nagios.nagios /usr/local/nagios==//
//==grep "^User" /etc/httpd/conf/httpd.conf==//
//==/usr/sbin/groupadd nagcmd==//
//==/usr/sbin/usermod -G nagcmd apache==//
//==/usr/sbin/usermod -G nagcmd nagios==//
//==./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-group=somegroup --with-command-group=cmdgroup==//
//==make install==//
//==make install-init==//
//==cd /usr/local/nagios==//
Additions:
So now you have things compiled and installed, but you still haven't configured Nagios or defined objects (hosts, services, etc.) that should be monitored. Information on configuring Nagios and defining objects can be found here. There's a lot to configure, but don't let it discourage you - its
well worth it.
---
From - http://nagios.sourceforge.net/docs/2_0/installing.html
well worth it.
---
From - http://nagios.sourceforge.net/docs/2_0/installing.html