How to add host only adapter in virtualbox in linux or windows.

if you want to do some networking stuff or you want to stablish a server using virtual box. it will help you.
Video Rating: / 5

How to Monitor Remote Linux Host using Nagios and NRPE

Set nagiosadmin password

# yum install nrpe nagios-plugins-all openssl

Edit /etc/nagios/nrpe.cfg file,
# vi /etc/nagios/nrpe.cfg
[..]
allowed_hosts=127.0.0.1 192.168.1.101
[..]

# service nrpe start

Edit “/etc/nagios/nagios.cfg” file,

# vi /etc/nagios/nagios.cfg

uncomment the following lines.

cfg_dir=/etc/nagios/servers

# mkdir /etc/nagios/servers

# vi /etc/nagios/servers/hosts.cfg

and ad following line
define host {
use linux-server
host_name khandwa.lokesh.com
alias linuxtopic.com
address 10.20.2.33
register 1
}
define service{
host_name khandwa.lokesh.com
service_description PING
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 2
check_interval 2
retry_interval 2
check_period 24×7
check_freshness 1
contact_groups admins
notification_interval 2
notification_period 24×7
notifications_enabled 1
register 1
}
# service nagios restart

0 comments… add one

Leave a Comment