Re: bsnmpd + zfs
2009/11/30 Gergely CZUCZY > Hello, > > I've read in the 8.0 detailed release notes [1] that bsnmpd(1) now > supports ZFS OIDs. So far i wasn't able to lure this support out of it, > and I'm neither able to find any information on this in its manual or > among the MIB files, or in the complete snmp walk of the host. > > I've enabled mbII nad hostres, and haven't seen any more modules that > could be related in the example config, nor among /usr/lib/snmp_*.so. > > Could someone tell me please how to monitor a ZFS system on 8 using > bsnmpd, what am I missing here? > > [1] http://www.freebsd.org/releases/8.0R/relnotes-detailed.html#USERLAND > > (I've CC'd harti@ because he's the author according to bsnmpd(1) ) > > -- > Sincerely, > Gergely CZUCZY > Harmless Digital Bt > > +36-30-9702963 > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscr...@freebsd.org" > I saw that and thought something similar. All I could find though is when you can browse the fs on the box it now reports the fs as 'zfs' rather than 'other', useful but not that exciting 8( ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
bsnmpd + zfs
Hello, I've read in the 8.0 detailed release notes [1] that bsnmpd(1) now supports ZFS OIDs. So far i wasn't able to lure this support out of it, and I'm neither able to find any information on this in its manual or among the MIB files, or in the complete snmp walk of the host. I've enabled mbII nad hostres, and haven't seen any more modules that could be related in the example config, nor among /usr/lib/snmp_*.so. Could someone tell me please how to monitor a ZFS system on 8 using bsnmpd, what am I missing here? [1] http://www.freebsd.org/releases/8.0R/relnotes-detailed.html#USERLAND (I've CC'd harti@ because he's the author according to bsnmpd(1) ) -- Sincerely, Gergely CZUCZY Harmless Digital Bt +36-30-9702963 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
>> 2) Is there anyway to enable these two options during make without >> editing the Makefile? >> > 2. The easiest way is to set the define upon running make > > [/usr/ports/net-mgmt/net-snmp]$ make -DWITH_MFD_REWRITES install clean Thanks Steve, I actually tried that before posting but thought I made something wrong since I couldn't spot that command in the output. A vimdiff between that output and a regular make, shows significant differences though so I assume everything is alright. Thanks again for helping me solve this irritating problem I've had for so long. /Morgan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Morgan Wesström wrote: So I have two questions: 1) Is --with-mib-modules=if-mib already covered in the Makefile? I can see the parameter but it refers to a variable I don't know the contents of. The variable seems to refer to the build option NET_SNMP_MIB_MODULES which is mentioned at the beginning of the compile process but I don't know how to use it or its initial value. 2) Is there anyway to enable these two options during make without editing the Makefile? Regards Morgan 1. Yes, --with-mib-modules=if-mib is automatically appended to the list of mib modules when you set the WITH_MFD_REWRITES define. 2. The easiest way is to set the define upon running make [/usr/ports/net-mgmt/net-snmp]$ make -DWITH_MFD_REWRITES install clean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Thu, Apr 30, 2009 at 9:39 AM, Steve Bertrand wrote: > I see now what you are saying: > > # sockstat -l4 > > root bsnmpd 2857 5 udp4 *:* *:* > root bsnmpd 2857 6 udp4 127.0.0.1:161 *:* > root bsnmpd 2857 7 udp4 208.70.106.1:161 *:* > > I don't think I've ever seen a "*.*" in the local addr field before. > > Steve > Received a reply from the author: "I think this is the socket that the snmp_mibII module opens to communicate via ioctls with the network stack. It is unbound, so it cannot and does not receive traffic. This should be no problem." - Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Maxim Khitrov wrote: > On Thu, Apr 30, 2009 at 9:20 AM, Steve Bertrand wrote: >> Maxim Khitrov wrote: >>> On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz wrote: >>>> I cant speak to the documentation, but this seems to limit it to listening >>>> on a single address: >>>> >>>> Example.. >>>> >>>> # open standard SNMP ports >>>> begemotSnmpdPortStatus.192.168.2.254.161 = 1 >>> Thanks, but I tried this already. It causes bsnmpd to listen on the >>> given IP as well, but doesn't remove the *:* entry: >>> >>> r...@gw1 [/root]# sockstat -l4 >>> USER   COMMAND   PID  FD PROTO  LOCAL ADDRESS     FOREIGN >>> ADDRESS >>> root   bsnmpd   61251 4  udp4  *:*          *:* >>> root   bsnmpd   61251 5  udp4  127.0.0.1:161     *:* >>> >>> The author suggested using "begemotSnmpdPortTable.0.0.0.0.161 = 1" and >>> change the IP there, but this causes the following error: >>> >>> Apr 30 08:59:59 gw1 snmpd[78798]: unknown variable >>> Apr 30 08:59:59 gw1 snmpd[78798]:  in file /usr/local/etc/bsnmpd.conf >>> line 20 >>> Apr 30 08:59:59 gw1 snmpd[78798]: error in config file >> Here's how I limit to a single address: >> >> host := 208.70.106.1 >> >> # open standard SNMP ports >> begemotSnmpdPortStatus.[$(host)].161 = 1 >> begemotSnmpdPortStatus.127.0.0.1.161 = 1 >> >> # netstat -na | grep 161 >> udp4    0    0  208.70.106.1.161    *.* >> udp4    0    0  127.0.0.1.161      *.* > > Doesn't work for me, the grep command removes *:* entry from the output: > > r...@gw1 [/root]# netstat -an > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address(state) > udp4 0 0 127.0.0.1.161 *.* > udp4 0 0 *.**.* > > > The 127.0.0.1 entry is added with > "begemotSnmpdPortStatus.127.0.0.1.161 = 1", but the other entry is > always there. Turn the daemon on and off to verify that it's bsnmpd > (or use sockstat). I see now what you are saying: # sockstat -l4 root bsnmpd 2857 5 udp4 *:* *:* root bsnmpd 2857 6 udp4 127.0.0.1:161 *:* root bsnmpd 2857 7 udp4 208.70.106.1:161 *:* I don't think I've ever seen a "*.*" in the local addr field before. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Thu, Apr 30, 2009 at 9:20 AM, Steve Bertrand wrote: > Maxim Khitrov wrote: >> On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz wrote: > >>> I cant speak to the documentation, but this seems to limit it to listening >>> on a single address: >>> >>> Example.. >>> >>> # open standard SNMP ports >>> begemotSnmpdPortStatus.192.168.2.254.161 = 1 >> >> Thanks, but I tried this already. It causes bsnmpd to listen on the >> given IP as well, but doesn't remove the *:* entry: >> >> r...@gw1 [/root]# sockstat -l4 >> USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS >> root bsnmpd 61251 4 udp4 *:* *:* >> root bsnmpd 61251 5 udp4 127.0.0.1:161 *:* >> >> The author suggested using "begemotSnmpdPortTable.0.0.0.0.161 = 1" and >> change the IP there, but this causes the following error: >> >> Apr 30 08:59:59 gw1 snmpd[78798]: unknown variable >> Apr 30 08:59:59 gw1 snmpd[78798]: in file /usr/local/etc/bsnmpd.conf line >> 20 >> Apr 30 08:59:59 gw1 snmpd[78798]: error in config file > > Here's how I limit to a single address: > > host := 208.70.106.1 > > # open standard SNMP ports > begemotSnmpdPortStatus.[$(host)].161 = 1 > begemotSnmpdPortStatus.127.0.0.1.161 = 1 > > # netstat -na | grep 161 > udp4 0 0 208.70.106.1.161 *.* > udp4 0 0 127.0.0.1.161 *.* Doesn't work for me, the grep command removes *:* entry from the output: r...@gw1 [/root]# netstat -an Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address(state) udp4 0 0 127.0.0.1.161 *.* udp4 0 0 *.**.* The 127.0.0.1 entry is added with "begemotSnmpdPortStatus.127.0.0.1.161 = 1", but the other entry is always there. Turn the daemon on and off to verify that it's bsnmpd (or use sockstat). - Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Maxim Khitrov wrote: > On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz wrote: >> I cant speak to the documentation, but this seems to limit it to listening >> on a single address: >> >> Example.. >> >> # open standard SNMP ports >> begemotSnmpdPortStatus.192.168.2.254.161 = 1 > > Thanks, but I tried this already. It causes bsnmpd to listen on the > given IP as well, but doesn't remove the *:* entry: > > r...@gw1 [/root]# sockstat -l4 > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > root bsnmpd 61251 4 udp4 *:* *:* > root bsnmpd 61251 5 udp4 127.0.0.1:161 *:* > > The author suggested using "begemotSnmpdPortTable.0.0.0.0.161 = 1" and > change the IP there, but this causes the following error: > > Apr 30 08:59:59 gw1 snmpd[78798]: unknown variable > Apr 30 08:59:59 gw1 snmpd[78798]: in file /usr/local/etc/bsnmpd.conf line 20 > Apr 30 08:59:59 gw1 snmpd[78798]: error in config file Here's how I limit to a single address: host := 208.70.106.1 # open standard SNMP ports begemotSnmpdPortStatus.[$(host)].161 = 1 begemotSnmpdPortStatus.127.0.0.1.161 = 1 # netstat -na | grep 161 udp4 0 0 208.70.106.1.161 *.* udp4 0 0 127.0.0.1.161 *.* Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz wrote: > Maxim Khitrov wrote: >> >> On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov >> wrote: >>> >>> On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote: >>> MK> I'm setting up a firewall and would like to monitor certain system >>> MK> parameters like network, cpu, and memory usage. SNMP is an obvious >>> MK> choice to do the monitoring and I'm planning to set up rrdtool to >>> MK> generate graphs of captured data. The question is what SNMP agent to >>> MK> use. I found net-snmp and bsnmpd (which is included in the base >>> MK> system). Has anyone here used both implementations, and if so, what >>> MK> are the basic differences? >>> >>> main difference is the set of supported MIBs. >>> >>> In general net-snmp supports more MIBs than bsnmpd. >>> >>> E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring >>> pf(4), >>> UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU >>> load >>> (ssCpuRaw* counters). >> >> Is there any other documentation to bsnmpd besides the one man page? >> I'm trying to figure how to configure the daemon (first task is stop >> it from listening on *:*), but besides the man page and few comments >> in /etc/snmpd.config there is no other information that I can find. >> >> - Max > > I cant speak to the documentation, but this seems to limit it to listening > on a single address: > > Example.. > > # open standard SNMP ports > begemotSnmpdPortStatus.192.168.2.254.161 = 1 Thanks, but I tried this already. It causes bsnmpd to listen on the given IP as well, but doesn't remove the *:* entry: r...@gw1 [/root]# sockstat -l4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root bsnmpd 61251 4 udp4 *:* *:* root bsnmpd 61251 5 udp4 127.0.0.1:161 *:* The author suggested using "begemotSnmpdPortTable.0.0.0.0.161 = 1" and change the IP there, but this causes the following error: Apr 30 08:59:59 gw1 snmpd[78798]: unknown variable Apr 30 08:59:59 gw1 snmpd[78798]: in file /usr/local/etc/bsnmpd.conf line 20 Apr 30 08:59:59 gw1 snmpd[78798]: error in config file - Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Maxim Khitrov wrote: On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov wrote: On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote: MK> I'm setting up a firewall and would like to monitor certain system MK> parameters like network, cpu, and memory usage. SNMP is an obvious MK> choice to do the monitoring and I'm planning to set up rrdtool to MK> generate graphs of captured data. The question is what SNMP agent to MK> use. I found net-snmp and bsnmpd (which is included in the base MK> system). Has anyone here used both implementations, and if so, what MK> are the basic differences? main difference is the set of supported MIBs. In general net-snmp supports more MIBs than bsnmpd. E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring pf(4), UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU load (ssCpuRaw* counters). Is there any other documentation to bsnmpd besides the one man page? I'm trying to figure how to configure the daemon (first task is stop it from listening on *:*), but besides the man page and few comments in /etc/snmpd.config there is no other information that I can find. - Max I cant speak to the documentation, but this seems to limit it to listening on a single address: Example.. # open standard SNMP ports begemotSnmpdPortStatus.192.168.2.254.161 = 1 Regards, Brandon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
> net-snmp has no problems providing 64-bit counters (interface and > disk). You must build it with -DWITH_MFD_REWRITES (passes > --with-mfd-rewrites to ./configure). I do not know why this is not the > default. It works just fine. I also have a PR open to make this define > a ports 'make config' option (therefore a persistent setting), but the > maintainer has ignored this. > This post caught my attention because I've had a 64 bit -> 32 bit truncation error in my SNMP logs since I installed net-snmp on my AMD64 a year ago. I was unable to figure out how to add -DWITH_MFD_REWRITES to make so I ended up editing the Makefile and added --enable-mfd-rewrites (the compile told me --with-mfd-rewrites had been replace by --enable-mfd-rewrites). My error messages now seems to have disappeared so I'm extremely happy. I later found the following info in NEWS: Solaris, FreeBSD, OpenBSD: - Experimental support for 64bit interface counters (ifXTable). Enable via '--with-mib-modules=if-mib --enable-mfd-rewrites'. So I have two questions: 1) Is --with-mib-modules=if-mib already covered in the Makefile? I can see the parameter but it refers to a variable I don't know the contents of. The variable seems to refer to the build option NET_SNMP_MIB_MODULES which is mentioned at the beginning of the compile process but I don't know how to use it or its initial value. 2) Is there anyway to enable these two options during make without editing the Makefile? Regards Morgan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov wrote: > On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote: > MK> I'm setting up a firewall and would like to monitor certain system > MK> parameters like network, cpu, and memory usage. SNMP is an obvious > MK> choice to do the monitoring and I'm planning to set up rrdtool to > MK> generate graphs of captured data. The question is what SNMP agent to > MK> use. I found net-snmp and bsnmpd (which is included in the base > MK> system). Has anyone here used both implementations, and if so, what > MK> are the basic differences? > > main difference is the set of supported MIBs. > > In general net-snmp supports more MIBs than bsnmpd. > > E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring pf(4), > UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU load > (ssCpuRaw* counters). Is there any other documentation to bsnmpd besides the one man page? I'm trying to figure how to configure the daemon (first task is stop it from listening on *:*), but besides the man page and few comments in /etc/snmpd.config there is no other information that I can find. - Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Monday 27 April 2009 20:19:33 Anton Yuzhaninov wrote: > On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote: > MK> I'm setting up a firewall and would like to monitor certain system > MK> parameters like network, cpu, and memory usage. SNMP is an obvious > MK> choice to do the monitoring and I'm planning to set up rrdtool to > MK> generate graphs of captured data. The question is what SNMP agent to > MK> use. I found net-snmp and bsnmpd (which is included in the base > MK> system). Has anyone here used both implementations, and if so, what > MK> are the basic differences? > > main difference is the set of supported MIBs. > > In general net-snmp supports more MIBs than bsnmpd. > > E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring > pf(4), UCD-SNMP-MIB supported only by net-snmp and useful for monitoring > CPU load (ssCpuRaw* counters). There is the GoC 2008 project: % cat /usr/ports/net-mgmt/bsnmp-ucd/pkg-descr bsnmp-ucd is a module for bsnmpd which allows you to get memory, load average, cpu utilization and other system statistics. It implements parts of UCD-SNMP-MIB for this. WWW: http://bsnmp-ucd.googlecode.com/ Author: Mikolaj Golub Maybe if more people started testing/using this, it could some day be in base. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Steve Polyack wrote: > Steve Bertrand wrote: >> Maxim Khitrov wrote: >> >>> Hello all, >>> >>> I'm setting up a firewall and would like to monitor certain system >>> parameters like network, cpu, and memory usage. SNMP is an obvious >>> choice to do the monitoring and I'm planning to set up rrdtool to >>> generate graphs of captured data. The question is what SNMP agent to >>> use. I found net-snmp and bsnmpd (which is included in the base >>> system). Has anyone here used both implementations, and if so, what >>> are the basic differences? >>> >> >> I use bsnmpd, because I couldn't measure 64-bit counters otherwise. >> >> > net-snmp has no problems providing 64-bit counters (interface and > disk). You must build it with -DWITH_MFD_REWRITES (passes > --with-mfd-rewrites to ./configure). I do not know why this is not the > default. It works just fine. I also have a PR open to make this define > a ports 'make config' option (therefore a persistent setting), but the > maintainer has ignored this. I did not know this. Thanks for the heads-up! Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Steve Bertrand wrote: Maxim Khitrov wrote: Hello all, I'm setting up a firewall and would like to monitor certain system parameters like network, cpu, and memory usage. SNMP is an obvious choice to do the monitoring and I'm planning to set up rrdtool to generate graphs of captured data. The question is what SNMP agent to use. I found net-snmp and bsnmpd (which is included in the base system). Has anyone here used both implementations, and if so, what are the basic differences? I use bsnmpd, because I couldn't measure 64-bit counters otherwise. net-snmp has no problems providing 64-bit counters (interface and disk). You must build it with -DWITH_MFD_REWRITES (passes --with-mfd-rewrites to ./configure). I do not know why this is not the default. It works just fine. I also have a PR open to make this define a ports 'make config' option (therefore a persistent setting), but the maintainer has ignored this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
On Mon, 27 Apr 2009 12:28:01 -0400, Maxim Khitrov wrote: MK> I'm setting up a firewall and would like to monitor certain system MK> parameters like network, cpu, and memory usage. SNMP is an obvious MK> choice to do the monitoring and I'm planning to set up rrdtool to MK> generate graphs of captured data. The question is what SNMP agent to MK> use. I found net-snmp and bsnmpd (which is included in the base MK> system). Has anyone here used both implementations, and if so, what MK> are the basic differences? main difference is the set of supported MIBs. In general net-snmp supports more MIBs than bsnmpd. E. g. BEGEMOT-PF-MIB supported only by bsnmpd and useful for monitoring pf(4), UCD-SNMP-MIB supported only by net-snmp and useful for monitoring CPU load (ssCpuRaw* counters). -- Anton Yuzhaninov ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd vs net-snmp
Maxim Khitrov wrote: > Hello all, > > I'm setting up a firewall and would like to monitor certain system > parameters like network, cpu, and memory usage. SNMP is an obvious > choice to do the monitoring and I'm planning to set up rrdtool to > generate graphs of captured data. The question is what SNMP agent to > use. I found net-snmp and bsnmpd (which is included in the base > system). Has anyone here used both implementations, and if so, what > are the basic differences? I use bsnmpd, because I couldn't measure 64-bit counters otherwise. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
bsnmpd vs net-snmp
Hello all, I'm setting up a firewall and would like to monitor certain system parameters like network, cpu, and memory usage. SNMP is an obvious choice to do the monitoring and I'm planning to set up rrdtool to generate graphs of captured data. The question is what SNMP agent to use. I found net-snmp and bsnmpd (which is included in the base system). Has anyone here used both implementations, and if so, what are the basic differences? Thanks, Max ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
В Wed, 8 Apr 2009 10:18:13 -0400 alexus пишет: > 2009/4/8 Festin Alexander : > > В Mon, 6 Apr 2009 16:08:32 -0400 > > alexus пишет: > > > >> On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin > >> wrote: > >> > All out of ideas. try with a script...maybe, i dnt know. > >> > > >> > >> I understand there is always that way, but I'd like to figure out > >> the proper way > >> > > > > How about to put some "echo" or "logger" into /etc/rc.d/bsnmpd for > > tracing script? > > > > I use bsnmpd and have no troubles. > > have you used it inside of jail? or in host environment? as i > mentioned earlier it works fine in host, but not in jail... hmm... I missed that. My works In host environment. > > > > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
2009/4/8 Festin Alexander : > В Mon, 6 Apr 2009 16:08:32 -0400 > alexus пишет: > >> On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin >> wrote: >> > All out of ideas. try with a script...maybe, i dnt know. >> > >> >> I understand there is always that way, but I'd like to figure out the >> proper way >> > > How about to put some "echo" or "logger" into /etc/rc.d/bsnmpd for > tracing script? > > I use bsnmpd and have no troubles. have you used it inside of jail? or in host environment? as i mentioned earlier it works fine in host, but not in jail... > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
В Mon, 6 Apr 2009 16:08:32 -0400 alexus пишет: > On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin > wrote: > > All out of ideas. try with a script...maybe, i dnt know. > > > > I understand there is always that way, but I'd like to figure out the > proper way > How about to put some "echo" or "logger" into /etc/rc.d/bsnmpd for tracing script? I use bsnmpd and have no troubles. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, Apr 6, 2009 at 5:08 PM, Anton Yuzhaninov wrote: > On Mon, 6 Apr 2009 14:19:27 -0400, alexus wrote: > a> I have bsnmpd enabled in rc.conf > a> > a> > a> r...@lama ~ 501$ grep ^b /etc/rc.conf > a> bsnmpd_enable="YES" > a> r...@lama ~ 502$ > a> > a> yet, whenever I restart my computer, it won't start on boot, but if I > a> run manual command > a> > a> /etc/rc.d/bsnmpd start > a> > a> it starts fine no problem > a> > > May be you have some broken script in /usr/local/etc/rc.d/ > > Try to add > rc_debug="YES" to /etc/rc.conf > > reboot, and see in logs which script was started > > -- > Anton Yuzhaninov > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > it seems to be running on boot as it suppose only in host environment and not in jail, although as i mentioned before it can be run manually. -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, 6 Apr 2009 14:19:27 -0400, alexus wrote: a> I have bsnmpd enabled in rc.conf a> a> a> r...@lama ~ 501$ grep ^b /etc/rc.conf a> bsnmpd_enable="YES" a> r...@lama ~ 502$ a> a> yet, whenever I restart my computer, it won't start on boot, but if I a> run manual command a> a> /etc/rc.d/bsnmpd start a> a> it starts fine no problem a> May be you have some broken script in /usr/local/etc/rc.d/ Try to add rc_debug="YES" to /etc/rc.conf reboot, and see in logs which script was started -- Anton Yuzhaninov ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin wrote: > All out of ideas. try with a script...maybe, i dnt know. > I understand there is always that way, but I'd like to figure out the proper way -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, Apr 6, 2009 at 3:29 PM, Vasadi I. Claudiu Florin wrote: >> 2) if that would be incorrect i wouldn't be able to run it manually > > Yes, your right, my mistake. > So first of all, are you positive that, at startup, there are no lines, even > vagli, related to bsnmpd ? Errors... nothing ? yes, I'm 100% positive. I just restart it now $ grep -i snmp /var/log/all.log $ > Second, I'm all out of ideas, except to create a second script and use that. > You could use it from rc.conf (the second script). > -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
2) if that would be incorrect i wouldn't be able to run it manually Yes, your right, my mistake. So first of all, are you positive that, at startup, there are no lines, even vagli, related to bsnmpd ? Errors... nothing ? Second, I'm all out of ideas, except to create a second script and use that. You could use it from rc.conf (the second script). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
I guess I could put something in either /usr/local/etc/rc.d to kick /etc/rc.d/bsnmpd script or maybe even put it in /etc/rc.local, but that wouldn't be right way to go, as this should work from /etc/rc.conf by itself... Yeah, it should. Did you check the execution bit on the script ? Is it set ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, Apr 6, 2009 at 3:08 PM, Vasadi I. Claudiu Florin wrote: > hmm how about trying to make your own script that starts bsnmpd ? > try it. does it work ?> > I guess I could put something in either /usr/local/etc/rc.d to kick /etc/rc.d/bsnmpd script or maybe even put it in /etc/rc.local, but that wouldn't be right way to go, as this should work from /etc/rc.conf by itself... -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
hmm how about trying to make your own script that starts bsnmpd ? try it. does it work ?> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, Apr 6, 2009 at 2:46 PM, Vasadi I. Claudiu Florin wrote: > On Mon, 06 Apr 2009 21:41:07 +0300, alexus wrote: > >> feel free to take a look, script located at /etc/rc.d/bsnmpd, it's >> very simple script all it does it runs /usr/sbin/bsnmpd that's it > > Indeed, very simplistic script. > > So I also did bsnmpd_enable="YES" in rc.conf and after a reboot and it > works. So maybe check logs, console, etc > there is nothing in logs -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, 06 Apr 2009 21:41:07 +0300, alexus wrote: feel free to take a look, script located at /etc/rc.d/bsnmpd, it's very simple script all it does it runs /usr/sbin/bsnmpd that's it Indeed, very simplistic script. So I also did bsnmpd_enable="YES" in rc.conf and after a reboot and it works. So maybe check logs, console, etc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
feel free to take a look, script located at /etc/rc.d/bsnmpd, it's very simple script all it does it runs /usr/sbin/bsnmpd that's it On Mon, Apr 6, 2009 at 2:21 PM, Vasadi I. Claudiu Florin wrote: > On Mon, 06 Apr 2009 21:19:27 +0300, alexus wrote: > >> Hello, >> >> I have bsnmpd enabled in rc.conf >> >> >> r...@lama ~ 501$ grep ^b /etc/rc.conf >> bsnmpd_enable="YES" >> r...@lama ~ 502$ >> >> yet, whenever I restart my computer, it won't start on boot, but if I >> run manual command >> >> /etc/rc.d/bsnmpd start >> >> it starts fine no problem >> >> > > > If I were you, I would first have a look at that startup script just to see > what exactly it is that it's doing. > -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On Mon, 06 Apr 2009 21:19:27 +0300, alexus wrote: Hello, I have bsnmpd enabled in rc.conf r...@lama ~ 501$ grep ^b /etc/rc.conf bsnmpd_enable="YES" r...@lama ~ 502$ yet, whenever I restart my computer, it won't start on boot, but if I run manual command /etc/rc.d/bsnmpd start it starts fine no problem If I were you, I would first have a look at that startup script just to see what exactly it is that it's doing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
bsnmpd
Hello, I have bsnmpd enabled in rc.conf r...@lama ~ 501$ grep ^b /etc/rc.conf bsnmpd_enable="YES" r...@lama ~ 502$ yet, whenever I restart my computer, it won't start on boot, but if I run manual command /etc/rc.d/bsnmpd start it starts fine no problem -- http://alexus.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: bsnmpd
On 3/8/07, Oliver Lehmann <[EMAIL PROTECTED]> wrote: Andrew Pantyukhin wrote: > Try this: > http://www.freshports.org/net-mgmt/bsnmp-regex/ Not sure, never used it myself. We've also got smux in development, so you can run bsnmpd side by side with net-snmp or any other server, if that makes any sense at all: http://wiki.freebsd.org/SnmpSmux ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bsnmpd
Andrew Pantyukhin wrote: > Try this: > http://www.freshports.org/net-mgmt/bsnmp-regex/ with this i would need a cronjob, executing my scrips from time to time and passing their output to the regexSocket, or? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bsnmpd
Try this: http://www.freshports.org/net-mgmt/bsnmp-regex/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
bsnmpd
Hi, please keep me CCed - I'm not subscribed to questions@ Is there a way to have bsnmpd execute a script when questioning a specific oid and returning it's output? Like it can be done with the following config directive in net-snmp exec .1.1.5.0 hdte /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0 [EMAIL PROTECTED] olivleh1> snmpwalk -v2c -c * kartoffel 1.1.5 iso.1.5.0.1.1 = INTEGER: 1 iso.1.5.0.2.1 = STRING: "hdte" iso.1.5.0.3.1 = STRING: "/usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0" iso.1.5.0.100.1 = INTEGER: 0 iso.1.5.0.101.1 = STRING: "31" iso.1.5.0.101.2 = STRING: "0" iso.1.5.0.102.1 = INTEGER: 0 iso.1.5.0.103.1 = "" [EMAIL PROTECTED] /root> /usr/local/snmp-scripts/get_hdd_temp.sh ata /dev/ad0 31 0 -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bsnmpd: send: Connection refused
On 29.07.2006 01:31, James Long wrote: traphost := localhost trapport := 162 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? Probably the reason of the message is that bsnmpd fails to send a trap to localhost port 162 when it starts. -- Feodor Trubetskoy. Zenon N.S.P. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
bsnmpd: send: Connection refused
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 := "[EMAIL PROTECTED]" +host := localhost +location := "right here" +contact := "[EMAIL PROTECTED]" 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! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bsnmpd help
Sean Murphy <[EMAIL PROTECTED]> writes: > I am running FreeBSD 5.4 and would like to monitor it using the > included bsnmpd. However the handbook did not have any information > about it, the man page was pretty lean and the list archive is very > scarce on the topic. > > I checked the /etc/defaults/rc.conf and noticed there is not an > enable_bsnmpd that I can add so it starts up. > > Could someone point me to a good guide to bsnmpd I would really like > to start using it. It's still pretty new, so it's not in heavy use yet. rc support is present in 6.x, but nobody seems to have written up cookbook examples so far. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
bsnmpd help
I am running FreeBSD 5.4 and would like to monitor it using the included bsnmpd. However the handbook did not have any information about it, the man page was pretty lean and the list archive is very scarce on the topic. I checked the /etc/defaults/rc.conf and noticed there is not an enable_bsnmpd that I can add so it starts up. Could someone point me to a good guide to bsnmpd I would really like to start using it. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"