Nagios/Nagat Network Monitoring - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html) +--- Forum: DNS and DHCP (https://www.linux-noob.com/forums/forum-84.html) +--- Thread: Nagios/Nagat Network Monitoring (/thread-3179.html) |
Nagios/Nagat Network Monitoring - Strabo - 2004-08-30 We are going to install Nagios monitoring tool and Nagat for configuring the nagios sctuff. If you search Sourceforge you will see a few different nagat tools that users have written to do different stuff. I am also going to include the nrpe_nt executable, the wincheck_counter (this does command line perfmons on windows) and a vb script that does services up or down state. The great thing about Nagios is you can make your own Plugins for it etc... This how-to requires apache and php to be installed and configured correctly! Get nagios and decompress it. Quote:tar -zxvf nagios-1.2.tar.gz Make a directory to install Nagios in Quote:mkdir /usr/local/nagios You need to add the user and group for nagios. Quote:groupadd nagiosuseradd -g nagios nagios Now lets configure the application for installation. Quote:./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios You should see this output: Quote:*** Configuration summary for nagios 1.2 02-02-2004 ***: Next you have to do the following as it states from the output above. Quote:make allmake install The command "make install-config" installs sample config scripts in Quote:/usr/local/nagios/etc You need to make the directory read write so you can edit the files with the Nagat configuratoin tool. Quote:cd /usr/local/nagioschmod 777 etc -R (this is so nagat can write the config files) Now you need to edit Apache. Quote:vi /usr/local/apache/conf/httpd.conf Now insert the following under ScriptAlias. Quote:#for nagiosScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ Now you can check the nagios config from the terminal. I like using the tool in Nagat that does the same thing so you can see it in a webpage. Quote:/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg You can put security on each section of the reporting tool to limit access to it. This is stored in CFG.CGI file. Quote:htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin Enter the password when asked. now lets put the .htaccess files in the directories for security. Quote:vi /usr/local/nagios/share/.htaccessvi /usr/local/nagios/sbin/.htaccess Enter in this in the .htaccess file. Quote:AuthName "Nagios Access"AuthType Basic Now it is time to install the nagios plugin so you can actually monitor stuff. These are some of the generic default monitoring scripts for like Oracle or cpu etc.. The app is "nagios-plugins-1.4.0alpha1.tar" Quote:tar -zxvf nagios-plugins-1.4.0alpha1.tar Now lets compile the plugin. Quote:./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin OK you know the drill with make and make install. Quote:makemake install Now if you use Nagat you have to do chmod 777 on the directory with the executable. Quote:chmod 777 /usr/local/nagios/var/rw/ -R You need to do the same thing for hte nagios execuable too. Quote:chmod 777 /usr/local/nagios/bin/ -R Now lets install NRPE 2.0 so you can execute remote commands on another machine. nrpe-2.0.tar.gz Quote:tar Nagios/Nagat Network Monitoring - Webbie - 2004-12-24 wow man nice write up, i been thinkin on install Nagios, Props to ya |