Date: Fri, 28 Jul 2006 14:31:54 -0700 From: James Long <list@museum.rain.com> To: freebsd-questions@freebsd.org Subject: bsnmpd: send: Connection refused Message-ID: <20060728213154.GA63725@ns.museum.rain.com>
next in thread | raw e-mail | index | archive | help
I'm trying to implement the bsnmpd service on one of my machines. In rc.conf I have: # run the bsnmpd daemon, with debugging bsnmpd_enable="YES" bsnmpd_flags="-c /etc/snmpd-test.config -d -D dump" In hosts.allow, very near the top, I have: bsnmpd : ALL : allow Here is the diff of the sample config file versus my own: # diff -u /etc/snmpd.config /etc/snmpd-test.config --- /etc/snmpd.config Tue May 16 14:27:01 2006 +++ /etc/snmpd-test.config Fri Jul 28 14:27:28 2006 @@ -6,9 +6,9 @@ # # Set some common variables # -host := foobar -location := "Room 200" -contact := "sysmeister@example.com" +host := localhost +location := "right here" +contact := "system@localhost" system := 1 # FreeBSD traphost := localhost trapport := 162 @@ -43,7 +43,7 @@ begemotSnmpdCommunityDisable = 1 # open standard SNMP ports -begemotSnmpdPortStatus.[$(host)].161 = 1 +#begemotSnmpdPortStatus.[$(host)].161 = 1 begemotSnmpdPortStatus.127.0.0.1.161 = 1 # open a unix domain socket When I start bsnmpd, I get # /etc/rc.d/bsnmpd start Starting bsnmpd. snmpd[5474]: send: Connection refused ^C# What is causing the "Connection refused" message? The freebsd-questions archive yields no hits on "snmpd AND refused" nor "bsnmpd AND refused" # sockstat | grep bsnmpd root bsnmpd 5482 3 udp4 127.0.0.1:57050 127.0.0.1:162 root bsnmpd 5482 5 udp4 *:* *:* root bsnmpd 5482 6 udp4 127.0.0.1:161 *:* root bsnmpd 5482 7 stream /var/run/snmpd.sock root bsnmpd 5482 8 dgram -> /var/run/logpriv I am also seeing a timeout error when trying to connect to query the bsnmpd daemon, but I won't worry about this until the "Connection refused" message goes away. # snmpwalk -c public localhost snmpwalk: Timeout Thank you!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060728213154.GA63725>