Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[net-snmp] Connection from UDP: [127.0.0.1]:34893 REFUSED
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
pmz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2006
Posts: 96
Location: Wroclaw, Poland

PostPosted: Mon Mar 27, 2006 7:32 pm    Post subject: [net-snmp] Connection from UDP: [127.0.0.1]:34893 REFUSED Reply with quote

Witam,

czytałem na forum i wiki wątki o mrtg. Postanowiłem spróbować tegoż u siebie... Wszystko byłoby ok, gdyby nie fakt, iż snmpd nie udostępnia mi danych (odrzuca połączenia). Próbowałem dwóch prezentowanych na forum i w sieci konfigów na których ludziom to podobno działa - bez skutku. Początkowo myślałem, że być może to wina firewalla, ale spójrzcie proszę na moją pierwszą regułkę w INPUT:
Code:
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  localhost            anywhere

Gdzie szukać jeszcze przyczyny? Niepokoi mnie fakt, iż na forum (anglojęzycznym) pojawił się podobny post, jednak pozostał bez odzewu... :-(

Przypominam, iż próbowałem obu konfigów snmpd.conf, tzn. tego:
Code:
com2sec local     127.0.0.1/32    public
com2sec local     10.10.10.0/24   public

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

jak i tego:
Code:
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

agentaddress localhost:161

syscontact  "root"
syscontact  root@localhost

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  private

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  public

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]


rocommunity  public

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  private

Na obu mam ten sam efekt w logach:
Code:
arrakis ~ # tail /var/log/net-snmpd.log
NET-SNMP version 5.2.1.2
Connection from UDP: [127.0.0.1]:34892 REFUSED
Connection from UDP: [127.0.0.1]:34892 REFUSED
Connection from UDP: [127.0.0.1]:34892 REFUSED
Connection from UDP: [127.0.0.1]:34892 REFUSED
Connection from UDP: [127.0.0.1]:34892 REFUSED
Connection from UDP: [127.0.0.1]:34892 REFUSED

W końcowym efekcie oczywiście nie mam wykresów, a za to pełno śmieci w postaci podobnych komunikatów:
Code:
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 1813541724
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ssCpuRawUser.0 ssCpuRawUser.0 sysUptime sysName on public@localhost::::::v4only
 at /usr/bin/mrtg line 1866
WARNING: skipping because at least the query for ssCpuRawUser.0 on  localhost did not succeed
WARNING: no data for ssCpuRawUser&ssCpuRawUser:public@localhost. Skipping further queries for Host localhost in this round.
ERROR: Target[localhost.cpu][_IN_] ' $target->[0]{$mode}  +  $target->[1]{$mode}  +  $target->[2]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 6) line 1.
ERROR: Target[localhost.cpu][_OUT_] ' $target->[0]{$mode}  +  $target->[1]{$mode}  +  $target->[2]{$mode} ' (warn): Use of uninitialized value in addition (+) at (eval 7) line 1.
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "public"
                 request ID: 143882839
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for sysUptime sysName on public@localhost
 at /usr/bin/mrtg line 524

Proszę o rady, bo google i forum jak dotąd nie znalazły lekarstwa. Ach, co do softu:
net-snmp-5.2.1.2-r1 a jądro: 2.6.15-gentoo-r1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum