Soir all,
j’ai deux pc, un sous Windows et l’autre sous Debian Etch.
J’ai installé Cacti et toutes les dépendances sur la debian et j’ai installé le service SNMP sous Windows…
Le service est démarré, il est configuré en Public pour la communauté et en LECTURE SEULE.
Le problème est que je n’arrive pas à obtenir les graphs du pc1 à partir du pc2…
SNMP error en rouge…
Quelques informations :
dans hosts :
[code]192.168.1.2 localhost
127.0.0.1 support-csssource.net localhost Alpha
192.168.1.4 support-csssource.net Alpha Alpha
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts[/code]
dans hosts.allow :
dans hosts.deny :
snmpwalk -v1 -c public localhost :
snmpwalk -v1 -c public 192.168.1.2
snmpwalk -v1 -c public 192.168.1.4
SNMPv2-MIB::sysDescr.0 = STRING: Linux Alpha 2.6.18-6-486 #1 Thu Oct 9 15:23:10 UTC 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (35046) 0:05:50.46
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysName.0 = STRING: Alpha
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (12) 0:00:00.12
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (13) 0:00:00.13
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (13) 0:00:00.13
End of MIB
snmpwalk -V
Pour ajouter le pc1 dans cacti, j’ai fait :
Management >> Devices >> Add :
Description : Mon pc windows
hostname : 192.168.1.2
hos Template : Windows 2000 / XP host
SNMP community : public
Version 1
SNMP port 161
iptables -L :
[quote]Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp – anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN 0 – anywhere anywhere[/quote]
Merci d’avance