====== Topologie ======

{{ :nagios:nagios.png |}}

===== Configuration routeur =====

==== config simple ====

!
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 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
no shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.64.2 255.255.255.0
no shutdown
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
!
!
!
!
!
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

==== 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

 
nagios/topologie.txt · Dernière modification: 2019/05/11 14:35 (modification externe)     Haut de page