Professional Documents
Culture Documents
Once installed the Nagios, you can monitor the system via web interface; by default it
is limited to monitor the local machine where Nagios installed. If you like to monitor the
remote Linux box or Windows box, you need to have Nagios plugin and NRPE addon installed on the remote box. Once installed the plugin and add-on, you need to configure
the Nagios server to collect the information from the remote machine and display it on the
web interface.
If you have not yet installed the Nagios; visit the Install and Setup Nagios on Centos 6.
Monitoring the Remote Linux system includes the 6 Steps
Compile and install the plugins. While compiling i got an error; here is the Nagios
troubleshooting Tutorial.
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Change the permission of the nagios plugin directory on the remote host.
chown nagios.nagios /usr/local/nagios
chown -R nagios.nagios /usr/local/nagios/libexec/
Compile it.
./configure
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd
In the above command -w stands for warning whereas -c stands for critical alert. For
example if you execute the second command on the terminal, it will check the running
process; it will warn when the process more than 150 or it will report critical when the
process more than 200 and at the same time it will say OK if process below 150.
/usr/local/nagios/libexec/check_procs -w 150 -c 200PROCS OK: 112
processes
Change warning to 100 and critical to 150 for testing purpose. Now you can see the warning message,
according to your requirement you can modify it.
/usr/local/nagios/libexec/check_procs -w 100 -c 150PROCS WARNING: 112
processes
Compile it.
./configuremake allmake install-plugin
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$
linux-server
host_name
linuxclient1.iii.local
alias
Client 1
address
192.168.0.152
}
define hostgroup{
hostgroup_name
Linux Client
alias
Linux Client 1
members
linuxclient1.iii.local
}
define service{
use
local-service
host_name
linuxclient1.iii.local
service_description
SWAP Uasge
check_command
}define service{
check_nrpe!check_swap
use
local-service
host_name
linuxclient1.iii.local
service_description
Root Partition
check_command
}
check_nrpe!check_sda1
define service{
use
local-service
host_name
linuxclient1.iii.local
service_description
Current Users
check_command
}
check_nrpe!check_users
define service{
use
local-service
host_name
linuxclient1.iii.local
service_description
Total Processes
check_command
}
check_nrpe!check_total_procs
define service{
use
local-service
host_name
linuxclient1.iii.local
service_description
Current Load
check_command
}
check_nrpe!check_load
Add the new template on the nagios.cfg configuration file, so that it will read the new
entries.
vi /usr/local/nagios/etc/nagios.cfg
Thats All
Search Term:
Install Nagios,Install Nagios 3.4.4
Install Nagios on CentOS
Install Nagios on CentOS 6
Install Nagios on Redhat
Install Nagios on RHEL 6
Setup Nagios on CentOS
Configure Nagios on CentOS 6
Configire Nagios on RHEL 6
Install Nagios on Fedora
Step by Step Nagios installation