System information

Monitoring with Nagios 57
3.4.2 Monitoring Remote Host-Resources
with Nagios
This section explains how to monitor remote host resources with Nagios.
Proceed as follows on the Nagios server:
Procedure3.2: Monitoring a Remote Host Resource with Nagios (Server)
1 Install nagios-nsca (for example, zypper in nagios-nsca).
2 Set the following options in /etc/nagios/nagios.cfg:
check_external_commands=1
accept_passive_service_checks=1
accept_passive_host_checks=1
command_file=/var/spool/nagios/nagios.cmd
3 Set the command_file option in /etc/nagios/nsca.conf to the same
file defined in /etc/nagios/nagios.conf.
4 Add another host and service object:
define host {
name foobar
host_name foobar
address 10.10.4.234
use generic-host
check_period 24x7
check_interval 0
retry_interval 1
max_check_attempts 1
active_checks_enabled 0
passive_checks_enabled 1
contact_groups router-admins
notification_interval 60
notification_options d,u,r
}
define service {
use generic-service
host_name foobar
service_description diskcheck
active_checks_enabled 0
passive_checks_enabled 1
contact_groups router-admins
check_command check_ping
}