Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam dzisiaj od rana probuje postawic serwer SNMP, niejako mi sie to udalo - sugerowalem sie opisem :
[url]http://www.debianhelp.co.uk/snmp.htm[/url]
snmpd zainstalował się poprawnie, konfig poprawiony, snmp zainstalował się poprawnie
kiedy wydaje polecenie snmpwalk -v 2c -c public localhost dostaje :
blazej@bask:~$ snmpwalk -v 2c -c public localhost SNMPv2-MIB::sysDescr.0 = STRING: Linux bask 2.6.24.7-router #9 SMP Sun Jul 20 21:52:21 CEST 2008 i686 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (337896) 0:56:18.96 SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf) SNMPv2-MIB::sysName.0 = STRING: bask SNMPv2-MIB::sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf) SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB. SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching. SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model. SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP. SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORUpTime.8 = No more variables left in this MIB View (It is past the end of the MIB tree)
natomiast gdy chciałbym uzyskać coś na temat ifOperstatus albo ifName jest lipa :
blazej@bask:~$ snmpwalk -v 2c -c public localhost ifOperstatus IF-MIB::ifOperStatus = No more variables left in this MIB View (It is past the end of the MIB tree)
IF-MIB::ifName = No more variables left in this MIB View (It is past the end of the MIB tree)
w /usr/share/snmp/mibs
bask:~# ls /usr/share/snmp/mibs AGENTX-MIB.txt OSPF-MIB.txt BGP4-MIB.txt OSPF-TRAP-MIB.txt BRIDGE-MIB.txt RFC1155-SMI.txt DISMAN-EVENT-MIB.txt RFC1213-MIB.txt DISMAN-SCHEDULE-MIB.txt RFC-1215.txt DISMAN-SCRIPT-MIB.txt RIPv2-MIB.txt EtherLike-MIB.txt RMON-MIB.txt GNOME-SMI.txt SMUX-MIB.txt HCNUM-TC.txt SNMP-COMMUNITY-MIB.txt HOST-RESOURCES-MIB.txt SNMP-FRAMEWORK-MIB.txt HOST-RESOURCES-TYPES.txt SNMP-MPD-MIB.txt IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt SNMP-NOTIFICATION-MIB.txt IANAifType-MIB.txt SNMP-PROXY-MIB.txt IANA-LANGUAGE-MIB.txt SNMP-TARGET-MIB.txt IANA-RTPROTO-MIB.txt SNMP-USER-BASED-SM-MIB.txt IF-INVERTED-STACK-MIB.txt SNMP-USM-AES-MIB.txt IF-MIB.txt SNMP-USM-DH-OBJECTS-MIB.txt INET-ADDRESS-MIB.txt SNMPv2-CONF.txt IP-FORWARD-MIB.txt SNMPv2-MIB.txt IP-MIB.txt SNMPv2-SMI.txt IPV6-ICMP-MIB.txt SNMPv2-TC.txt IPV6-MIB.txt SNMPv2-TM.txt IPV6-TCP-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt IPV6-TC.txt SOURCE-ROUTING-MIB.txt IPV6-UDP-MIB.txt TCP-MIB.txt LM-SENSORS-MIB.txt TRANSPORT-ADDRESS-MIB.txt NET-SNMP-AGENT-MIB.txt UCD-DEMO-MIB.txt NET-SNMP-EXAMPLES-MIB.txt UCD-DISKIO-MIB.txt NET-SNMP-EXTEND-MIB.txt UCD-DLMOD-MIB.txt NET-SNMP-MIB.txt UCD-IPFWACC-MIB.txt NET-SNMP-TC.txt UCD-SNMP-MIB.txt NET-SNMP-VACM-MIB.txt UDP-MIB.txt NOTIFICATION-LOG-MIB.txt bask:~# bask:~# ls /usr/share/snmp/mibs AGENTX-MIB.txt OSPF-MIB.txt BGP4-MIB.txt OSPF-TRAP-MIB.txt BRIDGE-MIB.txt RFC1155-SMI.txt DISMAN-EVENT-MIB.txt RFC1213-MIB.txt DISMAN-SCHEDULE-MIB.txt RFC-1215.txt DISMAN-SCRIPT-MIB.txt RIPv2-MIB.txt EtherLike-MIB.txt RMON-MIB.txt GNOME-SMI.txt SMUX-MIB.txt HCNUM-TC.txt SNMP-COMMUNITY-MIB.txt HOST-RESOURCES-MIB.txt SNMP-FRAMEWORK-MIB.txt HOST-RESOURCES-TYPES.txt SNMP-MPD-MIB.txt IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt SNMP-NOTIFICATION-MIB.txt IANAifType-MIB.txt SNMP-PROXY-MIB.txt IANA-LANGUAGE-MIB.txt SNMP-TARGET-MIB.txt IANA-RTPROTO-MIB.txt SNMP-USER-BASED-SM-MIB.txt IF-INVERTED-STACK-MIB.txt SNMP-USM-AES-MIB.txt IF-MIB.txt SNMP-USM-DH-OBJECTS-MIB.txt INET-ADDRESS-MIB.txt SNMPv2-CONF.txt IP-FORWARD-MIB.txt SNMPv2-MIB.txt IP-MIB.txt SNMPv2-SMI.txt IPV6-ICMP-MIB.txt SNMPv2-TC.txt IPV6-MIB.txt SNMPv2-TM.txt IPV6-TCP-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt IPV6-TC.txt SOURCE-ROUTING-MIB.txt IPV6-UDP-MIB.txt TCP-MIB.txt LM-SENSORS-MIB.txt TRANSPORT-ADDRESS-MIB.txt NET-SNMP-AGENT-MIB.txt UCD-DEMO-MIB.txt NET-SNMP-EXAMPLES-MIB.txt UCD-DISKIO-MIB.txt NET-SNMP-EXTEND-MIB.txt UCD-DLMOD-MIB.txt NET-SNMP-MIB.txt UCD-IPFWACC-MIB.txt NET-SNMP-TC.txt UCD-SNMP-MIB.txt NET-SNMP-VACM-MIB.txt UDP-MIB.txt NOTIFICATION-LOG-MIB.txt bask:~#
ma ktoś jakieś pomysły ? albo czy u niego po zainstalowaniu pakietu snmpd działą wszystko poprawnie ?
Offline
[tt]rozwiazanie :[/tt]
z paczka dostarczany jest zle skonfigurowany serwer. Konfig powinen wygladac tak :
# sec.name source community com2sec paranoid default public com2sec local localhost public #### # Second, map the security names into group names: # sec.model sec.name group MyRWGroup v1 local group MyROGroup v1 paranoid group MyRWGroup v2c local group MyROGroup v2c paranoid #### # Third, create a view for us to let the groups have rights to: view all included .1 80 view system included .iso.org.dod.internet.mgmt.mib-2.system #### # Finally, grant the 2 groups access to the 1 view with different # write permissions: # context sec.model sec.level match read write notif access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none
Offline
zatem jezeli nie jest to poprawione w najswiezszej paczce i nie ma juz zgoszenia to powinenes takie otworzyc w systemie sledzenia bledow Debiana ...
Offline
w defaultowym konfigu wystarczy poprawic te linie
access MyROSystem "" any noauth exact system none none
na
access MyROSystem "" any noauth exact all none none
bercik nie bede tego nigdzie zglaszal, byc moze ten zabieg jest przeprowadzony w jakims konkretnym celu przez osoby przygotowywujace paczki dla debiana - nie siedze jeszcze wystarczajaco dobrze w temacie... jak sie rozeznam i stwierdze ze to co zrobili jest do niczego nikomu nie potrzebne wtedy zglosze.
Ostatnio edytowany przez bliss (2010-01-11 09:52:22)
Offline
Time (s) | Query |
---|---|
0.00008 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00077 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.142.210.173' WHERE u.id=1 |
0.00070 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.142.210.173', 1732613759) |
0.00050 | SELECT * FROM punbb_online WHERE logged<1732613459 |
0.00050 | SELECT topic_id FROM punbb_posts WHERE id=138132 |
0.00008 | SELECT id FROM punbb_posts WHERE topic_id=15896 ORDER BY posted |
0.00053 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=15896 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00181 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=15896 ORDER BY p.id LIMIT 0,25 |
0.00103 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=15896 |
Total query time: 0.0061 s |