me router_len58a_description DNS_command check_dns
}
/etc/nagios3/objects/routers/des3627g.cfg
host {generic-switch; Inherit default values ??from a template_name des3627g; The name we're giving to this switchD-Link DES - 3627G; A longer name associated with the switch192.168.10.111; IP address of the switchrouters; Host groups this switch is associated with_period 24x7_options d, u, f, r_interval 30_groups admins_enabled 1
}
# Create a service to PING to switch
service {generic-service; Inherit values ??from a template_name des3627g; The name of the host the service is associated with_description PING; The service description_command check_ping! 200.0,20%! 600.0,60%; The command used to monitor the service_check_interval 5; Check the service every 5 minutes under normal conditions_check_interval 1; Re-check the service every minute until its final/hard state is determined_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
# Monitor uptime via SNMPservice {generic-service; Inherit values ??from a template_name des3627g_description Uptime_command check_netapp_uptime
}
# Monitor Ports status via SNMP
service {generic-service; Inherit values ??from a template_name des3627g_description Port 1 Link Status_command check_snmp! Public! IfOperStatus.1!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 2 Link Status_command check_snmp! Public! IfOperStatus.2!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 3 Link Status_command check_snmp! Public! IfOperStatus.3!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 4 Link Status_command check_snmp! Public! IfOperStatus.4!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 5 Link Status_command check_snmp! Public! IfOperStatus.5!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 6 Link Status_command check_snmp! Public! IfOperStatus.6!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 7 Link Status_command check_snmp! Public! IfOperStatus.7!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 8 Link Status_command check_snmp! Public! IfOperStatus.8!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 9 Link Status_command check_snmp! Public! IfOperStatus.9!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 10 Link Status_command check_snmp! Public! IfOperStatus.10!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 11 Link Status_command check_snmp! Public! IfOperStatus.11!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 12 Link Status ugmk-router_command check_snmp! Public! IfOperStatus.12!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 21 Link Status_command check_snmp! Public! IfOperStatus.21!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 22 Link Status_command check_snmp! Public! IfOperStatus.22!-m RFC1213-MIB
}
service {generic-service; Inherit values ??from a template_name des3627g_description Port 23 Link Status_command check_snmp! Public! IfOperStatus.23!-m RFC1213-MIB
}
# Monitor bandwidth via MRTG logs
service {generic-service; Inherit values ??from a template_name des3627g_description Port 1 Bandwidth Usage_command traffic_average!/Var/www/mrtg/DES - 3627G/192.168.10.111_1.log! AVG! 80000000,90000000! 1000000...