====== Différences ======
Cette page vous affiche les différences entre la révision choisie et la version actuelle de la page.
nagios:topologie [2015/01/05 16:42] r.doiteau créée |
nagios:topologie [2019/05/11 14:35] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Topologie ====== | ====== Topologie ====== | ||
+ | |||
+ | {{ :nagios:nagios.png |}} | ||
===== Configuration routeur ===== | ===== Configuration routeur ===== | ||
+ | |||
+ | ==== config simple ==== | ||
! | ! | ||
Ligne 18: | Ligne 22: | ||
no ip domain lookup | no ip domain lookup | ||
no ip dhcp use vrf connected | no ip dhcp use vrf connected | ||
- | ip dhcp excluded-address 10.0.0.1 | ||
ip dhcp excluded-address 192.168.64.1 | ip dhcp excluded-address 192.168.64.1 | ||
ip dhcp excluded-address 192.168.64.2 | ip dhcp excluded-address 192.168.64.2 | ||
Ligne 55: | Ligne 58: | ||
interface FastEthernet0/0 | interface FastEthernet0/0 | ||
ip address 192.168.56.2 255.255.255.0 | ip address 192.168.56.2 255.255.255.0 | ||
+ | no shutdown | ||
duplex auto | duplex auto | ||
speed auto | speed auto | ||
Ligne 60: | Ligne 64: | ||
interface FastEthernet1/0 | interface FastEthernet1/0 | ||
ip address 192.168.64.2 255.255.255.0 | ip address 192.168.64.2 255.255.255.0 | ||
+ | no shutdown | ||
duplex auto | duplex auto | ||
speed auto | speed auto | ||
Ligne 98: | Ligne 103: | ||
end | end | ||
+ | ==== Config avec trap snmp ==== | ||
+ | ! | ||
+ | version 12.4 | ||
+ | service timestamps debug datetime msec | ||
+ | service timestamps log datetime msec | ||
+ | no service password-encryption | ||
+ | ! | ||
+ | hostname Nagios_routeur | ||
+ | ! | ||
+ | boot-start-marker | ||
+ | boot-end-marker | ||
+ | ! | ||
+ | ! | ||
+ | no aaa new-model | ||
+ | memory-size iomem 5 | ||
+ | no ip icmp rate-limit unreachable | ||
+ | ! | ||
+ | ! | ||
+ | ip cef | ||
+ | no ip domain lookup | ||
+ | no ip dhcp use vrf connected | ||
+ | ip dhcp excluded-address 10.0.0.1 | ||
+ | ip dhcp excluded-address 192.168.64.1 | ||
+ | ip dhcp excluded-address 192.168.64.2 | ||
+ | ! | ||
+ | ip dhcp pool client | ||
+ | network 192.168.64.0 255.255.255.0 | ||
+ | dns-server 8.8.8.8 | ||
+ | default-router 192.168.64.2 | ||
+ | ! | ||
+ | ! | ||
+ | ip auth-proxy max-nodata-conns 3 | ||
+ | ip admission max-nodata-conns 3 | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ip tcp synwait-time 5 | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | interface FastEthernet0/0 | ||
+ | ip address 192.168.56.2 255.255.255.0 | ||
+ | duplex auto | ||
+ | speed auto | ||
+ | ! | ||
+ | interface FastEthernet1/0 | ||
+ | ip address 192.168.64.2 255.255.255.0 | ||
+ | duplex auto | ||
+ | speed auto | ||
+ | ! | ||
+ | no ip http server | ||
+ | no ip http secure-server | ||
+ | ! | ||
+ | ip forward-protocol nd | ||
+ | ip route 0.0.0.0 0.0.0.0 192.168.56.1 | ||
+ | ! | ||
+ | ! | ||
+ | snmp-server community communauteNagios RO | ||
+ | snmp-server trap-source FastEthernet1/0 | ||
+ | snmp-server location " Nagios_routeur " | ||
+ | snmp-server contact admin@toto.fr | ||
+ | snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart | ||
+ | snmp-server host 192.168.64.3 communauteNagios snmp | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | control-plane | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | line con 0 | ||
+ | exec-timeout 0 0 | ||
+ | privilege level 15 | ||
+ | logging synchronous | ||
+ | line aux 0 | ||
+ | exec-timeout 0 0 | ||
+ | privilege level 15 | ||
+ | logging synchronous | ||
+ | line vty 0 4 | ||
+ | login | ||
+ | ! | ||
+ | ! | ||
+ | end | ||