:-) "PiLou" <piloult@gmail.com> wrote in message news:g1kevc$1jl$1@trimpas.omnitel.net... > tas pats.. is ten pat tik truputi protingesnis bandau tapti > > bash wrote: > > Pilou is buvusio techo? :-) > > > > > > "PiLou" <piloult@gmail.com> wrote in message > > news:g1kd6t$vir$1@trimpas.omnitel.net... > >> padekit visi rrdtoolsu fanai ir kurie buvo ar tebesusiduria. > >> turiu bedu su snmp protokolu. > >> grazhiai prasiinstaliuoja per synaptic pm @ ubuntu hardy heron (8.04). > >> > >> step1 > >> /etc/default/ atidarau snmpd, jame pasikoreguoju info > >> > >> export MIBDIRS=/usr/share/snmp/mibs > >> SNMPDRUN=yes > >> SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid' > >> TRAPDRUN=no > >> TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' > >> SNMPDCOMPAT=yes > >> > >> (is 3 eilutes dingo po *.pid "127.0.0.1" lohalhosto ip) > >> > >> step2 > >> pakoreguoju /etc/snmp/snmpd.conf > >> > >> com2sec readonly localhost manocommunity > >> rocommunity manocommunity > >> > >> step3 > >> netstat -nl > >> > >> Active Internet connections (only servers) > >> Proto Recv-Q Send-Q Local Address Foreign Address State > >> udp 0 0 0.0.0.0:161 0.0.0.0:* > >> > >> atrodo veikia.. > >> > >> step4 > >> ps -ef|grep snmp > >> > >> snmp 6207 1 0 22:03 ? 00:00:00 /usr/sbin/snmpd -Lsd -Lf > >> /dev/null -u snmp -I -smux -p /var/run/snmpd.pid > >> pilou 10075 8589 0 22:24 pts/0 00:00:00 grep snmp > >> > >> (pakomentuokit kas cia vyksta ir ka matau, eilute kopinta is tutorialo be > >> komentaru) > >> > >> step5 > >> shiuo metu: > >> snmpwalk -v 1 -c public localhost system > >> Timeout: No Response from localhost > >> > >> buvo variantu ir tokiu, tachiau galutines prasmes nieko nekeichia: > >> snmpwalk -v 1 -c public localhost system > >> sysDescr.0 = STRING: Linux HostNameOfMyPC 2.6.24-16-generic #1 SMP Thu Apr > >> 10 13:23:42 UTC 2008 i686 > >> sysObjectID.0 = OID: netSnmpAgentOIDs.10 > >> sysUpTimeInstance = Timeticks: (607358) 1:41:13.58 > >> sysContact.0 = STRING: Root <root@localhost> (configure > >> /etc/snmp/snmpd.local.conf) > >> sysName.0 = STRING: HostNameOfMyPC > >> sysLocation.0 = STRING: Unknown (configure /etc/snmp/snmpd.local.conf) > >> sysORLastChange.0 = Timeticks: (14) 0:00:00.14 > >> sysORID.1 = OID: snmpFrameworkMIBCompliance > >> sysORID.2 = OID: snmpMPDCompliance > >> sysORID.3 = OID: usmMIBCompliance > >> sysORID.4 = OID: snmpMIB > >> sysORID.5 = OID: tcpMIB > >> sysORID.6 = OID: ip > >> sysORID.7 = OID: udpMIB > >> sysORID.8 = OID: vacmBasicGroup > >> sysORDescr.1 = STRING: The SNMP Management Architecture MIB. > >> sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching. > >> sysORDescr.3 = STRING: The management information definitions for the SNMP > >> User-based Security Model. > >> sysORDescr.4 = STRING: The MIB module for SNMPv2 entities > >> sysORDescr.5 = STRING: The MIB module for managing TCP implementations > >> sysORDescr.6 = STRING: The MIB module for managing IP and ICMP > >> implementations > >> sysORDescr.7 = STRING: The MIB module for managing UDP implementations > >> sysORDescr.8 = STRING: View-based Access Control Model for SNMP. > >> sysORUpTime.1 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.2 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.3 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.4 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.5 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.6 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.7 = Timeticks: (14) 0:00:00.14 > >> sysORUpTime.8 = Timeticks: (14) 0:00:00.14 > >> End of MIB > >> > >> step6 > >> mib=ssCpuUser > >> oid=1.3.6.1.4.1.2021.11.9 > >> > >> snmpwalk -Os -c public -v 1 localhost 1.3.6.1.4.1.2021.11.9 > >> End of MIB > >> cia visas MIB aprashymas ar tiesiog jo nera? > >> > >> snmpget -v 1 -r 1 localhost -c public ssCpuUser > >> Timeout: No Response from localhost. > >> > >> KLAUSIMAS: kaip aktyvuoti snmp ir kaip pasiekti norima MIB parametra? > >> dekui > > > >