Re: bsnmpd + zfs

2009-11-30 Thread krad
2009/11/30 Gergely CZUCZY gergely.czu...@harmless.hu

 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


Re: bsnmpd vs net-snmp

2009-04-30 Thread Maxim Khitrov
On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz li...@avioc.org wrote:
 Maxim Khitrov wrote:

 On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov cit...@citrin.ru
 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

2009-04-30 Thread Steve Bertrand
Maxim Khitrov wrote:
 On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz li...@avioc.org 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 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

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

2009-04-30 Thread Maxim Khitrov
On Thu, Apr 30, 2009 at 9:20 AM, Steve Bertrand st...@ibctech.ca wrote:
 Maxim Khitrov wrote:
 On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz li...@avioc.org 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 *.**.*
snip

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

2009-04-30 Thread Steve Bertrand
Maxim Khitrov wrote:
 On Thu, Apr 30, 2009 at 9:20 AM, Steve Bertrand st...@ibctech.ca wrote:
 Maxim Khitrov wrote:
 On Wed, Apr 29, 2009 at 8:35 PM, Brandon Weisz li...@avioc.org 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 *.**.*
 snip
 
 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

2009-04-30 Thread Maxim Khitrov
On Thu, Apr 30, 2009 at 9:39 AM, Steve Bertrand st...@ibctech.ca 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

2009-04-30 Thread Steve Polyack

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

2009-04-30 Thread Morgan Wesström
 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

2009-04-29 Thread Maxim Khitrov
On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov cit...@citrin.ru 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

2009-04-29 Thread Morgan Wesström
 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

2009-04-29 Thread Brandon Weisz

Maxim Khitrov wrote:

On Mon, Apr 27, 2009 at 2:19 PM, Anton Yuzhaninov cit...@citrin.ru 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

2009-04-28 Thread Mel Flynn
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 to.my.troc...@gmail.com

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

2009-04-27 Thread Steve Bertrand
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


Re: bsnmpd vs net-snmp

2009-04-27 Thread Anton Yuzhaninov
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

2009-04-27 Thread Steve Polyack

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

2009-04-27 Thread Steve Bertrand
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

2009-04-09 Thread Festin Alexander
В Wed, 8 Apr 2009 10:18:13 -0400
alexus ale...@gmail.com пишет:

 2009/4/8 Festin Alexander fes...@sakha.net:
  В Mon, 6 Apr 2009 16:08:32 -0400
  alexus ale...@gmail.com пишет:
 
  On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
  claudiu.vas...@gmail.com 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-04-08 Thread Festin Alexander
В Mon, 6 Apr 2009 16:08:32 -0400
alexus ale...@gmail.com пишет:

 On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
 claudiu.vas...@gmail.com 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

2009-04-08 Thread alexus
2009/4/8 Festin Alexander fes...@sakha.net:
 В Mon, 6 Apr 2009 16:08:32 -0400
 alexus ale...@gmail.com пишет:

 On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
 claudiu.vas...@gmail.com 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

2009-04-06 Thread Vasadi I. Claudiu Florin

On Mon, 06 Apr 2009 21:19:27 +0300, alexus ale...@gmail.com 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


Re: bsnmpd

2009-04-06 Thread alexus
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
claudiu.vas...@gmail.com wrote:
 On Mon, 06 Apr 2009 21:19:27 +0300, alexus ale...@gmail.com 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

2009-04-06 Thread Vasadi I. Claudiu Florin

On Mon, 06 Apr 2009 21:41:07 +0300, alexus ale...@gmail.com 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

2009-04-06 Thread alexus
On Mon, Apr 6, 2009 at 2:46 PM, Vasadi I. Claudiu Florin
claudiu.vas...@gmail.com wrote:
 On Mon, 06 Apr 2009 21:41:07 +0300, alexus ale...@gmail.com 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

2009-04-06 Thread Vasadi I. Claudiu Florin

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

2009-04-06 Thread alexus
On Mon, Apr 6, 2009 at 3:08 PM, Vasadi I. Claudiu Florin
claudiu.vas...@gmail.com 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

2009-04-06 Thread Vasadi I. Claudiu Florin

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

2009-04-06 Thread Vasadi I. Claudiu Florin

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

2009-04-06 Thread alexus
On Mon, Apr 6, 2009 at 3:29 PM, Vasadi I. Claudiu Florin
claudiu.vas...@gmail.com 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

2009-04-06 Thread alexus
On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
claudiu.vas...@gmail.com 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

2009-04-06 Thread Anton Yuzhaninov
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

2009-04-06 Thread alexus
On Mon, Apr 6, 2009 at 5:08 PM, Anton Yuzhaninov cit...@citrin.ru 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

2007-03-08 Thread Andrew Pantyukhin

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

2007-03-07 Thread Andrew Pantyukhin

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]


Re: bsnmpd

2007-03-07 Thread Oliver Lehmann
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: send: Connection refused

2006-09-08 Thread Feodor Trubetskoy

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]


Re: bsnmpd help

2006-04-28 Thread Lowell Gilbert
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]