User Tools

Site Tools


some_nagios

An example of switch.cfg file:

GNU nano 2.3.1 File: /usr/local/nagios/etc/objects/switch.cfg

define hostgroup{
hostgroup_name switches
alias Network Switches
}


define host{
use generic-switch
host_name core-switch
alias Cisco Core Switch
address 10.11.12.206
hostgroups switches

}

# Service definition to ping the switch using check_ping define service{
use generic-service
hostgroup_name switches
service_description PING
check_command check_ping!200.0,20%!600.0,60%
normal_check_interval 2
retry_check_interval 1
}
# Service definition to monitor switch uptime using check_snmp
define service{
use generic-service
hostgroup_name switches
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}

some_nagios.txt · Last modified: 2017/04/26 15:42 by admin