rendered paste bodydebian:~# cat /etc/nagios2/routers/router.cfg
define host{
use generic-host
host_name Router
alias Router
address 192.168.1.100
hostgroups routers
}
debian:~# cat /etc/nagios2/services.cfg
define service{
use generic-service
host_name tor,mr
service_description HTTP
check_command check_http
}
define service{
use generic-service
host_name tor,mr
service_description FTP
check_command check_ftp
}
define service{
use generic-service
host_name tor,mr
service_description SSH
check_command check_ssh
}
define service{
use generic-service
host_name smtp
service_description SMTP
check_command check_smtp
}
define service{
use generic-service
host_name Router
service_description snmp_cisco_ifstatus
check_command check_snmp_cisco_ifstatus
}
define service{
use generic-service
host_name Router
service_description snmp_cisco_loadavg
check_command check_snmp_cisco_loadavg
}
define service{
use generic-service
host_name Router
service_description snmp_cisco_memutil
check_command check_snmp_cisco_memutil
}
debian:~# cat /etc/nagios-plugins/config/cisco.cfg
define command{
command_name check_snmp_cisco_ifstatus
command_line /usr/lib/nagios/plugins/check_snmp_cisco_ifstatus -H $HOSTADDRESS$
}
define command{
command_name check_snmp_cisco_loadavg
command_line /usr/lib/nagios/plugins/check_snmp_cisco_loadavg -H $HOSTADDRESS$
}
define command{
command_name check_snmp_cisco_memutil
command_line /usr/lib/nagios/plugins/check_snmp_cisco_memutil -H $HOSTADDRESS$
}