Posts filed under 'Nagios'
Nrpe.conf Enteries – mysql, exim, dns, zombie
vi /etc/nrpe.conf
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_mysql]=/usr/local/nagios/libexec/check_mysql -H 209.85.53.165
command[check_eximmailqueue]=/usr/local/nagios/libexec/check_eximmailqueue -w 20 -c 100
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 99% -c 90%
command[check_dns]=/usr/local/nagios/libexec/check_dns -H 209.85.53.165
command[check_http]=/usr/local/nagios/libexec/check_http -H 209.85.53.165
Add comment February 4, 2009
Nagios tool for Monitoring Multiple Remote Server from one server
Nagios tool(open source) can be used to monitor several servers(both linux and windows) from one server called as Nagios server.
Used to monitoring,
load average
no.of users
mysql status
mail status
zombie process
apache status
free memory
Complete steps to install and configure nagios and nrpe, both in remote and nagios server
Nagios
-
1) Getting Nagios
You need root access on the server, where you would like to install Nagios. Login as root.
Create a directory for downloads.
#mkdir -p /usr/src/backs/nagios #cd /usr/src/backs/nagios
Download source of nagios and nagios-plugins at http://www.nagios.org/download/.
-
2) Compilation and installation of Nagios
Login as root and create a user, say “nagios”
useradd nagios passwd nagios Changing password for user nagios. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
In some servers normal users may not have permission to use ‘mail’ inorder to send alerts.
usermod -G mail nagios
Make a directory for working with the source code.
mkdir -p /usr/src/works/nagios cd /usr/src/works/nagios/ tar -zxvf /usr/src/backs/nagios/nagios-1.2.tar.gz cd nagios-1.2/ ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios –with-command-group=nagios make all make install make install-init # Needed to add the service 'nagios'. make install-commandmode make install-config 3) Install Nagios Plugins Plugins are usually installed in the libexec/ directory of your Nagios installation (i.e. /usr/local/nagios/libexec). Download the latest version of nagios Plugins from the following http://sourceforge.net/projects/nagiosplug/ cd ../ tar -zxvf /usr/src/backs/nagios/nagios-plugins-1.3.1.tar.gz cd nagios-plugins-1.3.1/ ./configure make make check make install This should install the pugins in the /usr/local/nagios/libexec directory. (more...)
3 comments January 30, 2009