net-snmp - Crazy figures for swap interrupts?

2013-07-23 Thread Karl Pielorz


Hi,

We've got a number of 9.x machines - just setup a new 9.1-RELEASE-p4 amd64 
system, put net-snmp on it (net-snmp-5.7.2_3) - and we're getting 'weird' 
results for some stats, e.g.



UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 1145324516 interrupts/s
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 1145324612 kB
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 1145324593 kB

That's an insane number of interrupts/second (systat shows 200-300 total) - 
also ssSwapIn.0 is 'The average amount of memory swapped out to disk, 
calculated over the last minute.'.


The machine isn't swapping - and had 784k swapped out (according to Top) - 
it's lightly loaded (LA 0.02) w/3Gb memory 'free' and 3Gb inactive.


Any idea where net-snmp is getting those figures from, or why? - Or better 
- how to fix?


Thanks,

-Karl
___
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


DiffServ SNMP agent

2011-12-01 Thread alan yang
Hello,

I wonder people would know if there is diffserv SNMP agent
implementation for FreeBSD that is available?
Googled a bit, but was not too successful in finding.

Thanks in advance!

Alan
___
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: snmp cpu

2010-11-30 Thread Dan Nelson
In the last episode (Nov 30):
 Hi,
 reading this:
 http://old.nabble.com/Measuring-CPU-usage-via-SNMP-td23392403.html
 
  So fetching the matching ssCpuRaw* oids and totaling them up should
  always equal 100% cpu.
 
 but when I fetch cpurawidle it is about 100, system 25
 totalling give me 125. What wrong I do?

Hey! I recognize that post :)  Note that ssCpuRawSystem is a synthetic value
that net-snmp generates by adding ssCpuRawKernel and ssCpuRawInterrupt.  If
you are doing the totalling yourself, you should ignore it, or you'll be
counting kernel time twice.

In case anyone else reading is unclear:

Totalling the raw values always gives 100% cpu, but the units aren't
percent; they're ticks.  You may get a different total on different
machines, depending on Hz and the number of CPUs.  If you want to graph the
values as percentages, you'll need to record the previous values for each
variable, then sum the differences to get the total number of ticks for your
sampling period.  Then divide each variable's difference by that total to
get a percentage.

Raw values on my machine using a ~ 5-second sampling period:

User  Nice  IdleKernel Interrupt
14993233  67689938  1943767096  171721693  11277468
14993237  67690250  1943768892  17174  11277487
14993246  67690357  1943770991  171722649  11277495

Deltas:
4 312   179653119Total: 2662
9 107   20994258 Total: 2648

Percent:

0.2   11.7  67.519.9   0.7
0.3   4.0   79.316.0   0.3

-- 
Dan Nelson
dnel...@allantgroup.com
___
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


snmp cpu

2010-11-29 Thread Коньков Евгений
Hi,
reading this:
http://old.nabble.com/Measuring-CPU-usage-via-SNMP-td23392403.html

So fetching the matching
ssCpuRaw* oids and totaling them up should always equal 100% cpu.

but when I fetch cpurawidle it is about 100, system 25
totalling give me 125. What wrong I do?

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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


freeradius snmp support

2010-10-21 Thread Omer Faruk SEN
Hi,

I have read in this mailing list that snmp support of  freeradius
(radiusd) has some issues and it was removed. What is the current (as
of 2.1.10) status of snmp support in radiusd?

Regards.


PS: I may have fully misunderstood this issue because it had been
really very long time. I couldn't able to find the mail from archives
so I wanted to ask it to this list.
___
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


net-snmp 5.5 tcp wrappers broken

2010-06-09 Thread krad
Has anyone one else this behaviour

/etc/hosts.allow

ALL : X : allow
ALL : ALL : deny

do an simple system snmp query from host x fails
remove the deny all line and it starts working.

trussing the process shows snmpd calling lib wrap and accessing the
hosts.allow fine, just no joy. Earlier version on net-snmp 5.3 i upgraded
from works fine. Ports and src tree csup'd very recently. ssh does have
these issues with the same hosts.allow file.

Hosts reverse and forward dns matches



FreeBSD xx 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed Jun  9 10:52:17 BST
2010 x:/usr/obj/usr/src/sys/DTRACE  amd64

# ls /etc/host*
/etc/host.conf/etc/hosts/etc/hosts.allow
/etc/hosts.equiv/etc/hosts.lpd


[root]# /usr/local/sbin/snmpd -v

NET-SNMP version:  5.5
Web:   http://www.net-snmp.org/
Email: net-snmp-cod...@lists.sourceforge.net

[root]# ls -l /usr/local/sbin/snmpd
-rwxr-xr-x  1 root  wheel  28880 Jun  9 12:30 /usr/local/sbin/snmpd
[root]# ldd /usr/local/sbin/snmpd
/usr/local/sbin/snmpd:
libnetsnmpagent.so.20 = /usr/local/lib/libnetsnmpagent.so.20
(0x80064c000)
libnetsnmphelpers.so.20 = /usr/local/lib/libnetsnmphelpers.so.20
(0x800793000)
libnetsnmpmibs.so.20 = /usr/local/lib/libnetsnmpmibs.so.20
(0x8008b7000)
libwrap.so.6 = /usr/lib/libwrap.so.6 (0x800abe000)
libperl.so = /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
(0x800bc6000)
libcrypt.so.5 = /lib/libcrypt.so.5 (0x800dec000)
libutil.so.8 = /lib/libutil.so.8 (0x800f05000)
libnetsnmp.so.20 = /usr/local/lib/libnetsnmp.so.20 (0x801015000)
libm.so.5 = /lib/libm.so.5 (0x8011e3000)
libkvm.so.5 = /lib/libkvm.so.5 (0x801302000)
libdevstat.so.7 = /lib/libdevstat.so.7 (0x80140a000)
libcrypto.so.6 = /lib/libcrypto.so.6 (0x80150f000)
libelf.so.1 = /usr/lib/libelf.so.1 (0x8017a7000)
libc.so.7 = /lib/libc.so.7 (0x8018bf000)
___
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: net-snmp 5.5 tcp wrappers broken

2010-06-09 Thread Andrea Venturoli

On 06/09/10 17:12, krad wrote:

Has anyone one else this behaviour


Yep.




/etc/hosts.allow

ALL : X : allow
ALL : ALL : deny


snmpd: ALL : allow

works.





Googling around, it seems FreeBSD is not the only OS affected...



 bye
av.
___
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


Can I tunnel TCP over SNMP?

2010-05-15 Thread Yuri
In my hotel WiFi is supposed to work, but something is broken, and  
only SNMP can pass through. I have my host outside, that replies to  
SNMP (pings).


Maybe this is a crazy question, but is is possible to tunnel TCP over  
SNMP? I know SNMP ping can carry payload back and forth. I could set  
up the squid under the tunnel on my outside host and HTTP forwarding  
here on my laptop.


So is such tunneling possible?

Yuri

___
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: Can I tunnel TCP over SNMP?

2010-05-15 Thread Gary Gatten
I've heard of data leaks from bad dudes tunnelling data in DNS type traffic, so 
I'm sure it can be done.  The level of effort is the question...

- Original Message -
From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org
Sent: Sat May 15 15:26:36 2010
Subject: Can I tunnel TCP over SNMP?

In my hotel WiFi is supposed to work, but something is broken, and  
only SNMP can pass through. I have my host outside, that replies to  
SNMP (pings).

Maybe this is a crazy question, but is is possible to tunnel TCP over  
SNMP? I know SNMP ping can carry payload back and forth. I could set  
up the squid under the tunnel on my outside host and HTTP forwarding  
here on my laptop.

So is such tunneling possible?

Yuri

___
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: Can I tunnel TCP over SNMP?

2010-05-15 Thread Randal L. Schwartz
 Yuri == Yuri  y...@rawbw.com writes:

Yuri In my hotel WiFi is supposed to work, but something is broken, and
Yuri only SNMP can pass through. I have my host outside, that replies
Yuri to SNMP (pings).

Are you confusing ICMP (ping) with SNMP (monitoring)?  Your last
statement makes no sense.

Also, are you sure the ping is going all the way to your machine, and
not just being reflected far earlier?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
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: Can I tunnel TCP over SNMP?

2010-05-15 Thread Liontaur
On Sat, May 15, 2010 at 1:26 PM, Yuri y...@rawbw.com wrote:

 In my hotel WiFi is supposed to work, but something is broken, and only
 SNMP can pass through. I have my host outside, that replies to SNMP (pings).

 Yuri


If it's a semi-reputable hotel then they should fix it. I know some hotel's
systems are setup that you have to authenticate through HTTP before you get
access out of the firewall. Perhaps SNMP is managing to get through before
you authenticate?

Mark
___
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


net-snmp pass scripts

2010-03-20 Thread krad
Hi,

I know this isn't the ideal, place but im not having much joy on the
net-snmp users mailing list.

Does anyone have any good guides for writing or examples of snmp pass
scripts?
___
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


SNMP of FreeBSD

2010-01-26 Thread Steven Friedrich
I'm running 8-Stable, and ports are current.

I'm installing snmp support, mostly just to investigate it.

I have three ports installed:
bsnmptools-0.0.20060818_2 Snmp client tools
mbrowse-0.3.1_8 An SNMP MIB Browser for X
net-snmp-5.4.2.1_6  An extendable SNMP implementation

I got a few errors after initial install.

I don't know what pieces of snmp I want.
I used the sample snmp.config from the /usr/src tree.
I changed the name of the public community name.
I uncommented the netgraph and pf lines and maybe even others 8o)

I got rid of the errors on the console, except for this Warning:
WARNING: attempt to domain_add(netgraph) after domainfinalize()

Perhaps this is a bug in the example snmp.config I'm using?
What client(s) tools should I look at?
___
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: SNMP of FreeBSD

2010-01-26 Thread Steve Bertrand
Steven Friedrich wrote:
 I'm running 8-Stable, and ports are current.
 
 I'm installing snmp support, mostly just to investigate it.
 
 I have three ports installed:
 bsnmptools-0.0.20060818_2 Snmp client tools
 mbrowse-0.3.1_8 An SNMP MIB Browser for X
 net-snmp-5.4.2.1_6  An extendable SNMP implementation
 
 I got a few errors after initial install.
 
 I don't know what pieces of snmp I want.
 I used the sample snmp.config from the /usr/src tree.
 I changed the name of the public community name.
 I uncommented the netgraph and pf lines and maybe even others 8o)
 
 I got rid of the errors on the console, except for this Warning:
 WARNING: attempt to domain_add(netgraph) after domainfinalize()
 
 Perhaps this is a bug in the example snmp.config I'm using?
 What client(s) tools should I look at?

What is it exactly that you need/want SNMP for?

If for client only, what do you need to poll?

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: SNMP of FreeBSD

2010-01-26 Thread Steven Friedrich
On Tuesday 26 January 2010 08:23:16 pm Steve Bertrand wrote:
 Steven Friedrich wrote:
  I'm running 8-Stable, and ports are current.
 
  I'm installing snmp support, mostly just to investigate it.
 
  I have three ports installed:
  bsnmptools-0.0.20060818_2 Snmp client tools
  mbrowse-0.3.1_8 An SNMP MIB Browser for X
  net-snmp-5.4.2.1_6  An extendable SNMP implementation
 
  I got a few errors after initial install.
 
  I don't know what pieces of snmp I want.
  I used the sample snmp.config from the /usr/src tree.
  I changed the name of the public community name.
  I uncommented the netgraph and pf lines and maybe even others 8o)
 
  I got rid of the errors on the console, except for this Warning:
  WARNING: attempt to domain_add(netgraph) after domainfinalize()
 
  Perhaps this is a bug in the example snmp.config I'm using?
  What client(s) tools should I look at?
 
 What is it exactly that you need/want SNMP for?
 
 If for client only, what do you need to poll?
 
 Steve
 
I want to find out what I can monitor with it.  I don't know enough about it 
to know if it will be useful to me.  I'm an old hardware guy and I've been 
Admin'ing my own systems for many years. I am having a hard time finding 
pertinent documentation.

I know one of the ports allows you to monitor the cpu, memory, etc.

I already have a Superkaramba theme that has a StarTrek gauge for cpu, memory, 
swap, network in, network out, etc.

I just want to know if SNMP has anything to offer me...
___
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: SNMP of FreeBSD

2010-01-26 Thread Steve Bertrand
Steven Friedrich wrote:
 On Tuesday 26 January 2010 08:23:16 pm Steve Bertrand wrote:
 Steven Friedrich wrote:

 I have three ports installed:
 bsnmptools-0.0.20060818_2 Snmp client tools
 mbrowse-0.3.1_8 An SNMP MIB Browser for X
 net-snmp-5.4.2.1_6  An extendable SNMP implementation

 I got a few errors after initial install.

 I don't know what pieces of snmp I want.
 I used the sample snmp.config from the /usr/src tree.
 I changed the name of the public community name.
 I uncommented the netgraph and pf lines and maybe even others 8o)

 I got rid of the errors on the console, except for this Warning:
 WARNING: attempt to domain_add(netgraph) after domainfinalize()

 Perhaps this is a bug in the example snmp.config I'm using?
 What client(s) tools should I look at?

 What is it exactly that you need/want SNMP for?

 If for client only, what do you need to poll?

 Steve

 I want to find out what I can monitor with it.  I don't know enough about it 
 to know if it will be useful to me.  I'm an old hardware guy and I've been 
 Admin'ing my own systems for many years. I am having a hard time finding 
 pertinent documentation.
 
 I know one of the ports allows you to monitor the cpu, memory, etc.
 
 I already have a Superkaramba theme that has a StarTrek gauge for cpu, 
 memory, 
 swap, network in, network out, etc.
 
 I just want to know if SNMP has anything to offer me...

Personally, I use SNMP for read-only network gathering information.

Depending on the device you are trying to poll, you can generally
retrieve almost all information from a device.

What you have described that you have already seems like SNMP. Can you
give an example of a device that you want to 'test' against?

Assuming that you have an SNMP v2 device available for polling, try this
on your FreeBSD box:

# pkg_add -r net-snmp
# rehash
# snmpwalk -v2c -c your_ro_community ip_or_name_of_device

If you want specifics to test against, let me know off-list, and I'll
give you a Cisco router to poll.

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: SNMP of FreeBSD

2010-01-26 Thread Steve Bertrand
Steven Friedrich wrote:

 I want to find out what I can monitor with it.  I don't know enough about it 
 to know if it will be useful to me.  I'm an old hardware guy and I've been 
 Admin'ing my own systems for many years. I am having a hard time finding 
 pertinent documentation.
 
 I know one of the ports allows you to monitor the cpu, memory, etc.
 
 I already have a Superkaramba theme that has a StarTrek gauge for cpu, 
 memory, 
 swap, network in, network out, etc.
 
 I just want to know if SNMP has anything to offer me...

...out of curiosity, are you simply trying to gain info on your local
machine that you are working from?

I use SNMP for network management, so I assumed that from the beginning.
 If what you are looking for is gathering stats from only the hardware
that you are working on, that is a bit of a different story.

With that said, I may be able to provide configs for that, too.

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: Net-SNMP and ProPolice under 8.0-RELEASE

2009-12-07 Thread b. f.
Matthew Seaman wrote:
 Trix Farrar wrote:
 The Net-SNMP port (net-mgmt/net-snmp) builds and appears to work just
 fine, but I cannot build the SNMP module for PHP (net-mgmt/php5-snmp).

 Time to warm up send-pr(1).

ports/141238  if you want to add your report.

There will be a number of such problems, because stack protection was
enabled in parts of the base system, but it is not now adequately
supported in Ports.  See:

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/140791

b.
___
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


Net-SNMP and ProPolice under 8.0-RELEASE

2009-12-06 Thread Trix Farrar
The Net-SNMP port (net-mgmt/net-snmp) builds and appears to work just
fine, but I cannot build the SNMP module for PHP (net-mgmt/php5-snmp).

Attempting to build php5-snmp fails during the configure stage.  The
error message says to check the config.log.  In the
/usr/ports/net-mgmt/php5-snmp/work/php-5.2.11/ext/snmp/config.log file
I found:

configure:5967: checking for snmp_parse_oid in -lnetsnmp
configure:6002: cc -o conftest -O2 -pipe -fno-strict-aliasing  -R/usr/local/lib 
-L/usr/local/lib  -L/usr/local/lib -lcrypto -lssl -rpath=/usr/local/lib 
-lnetsnmp -lelf -lm -lkvm -ldevstat conftest.c -lnetsnmp   5
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'

Google-ing around, I have found that the __stack_chk_fail_local symbol
is a side effect of compiling with the '-fstack-protector' option for
gcc -- which, I believe, is the default for 8.0-RELEASE.  Searching
/usr/src, I found that this function is referenced in
/usr/src/lib/libc/sys/stack_protector.c, but appears to be defined in
/usr/src/contrib/gcclibs/libssp/ssp.c, which is part of GCC.  I
believe that this winds up in /lib/libssp.so.0 -- which also exists
under 7.2-RELEASE.

The copy of net-mgmt/net-snmp that I compiled under 7.2-RELEASE does
not contain the __stack_chk_fail_local symbol.

What am I missing?  I tried adding '-lssp' to the --with-libs option
included in CONFIGURE_ARGS in /usr/ports/net-mgmt/net-snmp/Makefile
with no change in behavior.  As it stands, I cannot build anything
that relies on Net-SNMP.

-- 
John D. Trix Farrar, CCNA __\\|//__   Basement.NET
t...@basement.net   (` o-o ')   http://www.basement.net/
---ooO-(_)-Ooo--
   GPG Key Fprint: 525F DBA7 1A62 E4C4 E642  DF95 384B B851 3CEF C10A


pgpLUk30gtgwW.pgp
Description: PGP signature


Re: Net-SNMP and ProPolice under 8.0-RELEASE

2009-12-06 Thread Matthew Seaman

Trix Farrar wrote:

The Net-SNMP port (net-mgmt/net-snmp) builds and appears to work just
fine, but I cannot build the SNMP module for PHP (net-mgmt/php5-snmp).

Attempting to build php5-snmp fails during the configure stage.  The
error message says to check the config.log.  In the
/usr/ports/net-mgmt/php5-snmp/work/php-5.2.11/ext/snmp/config.log file
I found:

configure:5967: checking for snmp_parse_oid in -lnetsnmp
configure:6002: cc -o conftest -O2 -pipe -fno-strict-aliasing  -R/usr/local/lib 
-L/usr/local/lib  -L/usr/local/lib -lcrypto -lssl -rpath=/usr/local/lib -lnetsnmp 
-lelf -lm -lkvm -ldevstat conftest.c -lnetsnmp   5
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'

Google-ing around, I have found that the __stack_chk_fail_local symbol
is a side effect of compiling with the '-fstack-protector' option for
gcc -- which, I believe, is the default for 8.0-RELEASE.  Searching
/usr/src, I found that this function is referenced in
/usr/src/lib/libc/sys/stack_protector.c, but appears to be defined in
/usr/src/contrib/gcclibs/libssp/ssp.c, which is part of GCC.  I
believe that this winds up in /lib/libssp.so.0 -- which also exists
under 7.2-RELEASE.

The copy of net-mgmt/net-snmp that I compiled under 7.2-RELEASE does
not contain the __stack_chk_fail_local symbol.

What am I missing?  I tried adding '-lssp' to the --with-libs option
included in CONFIGURE_ARGS in /usr/ports/net-mgmt/net-snmp/Makefile
with no change in behavior.  As it stands, I cannot build anything
that relies on Net-SNMP.



Yes -- you're not alone.  I've seen exactly the same thing, but only on
one machine.  It works perfectly on an amd64 box running 8.0-RELEASE-p1,
but fails miserably on an i386 box running 8.0-STABLE.

Time to warm up send-pr(1).

Cheers,

Matthew


--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Net-SNMP and ProPolice under 8.0-RELEASE

2009-12-06 Thread Matthew Seaman

Matthew Seaman wrote:

Trix Farrar wrote:

The Net-SNMP port (net-mgmt/net-snmp) builds and appears to work just
fine, but I cannot build the SNMP module for PHP (net-mgmt/php5-snmp).



Time to warm up send-pr(1).


ports/141238  if you want to add your report.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


problem with php5-snmp

2009-12-01 Thread B. Cook

Trying to update all ports since updating to 8.0..

already rebuilt all ports and did a yes | make delete-old-libs so none 
of that is the problem..


php5-snmp would not rebuild.

Not sure where the problem is..

but below is tons of output..


below is the output of the build:

r...@core [/usr/ports/net-mgmt/php5-snmp]# 16  make clean
===  Cleaning for php5-snmp-5.2.11_1

r...@core [/usr/ports/net-mgmt/php5-snmp]# 17  make
===  Found saved configuration for php5-snmp-5.2.11_1
===  Extracting for php5-snmp-5.2.11_1
= MD5 Checksum OK for php-5.2.11.tar.bz2.
= SHA256 Checksum OK for php-5.2.11.tar.bz2.
===  Patching for php5-snmp-5.2.11_1
===   php5-snmp-5.2.11_1 depends on file: /usr/local/bin/phpize - found
===   php5-snmp-5.2.11_1 depends on file: /usr/local/bin/autoconf-2.62 
- found

===   php5-snmp-5.2.11_1 depends on shared library: netsnmp.16 - found
===  PHPizing for php5-snmp-5.2.11_1
Configuring for:
PHP Api Version: 20041225
Zend Module Api No:  20060613
Zend Extension Api No:   220060519
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, 
...): suspicious cache-id, must contain _cv_ to be cached

../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3542: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5480: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5479: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2959: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2939: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2902: AC_PROG_LIBTOOL is expanded from...
configure.in:158: the top level
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, 
...): suspicious cache-id, must contain _cv_ to be cached

aclocal.m4:3497: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7607: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, 
...): suspicious cache-id, must contain _cv_ to be cached

aclocal.m4:5593: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5592: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4628: _LT_AC_TAGCONFIG is expanded from...
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, 
...): suspicious cache-id, must contain _cv_ to be cached

../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3542: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5480: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5479: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2959: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2939: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2902: AC_PROG_LIBTOOL is expanded from...
configure.in:158: the top level
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, 
...): suspicious cache-id, must contain _cv_ to be cached

aclocal.m4:3497: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7607: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:158: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, 
...): suspicious cache-id, must contain _cv_ to be cached

aclocal.m4:5593: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5592: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4628: _LT_AC_TAGCONFIG is expanded from...
===  Configuring for php5-snmp-5.2.11_1
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd8.0
checking host system type... i386-portbld-freebsd8.0
checking target system type... i386-portbld-freebsd8.0
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM 
-I/usr/local/include/php/Zend -I/usr/local/include/php/ext 
-I/usr/local/include/php/ext/date/lib

checking for PHP extension directory... /usr/local/lib/php/20060613
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want

Re: problem with php5-snmp

2009-12-01 Thread Kevin Kinsey

B. Cook wrote:

Trying to update all ports since updating to 8.0..

already rebuilt all ports and did a yes | make delete-old-libs so none 
of that is the problem..


php5-snmp would not rebuild.

Not sure where the problem is..

but below is tons of output..


snip


checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for 
more information.


So what does config.log say?  It should be at
/usr/ports/net-mgmt/php5-snmp/work/{$PORTNAME}/config.log
and *might* have useful information.

HTH,

Kevin Kinsey
___
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: problem with php5-snmp

2009-12-01 Thread B. Cook


So what does config.log say?  


cat -n work/php-5.2.11/ext/snmp/config.log
 1  This file contains any messages produced by compilers while
 2  running configure, to aid debugging if configure makes a mistake.
 3  
 4  It was created by configure, which was
 5  generated by GNU Autoconf 2.62.  Invocation command line was
 6  
 7	  $ ./configure --with-snmp=/usr/local --with-openssl-dir=/usr 
--enable-ucd-snmp-hack --with-php-config=/usr/local/bin/php-config 
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ 
--build=i386-portbld-freebsd8.0

 8  
 9  ## - ##
10  ## Platform. ##
11  ## - ##
12  
13  hostname = core.phs.pcsd
14  uname -m = i386
15  uname -r = 8.0-RELEASE
16  uname -s = FreeBSD
17	uname -v = FreeBSD 8.0-RELEASE #0: Tue Dec  1 14:05:04 EST 2009 
r...@core.phs.pcsd:/usr/obj/usr/src/sys/GENERICplus

18  
19  /usr/bin/uname -p = i386
20  /bin/uname -X = unknown
21  
22  /bin/arch  = unknown
23  /usr/bin/arch -k   = unknown
24  /usr/convex/getsysinfo = unknown
25  /usr/bin/hostinfo  = unknown
26  /bin/machine   = unknown
27  /usr/bin/oslevel   = unknown
28  /bin/universe  = unknown
29  
30  PATH: /sbin
31  PATH: /bin
32  PATH: /usr/sbin
33  PATH: /usr/bin
34  PATH: /usr/games
35  PATH: /usr/local/sbin
36  PATH: /usr/local/bin
37  PATH: /root/bin
38  
39  
40  ## --- ##
41  ## Core tests. ##
42  ## --- ##
43  
44  configure:1999: checking for grep that handles long lines and -e
45  configure:2059: result: /usr/bin/grep
46  configure:2064: checking for egrep
47  configure:2128: result: /usr/bin/grep -E
48  configure:2133: checking for a sed that does not truncate output
49  configure:2187: result: /usr/bin/sed
50  configure:2382: checking for C compiler version
51  configure:2390: cc --version 5
52  cc (GCC) 4.2.1 20070719  [FreeBSD]
53  Copyright (C) 2007 Free Software Foundation, Inc.
54	This is free software; see the source for copying conditions. 
There is NO
55	warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.

56  
57  configure:2394: $? = 0
58  configure:2401: cc -v 5
59  Using built-in specs.
60  Target: i386-undermydesk-freebsd
61  Configured with: FreeBSD/i386 system compiler
62  Thread model: posix
63  gcc version 4.2.1 20070719  [FreeBSD]
64  configure:2405: $? = 0
65  configure:2412: cc -V 5
66  cc: '-V' option must have argument
67  configure:2416: $? = 1
68  configure:2439: checking for C compiler default output file name
69	configure:2461: cc -O2 -pipe -march=pentium4 
-fno-strict-aliasing   -L/usr/lib -lcrypto -lssl 
-rpath=/usr/lib:/usr/local/lib conftest.c  5

70  configure:2465: $? = 0
71  configure:2503: result: a.out
72  configure:2520: checking whether the C compiler works
73  configure:2530: ./a.out
74  configure:2534: $? = 0
75  configure:2551: result: yes
76  configure:2558: checking whether we are cross compiling
77  configure:2560: result: no
78  configure:2563: checking for suffix of executables
79	configure:2570: cc -o conftest -O2 -pipe -march=pentium4 
-fno-strict-aliasing   -L/usr/lib -lcrypto -lssl 
-rpath=/usr/lib:/usr/local/lib conftest.c  5

80  configure:2574: $? = 0
81  configure:2598: result:
82  configure:2604: checking for suffix of object files
83	configure:2630: cc -c -O2 -pipe -march=pentium4 
-fno-strict-aliasing  conftest.c 5

84  configure:2634: $? = 0
85  configure:2657: result: o
86  configure:2661: checking whether we are using the GNU C compiler
87	configure:2690: cc -c -O2 -pipe -march=pentium4 
-fno-strict-aliasing  conftest.c 5

88  configure:2697: $? = 0
89  configure:2714: result: yes
90  configure:2723: checking whether cc accepts -g
91  configure:2753: cc -c -g  conftest.c 5
92  configure:2760: $? = 0
93  configure:2861: result: yes
94  configure:2878: checking for cc option to accept ISO C89
95	configure:2952: cc  -c -O2 -pipe -march=pentium4 
-fno-strict-aliasing  conftest.c 5

96  configure:2959: $? = 0
97  configure:2982: result: none needed
98  configure:3006: checking how to run the C preprocessor
99  configure:3046: cc -E  conftest.c
   100  configure:3053: $? = 0
   101  configure:3084: cc -E  conftest.c
   102  conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
   103  configure:3091: $? = 1
   104  configure: failed program was:
   105  | /* confdefs.h.  */
   106  | #define PACKAGE_NAME 
   107  | #define PACKAGE_TARNAME 
   108  | #define PACKAGE_VERSION 
   109  | #define PACKAGE_STRING 
   110  | #define PACKAGE_BUGREPORT 
   111  | /* end confdefs.h.  */
   112  | #include ac_nonexistent.h

Error building net-snmp port

2009-09-09 Thread Ian
I've been building a new 7.2-RELEASE server, putting it into service on 
Friday. I did a portsnap  updated all the ports to the latest version, but 
was unable to upgrade /usr/ports/net-mgmt/net-snmp - see below for output:

===  Building for net-snmp-5.4.2.1_5
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers
making all 
in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup
/bin/sh ../../libtool --mode=compile 
cc -I../../include -I. -I../../agent -I../../agent/mibgroup  -I../../snmplib   
-O -pipe -Ufreebsd7 -Dfreebsd7=freebsd7  
-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include  
-I/usr/local/lib/perl5/5.8.9/mach/CORE -c -o 
mibII/tcpTable.lo mibII/tcpTable.c
 
cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -O 
-pipe -Ufreebsd7 -Dfreebsd7=freebsd7 
-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include 
-I/usr/local/lib/perl5/5.8.9/mach/CORE -c 
mibII/tcpTable.c  -fPIC -DPIC -o mibII/.libs/tcpTable.o
mibII/tcpTable.c: In function 'tcpTable_load':
mibII/tcpTable.c:748: error: dereferencing pointer to incomplete type
mibII/tcpTable.c:750: error: dereferencing pointer to incomplete type
mibII/tcpTable.c:750: error: invalid application of 'sizeof' to incomplete 
type 'struct xinpgen'
mibII/tcpTable.c:754: error: dereferencing pointer to incomplete type
mibII/tcpTable.c:758: error: dereferencing pointer to incomplete type
mibII/tcpTable.c:763: error: dereferencing pointer to incomplete type
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup.
*** Error code 1

I tried everything I could think of to fix it - removed CPUTYPE 
from /etc/make.conf, ran make config  de-selected IPV6 support, did a make 
dist clean and let it fetch the source file again, did a make deinstall but 
it still stopped at the same point.

It was installed as a dependency of nut.

Any idea how to fix this?

Cheers,
Ian


-- 
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


net-snmp and IPv6 MIB

2009-05-13 Thread Aurélien Ansel

Hi all,

sorry in advance for my bad english.

I think i have a problem with the MIB of IPv6.

I have installed the last port of net-snmp.

Can someone give the result of this request, it must be send to a 
computer with a smp daemon and at least one interface with an IPv6 address.
   snmpwalk -v 2c -c community_name IP_OF_SNMP_SERVER  
.1.3.6.1.2.1.4.34


On my FreeBSD 7.1, this command give me : IP-MIB::ipAddressTable = No 
Such Object available on this agent at this OID
But if I execute this command on a Ubuntu with IPv6 addresses and 
net-snmpd running that return a lot of results, in particulary the list 
of IPv6 addresses linked to the machine ( it's what i'm looking for ).


So i don't know if the problem come from my computer or from the port.

Thanks in advance for those that will read/answer me.

Aurélien
___
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: net-snmp and IPv6 MIB

2009-05-13 Thread Steve Bertrand
Aurélien Ansel wrote:
 Hi all,
 
 sorry in advance for my bad english.
 
 I think i have a problem with the MIB of IPv6.
 
 I have installed the last port of net-snmp.
 
 Can someone give the result of this request, it must be send to a
 computer with a smp daemon and at least one interface with an IPv6 address.
snmpwalk -v 2c -c community_name IP_OF_SNMP_SERVER 
 .1.3.6.1.2.1.4.34
 
 On my FreeBSD 7.1, this command give me : IP-MIB::ipAddressTable = No
 Such Object available on this agent at this OID
 But if I execute this command on a Ubuntu with IPv6 addresses and
 net-snmpd running that return a lot of results, in particulary the list
 of IPv6 addresses linked to the machine ( it's what i'm looking for ).
 
 So i don't know if the problem come from my computer or from the port.

It looks like it may be the port. None of my SNMP enabled boxes display
the IPv6 addresses of the interface either (I've never noticed, as I
don't use SNMP for that ;)

However, in the Makefile, I noticed this:

@${ECHO_MSG} WITH_INETADDRESS_HACK=yes builds with the inetaddress hack

Which I read somewhere by searching Google that it has something to do
with 'fixing' the IPv6 address issue. Put:

WITH_INETADDRESS_HACK=yes

in your /etc/make.conf file, and try rebuilding the port.

Let us know if that fixes it.

Steve




smime.p7s
Description: S/MIME Cryptographic Signature


Measuring CPU usage via SNMP

2009-05-05 Thread Maxim Khitrov
Hello all,

Simple question - does the sum of differences in ssCpuRawIdle,
ssCpuRawUser, ssCpuRawNice, ssCpuRawKernel, and ssCpuRawInterrupt OIDs
on a FreeBSD 7.2 system give me total CPU allocation (i.e. is a
constant)? I've configured a few scripts to read these values from
bsnmpd, store them via rrdtool, and then generate a single graph with
idle on the negative y axis and everything else stacked on top. I want
to make sure that no other counter is missing from this ensemble and
the ones listed do not overlap. If either of those conditions is not
met, my usage percent calculation will not be accurate.

The OIDs that I left out are:

ssCpuRawSoftIRQ - documentation states that this is for Linux only,
but FreeBSD 7.2 does provide a value for it
ssCpuRawWait - always 0?
ssCpuRawSystem - seems to be a sum of ssCpuRawKernel and ssCpuRawInterrupt

As far as I can tell, these three do not factor into the equation. The
only one I'm not sure about is ssCpuRawSystem. Is there ever a time
when it will not equal to ssCpuRawKernel + ssCpuRawInterrupt?

Thanks for your help,
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: Measuring CPU usage via SNMP

2009-05-05 Thread Dan Nelson
In the last episode (May 05), Maxim Khitrov said:
 Simple question - does the sum of differences in ssCpuRawIdle,
 ssCpuRawUser, ssCpuRawNice, ssCpuRawKernel, and ssCpuRawInterrupt OIDs on
 a FreeBSD 7.2 system give me total CPU allocation (i.e.  is a constant)? 
 I've configured a few scripts to read these values from bsnmpd, store them
 via rrdtool, and then generate a single graph with idle on the negative y
 axis and everything else stacked on top.  I want to make sure that no
 other counter is missing from this ensemble and the ones listed do not
 overlap.  If either of those conditions is not met, my usage percent
 calculation will not be accurate.
 
 The OIDs that I left out are:
 
 ssCpuRawSoftIRQ - documentation states that this is for Linux only,
 but FreeBSD 7.2 does provide a value for it
 ssCpuRawWait - always 0?
 ssCpuRawSystem - seems to be a sum of ssCpuRawKernel and ssCpuRawInterrupt
 
 As far as I can tell, these three do not factor into the equation. The
 only one I'm not sure about is ssCpuRawSystem.  Is there ever a time when
 it will not equal to ssCpuRawKernel + ssCpuRawInterrupt?

The nice thing about open source software is you can read the source and see
what's going on :)  The FreeBSD kernel statclock() function:

http://fxr.watson.org/fxr/source/kern/kern_clock.c#L442

updates the cp_time[] array, and it increments one of CP_NICE, CP_USER,
CP_INTR, CP_SYS, and CP_IDLE on each tick.  

The Net-SNMP var_extensible_vmstat() function:

http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/agent/mibgroup/ucd-snmp/vmstat_freebsd2.c?revision=HEADview=markup#l_165

fetches that array and maps those indexes to CPURAWNICE, CPURAWUSER,
CPURAWINTR, CPURAWKERNEL, and CPURAWIDLE.  So fetching the matching
ssCpuRaw* oids and totaling them up should always equal 100% cpu.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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


bsnmpd vs net-snmp

2009-04-27 Thread Maxim Khitrov
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 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


ports/net-mgmt/net-snmp (CURRENT) failes on make install

2009-03-25 Thread Matthias Apitz


Hi,

# cd /usr/ports/net-mgmt/net-snmp
# cvs update
? work
cvs update: Updating .
cvs update: Updating files
cvs update: Updating patches.aout
# make install
...
installing sysv.h in /usr/local/include/net-snmp/system
installing ultrix4.h in /usr/local/include/net-snmp/system
installing dragonfly.h in /usr/local/include/net-snmp/system
creating directory /usr/local/include/net-snmp/machine
installing generic.h in /usr/local/include/net-snmp/machine
making installlibs in
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib
/bin/sh ../libtool --mode=compile cc -I../include -I.   -I../snmplib
-DNETSNMP_ENABLE_IPV6 -O2 -pipe -fno-strict-aliasing -Ufreebsd8
-Dfreebsd8=freebsd8  -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-I/usr/local/include  -I/usr/local/lib/perl5/5.8.9/mach/CORE -c -o
mib.lo mib.c
cc -I../include -I. -I../snmplib -DNETSNMP_ENABLE_IPV6 -O2 -pipe
-fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8
-DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/local/lib/perl5/5.8.9/mach/CORE -c mib.c  -fPIC -DPIC -o
.libs/mib.o
../include/net-snmp/library/data_list.h:75: error: nested function
'netsnmp_get_list_node' declared but never defined
../include/net-snmp/library/data_list.h:60: error: nested function
'netsnmp_create_data_list' declared but never defined
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.

Any ideas?

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
___
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: ports/net-mgmt/net-snmp (CURRENT) failes on make install

2009-03-25 Thread Dominique Goncalves
Hi,

On Wed, Mar 25, 2009 at 7:25 AM, Matthias Apitz g...@unixarea.de wrote:


 Hi,

 # cd /usr/ports/net-mgmt/net-snmp
 # cvs update
 ? work
 cvs update: Updating .
 cvs update: Updating files
 cvs update: Updating patches.aout
 # make install
 ...
 installing sysv.h in /usr/local/include/net-snmp/system
 installing ultrix4.h in /usr/local/include/net-snmp/system
 installing dragonfly.h in /usr/local/include/net-snmp/system
 creating directory /usr/local/include/net-snmp/machine
 installing generic.h in /usr/local/include/net-snmp/machine
 making installlibs in
 /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib
 /bin/sh ../libtool --mode=compile cc -I../include -I.   -I../snmplib
 -DNETSNMP_ENABLE_IPV6 -O2 -pipe -fno-strict-aliasing -Ufreebsd8
 -Dfreebsd8=freebsd8  -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN
 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
 -I/usr/local/include  -I/usr/local/lib/perl5/5.8.9/mach/CORE -c -o
 mib.lo mib.c
 cc -I../include -I. -I../snmplib -DNETSNMP_ENABLE_IPV6 -O2 -pipe
 -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8
 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK
 -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include
 -I/usr/local/lib/perl5/5.8.9/mach/CORE -c mib.c  -fPIC -DPIC -o
 .libs/mib.o
 ../include/net-snmp/library/data_list.h:75: error: nested function
 'netsnmp_get_list_node' declared but never defined
 ../include/net-snmp/library/data_list.h:60: error: nested function
 'netsnmp_create_data_list' declared but never defined
 *** Error code 1

 Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib.
 *** Error code 1

 Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1.
 *** Error code 1

 Stop in /usr/ports/net-mgmt/net-snmp.

 Any ideas?

I guess you are running 8.0-CURRENT, a fix was commited about this
issue, http://lists.freebsd.org/pipermail/svn-src-all/2009-March/006931.html

Hope this helps

        matthias

 --
 Matthias Apitz
 Manager Technical Support - OCLC GmbH
 Gruenwalder Weg 28g - 82041 Oberhaching - Germany
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
 ___
 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


Regards.

-- 
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.
___
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: net-snmp port upgrade build error

2008-11-17 Thread Lowell Gilbert
R Dicaire [EMAIL PROTECTED] writes:

 Hi folks,
 After updating ports tree with portsnap fetch update, then running
 pkg_version -l '', pkg_version shows net-snmp is upgradable:

 pkg_version -l ''
 net-snmp

 pkg_replace net-snmp
 ---  Replacing 'net-snmp-5.3.2_3' with 'net-snmp-5.3.2.3'
 ---  Building '/usr/ports/net-mgmt/net-snmp53'

 You may use the following build options:

 WITH_INETADDRESS_HACK=yes   builds with the inetaddress hack
 WITH_TKMIB=yes  Install a graphical Perl/Tk/SNMP based mib browser
 WITHOUT_DUMMY_VALUES=yesProvide 'placeholder' dummy values where
 the necessary information is not available.
 WITHOUT_PERL=yesDo not install the perl modules along
 with the rest
 of the net-snmp toolkit.
 WITHOUT_IPV6=yesDisable IPv6.

 DEFAULT_SNMP_VERSION=3Default version of SNMP to use.
 NET_SNMP_SYS_CONTACT=[EMAIL PROTECTED]
 Default system contact.
 NET_SNMP_SYS_LOCATION=somewhere
 Default system location.
 NET_SNMP_LOGFILE=/var/log/snmpd.log
 Default log file location for snmpd.
 NET_SNMP_PERSISTENTDIR=/var/net-snmp
 Default directory for persistent data storage.
 NET_SNMP_MIB_MODULES=host disman/event-mib smux mibII/mta_sendmail
 mibII/tcpTable ucd-snmp/diskio
 Optional mib modules that can be built into 
 the
 agent

 ===  net-snmp-5.3.2.3 has known vulnerabilities:
 = net-snmp -- DoS for SNMP agent via crafted GETBULK request.
Reference: 
 http://www.FreeBSD.org/ports/portaudit/daf045d7-b211-11dd-a987-000c29ca8953.html
 = Please update your ports tree and try again.
 *** Error code 1

 Stop in /usr/ports/net-mgmt/net-snmp53.
 ** Command failed (exit code 1): make UPGRADE_PKG=net-snmp-5.3.2_3
 UPGRADE_PKG_VER=5.3.2_3
 ** Fix the problem and try again.

 ---  Processed 1: 0 done, 0 ignored, 0 skipped, 1 failed

 The port is trying to be upgraded with the same version as installed or?

The version in ports is 5.4.2.1, and that's the one you want to have.
I'm not sure why you didn't get it by using portsnap, but it's been in
the tree for a couple of days already.  Have you tried again?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


net-snmp port upgrade build error

2008-11-16 Thread R Dicaire
Hi folks,
After updating ports tree with portsnap fetch update, then running
pkg_version -l '', pkg_version shows net-snmp is upgradable:

pkg_version -l ''
net-snmp

pkg_replace net-snmp
---  Replacing 'net-snmp-5.3.2_3' with 'net-snmp-5.3.2.3'
---  Building '/usr/ports/net-mgmt/net-snmp53'

You may use the following build options:

WITH_INETADDRESS_HACK=yes   builds with the inetaddress hack
WITH_TKMIB=yes  Install a graphical Perl/Tk/SNMP based mib browser
WITHOUT_DUMMY_VALUES=yesProvide 'placeholder' dummy values where
the necessary information is not available.
WITHOUT_PERL=yesDo not install the perl modules along
with the rest
of the net-snmp toolkit.
WITHOUT_IPV6=yesDisable IPv6.

DEFAULT_SNMP_VERSION=3Default version of SNMP to use.
NET_SNMP_SYS_CONTACT=[EMAIL PROTECTED]
Default system contact.
NET_SNMP_SYS_LOCATION=somewhere
Default system location.
NET_SNMP_LOGFILE=/var/log/snmpd.log
Default log file location for snmpd.
NET_SNMP_PERSISTENTDIR=/var/net-snmp
Default directory for persistent data storage.
NET_SNMP_MIB_MODULES=host disman/event-mib smux mibII/mta_sendmail
mibII/tcpTable ucd-snmp/diskio
Optional mib modules that can be built into the
agent

===  net-snmp-5.3.2.3 has known vulnerabilities:
= net-snmp -- DoS for SNMP agent via crafted GETBULK request.
   Reference: 
http://www.FreeBSD.org/ports/portaudit/daf045d7-b211-11dd-a987-000c29ca8953.html
= Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp53.
** Command failed (exit code 1): make UPGRADE_PKG=net-snmp-5.3.2_3
UPGRADE_PKG_VER=5.3.2_3
** Fix the problem and try again.

---  Processed 1: 0 done, 0 ignored, 0 skipped, 1 failed

The port is trying to be upgraded with the same version as installed or?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMP

2008-10-02 Thread Marcel Grandemange
Anybody have docs on how to get ucd-snmp-4.2.7.1 working on FreeBSD?

I used to have net-snmp working but had to switch over as FreeRadius only
supported ucd-snmp.

 

 

Advice?

 

 

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question about SNMP

2008-08-21 Thread Milena

Hello,
I want  to learn  more about  using of SNMP functions. I saw files about 
SNMP and the functions in them, but I don't know how to use it. Is 
there  any description about order of using of SNMP functions. Thank you

Best Regards

Milena Karaivanova
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question about SNMP

2008-08-20 Thread Milena K
Hello,
I want  to learn  more about  using of SNMP functions. I saw files about
SNMP and the functions in them, but I don't know how to use it. Is there
any description about order of using of SNMP functions. Thank you
Best Regards

Milena Karaivanova
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mrtg peak on reboot / snmp-issue?

2008-06-15 Thread Olivier Mueller
Hello,

Small but curious thing on my freebsd-based systems: when a
server is rebooted, it generates a peak (or spike?) on the
network mrtg for all interfaces (here just before 1 am): 
http://8304.ch/om/stuff/mrtg_localhost_1-day.png

It happens with both net-snmp and ucd-snmp, with a quite standard 
mrtg installation (generated by cfgmaker). 

Do you have the same issue on your own servers?  All I can add, is
that there is not such a high traffic after a reboot, and that it
doesn't happen on similar linux-based systems.

Regards  a nice week to you,
Olivier


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mrtg peak on reboot / snmp-issue?

2008-06-15 Thread Hartmut Brandt

Olivier Mueller wrote:

Hello,

Small but curious thing on my freebsd-based systems: when a
server is rebooted, it generates a peak (or spike?) on the
network mrtg for all interfaces (here just before 1 am): 
http://8304.ch/om/stuff/mrtg_localhost_1-day.png


This could happen if either the daemon fails to correctly provide 
ifCounterDiscontinuityTime or mrtg fails to correctly interpret 
sysUpTime and/or ifCounterDiscontinuityTime.


It happens with both net-snmp and ucd-snmp, with a quite standard 
mrtg installation (generated by cfgmaker). 


Do you have the same issue on your own servers?  All I can add, is
that there is not such a high traffic after a reboot, and that it
doesn't happen on similar linux-based systems.



harti
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mrtg peak on reboot / snmp-issue?

2008-06-15 Thread Josh Carroll
Sorry the blackberry is truncating your original mail, but yes I have
noticed the same thing on my setup. In my case I am using a custom
rrdtool perl script. While not a fix for the actual problem, my
workaround has been to use a CDEF in my rrdgraph command to set the
value to 0 if it exceeds a sane maximum.

I'm not sure off hand if mrtg has a similar capability but you might
be able to set a max value for the graph so at least it won't skew the
graph and hide the rest of the data points.

Another option is to use a custom script to collect the values by
grabbing the data from snmp and then sanitizing them prior to
outputting to the value.

Regards,
Josh

On 6/15/08, Olivier Mueller [EMAIL PROTECTED] wrote:
 Hello,

 Small but curious thing on my freebsd-based systems: when a
 server is rebooted, it generates a peak (or spike?) on the
 network mrtg for all interfaces (here just before 1 am):
 http://8304.ch/om/stuff/mrtg_localhost_1-day.png

 It happens with both net-snmp and ucd-snmp, with a quite standard
 mrtg installation (generated by cfgmaker).

 Do you have the same issue on your own servers?  All I can add, is
 that there is not such a high traffic after a reboot, and that it
 doesn't happen on similar linux-based systems.

 Regards  a nice week to you,
 Olivier


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Net-snmp on SPARC64

2008-01-24 Thread shinny knight
G'day,

I'm trying to upgrade Net-snmp package on FreeBSD 6.2 SPARC-64 machine but no 
matters if I'm trying port install or precompiled by using 'pkg_add -r' is not 
working.
Let's start with precompiled package:

Uninstall previous one (which by the way was net-snmp-5.1.3)
Then:

[EMAIL PROTECTED] net-snmp]# pkg_add -r net-snmp
Fetching 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/sparc64/packages-6.2-release/Latest/net-snmp.tbz...
 Done.
pkg_add: warning: package 'net-snmp-5.2.3_3' requires 'perl-5.8.8', but 
'perl-5.8.8_1' is installed

[EMAIL PROTECTED] net-snmp]# cat /usr/local/etc/snmpd.conf
rocommunity public x.x.x.x
[EMAIL PROTECTED] net-snmp]# /usr/local/etc/rc.d/snmpd start
Starting snmpd.
[EMAIL PROTECTED] net-snmp]#
[EMAIL PROTECTED] ]# sockstat -4 |grep 161
root snmpd  39606 14 udp4   *:161 *:*
[EMAIL PROTECTED] ]# ps aux |grep snmpd
root39606  0.0  0.7 23408  7160  ??  S 9:57PM   0:00.58 
/usr/local/sbin/snmpd -c /usr/local/etc/snmpd.conf -p /var/run/snmpd.pid

[EMAIL PROTECTED] ]# cat /etc/rc.conf |grep snmpd
snmpd_enable=YES
snmpd_conffile=/usr/local/etc/snmpd.conf

[EMAIL PROTECTED] ]# ls /usr/local/etc/snmpd.conf
-rw-r--r--  1 root  wheel  138 Jan 24 21:53 /usr/local/etc/snmpd.conf

[EMAIL PROTECTED] ]# tail -f /var/log/snmpd.log
sysctl: physmem: Cannot allocate memory
NET-SNMP version 5.2.3
Connection from UDP: [a.a.a.a]:57287
no storage for OID
[EMAIL PROTECTED] ]# 

[EMAIL PROTECTED] ]# uname -a
FreeBSD dnscache1.ph.starcomms.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 
12 23:30:59 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  sparc64


[EMAIL PROTECTED] ]# sysctl -a |grep physmem
hw.physmem: 1063469056

Needles to say that I have plenty of free memory on the server, more than 350MB 
reported as free by top.
I've noticed that CPU insted is going high for snmpd process:


  PID USERNAME  THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
39879 root1 1320 51912K 31416K RUN  3:54 80.86% snmpd
 
A snmpwalk from other machines is not returning anything.
[EMAIL PROTECTED] ]# snmpwalk -v 1 -c public x.x.x.x
Timeout: No Response from x.x.x.x

Packets are reaching the server and appear also in snmpd.log file:

[EMAIL PROTECTED] catalin]# tail -f /var/log/snmpd.log
Connection from UDP: [x.x.x.x]:59023
Connection from UDP: [x.x.x.x]:59023
Connection from UDP: [x.x.x.x]:59023
Connection from UDP: [x.x.x.x]:59023
Connection from UDP: [x.x.x.x]:50194
Connection from UDP: [x.x.x.x]:50194
Connection from UDP: [x.x.x.x]:50194
Connection from UDP: [x.x.x.x]:50194
Connection from UDP: [x.x.x.x]:50194


No other error message in /var/log files except above one.
Only strange thing is that warning for Perl, but I guess 5.8.8_1 should be 
fully compatible with 5.8.8 since it's only a patch issues by maintainers.

Did anybody experienced issues with same? Any ideas what could be the reason?
TIA for help.


Best Regards,
Catalin

   
-
Never miss a thing.   Make Yahoo your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ntop install error related to net-snmp

2008-01-14 Thread Jeffrey Lehman
Hello all, I'm attempting to install Ntop 3.3_1 from ports and I'm hitting a 
snag during
compilation.  

Here is the error:
In file included from /usr/local/include/net-snmp/utilities.h:54,
 from /usr/local/include/net-snmp/net-snmp-includes.h:78,
 from iface.c:766:
/usr/local/include/net-snmp/library/container.h: In function 'CONTAINER_FREE':
/usr/local/include/net-snmp/library/container.h:416: error: lvalue required as 
left operand of
assignment

I've got the latest version of net-snmp installed - 5.3.2.

Any help would be appreciated.
Thanks!

-- 
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint = 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5


pgpqxmC92nUVw.pgp
Description: PGP signature


bsnmp and UCD-SNMP-MIB

2007-10-03 Thread Steve Wills
Is it possible to use the UCD-SNMP-MIB  with bsnmp? If so how? If  
not, are there plans for this? I'd prefer to use bsnmp instead of  
installing net-snmp, but I need the UCD MIB.


Thanks,
Steve

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMP MIBs for HP Proliant?

2007-09-14 Thread Christian Nielsen
Hy there!

 

I've got a question about HP Proliant Servers. I'm using Nagios and I want
to monitoring my servers with SNMP. I downloaded the MIB's from HP, but I
can't really find out the right OID for example finding out the
PhysicalDrive etc.

 

Can you give me some advice or any help?

 

Thanks !

 

Regards

cnielsen

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SNMP MIBs for HP Proliant?

2007-09-14 Thread Andrew Pantyukhin
On Mon, Sep 10, 2007 at 06:45:58PM +0200, Christian Nielsen wrote:
 I've got a question about HP Proliant Servers. I'm using Nagios and I want
 to monitoring my servers with SNMP. I downloaded the MIB's from HP, but I
 can't really find out the right OID for example finding out the
 PhysicalDrive etc.
 
 Can you give me some advice or any help?

Try net-mgmt/mbrowse
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Net-snmp dying with an ld-elf error at start on brand new FreeBSD install

2007-09-10 Thread Ivan Voras

Philip B wrote:


  Starting snmpd.
  /libexec/ld-elf.so.1: /usr/local/sbin/snmpd: Undefined symbol
PL_markstack_ptr



I've Googled on PL_markstack_ptr snmpd and got back only 5 hits,
none which seem to explain this problem at runtime.

I don't know even where to begin to dig.


It's usually symptomatic of having stale or otherwise incompatible 
libraries dynamically linked to new programs. One example can be trying 
to run binaries built on 7.x on a 6.x system.


I'd recommend rebuilding your application (snmpd) *and* all dependencies 
it has, e.g. portupgrade -R snmpd.




signature.asc
Description: OpenPGP digital signature


Net-snmp dying with an ld-elf error at start on brand new FreeBSD install

2007-09-09 Thread Philip B
I've just set up my 1st FreeBSD box to use as a home router/firewall,
replacing my recently departed Linksys all-in-one.

I installed the latest FeeBSD release, version 6.2-RELEASE.

I installed the Net-Snmp port, with the goal of eventually using it
with RRDTool to graph  monitor activity on the box.

After configuring my snmpd.conf file, and enabling Snmp in rc.conf, I
try to start the snmp daemon with

  /usr/local/etc/rc.d/snmpd start

Unfortunately, it doesn't launch and reports an error in my shell.

  Starting snmpd.
  /libexec/ld-elf.so.1: /usr/local/sbin/snmpd: Undefined symbol
PL_markstack_ptr

I've tailed /var/log/messages, but there's nothing reported.

I've Googled on PL_markstack_ptr snmpd and got back only 5 hits,
none which seem to explain this problem at runtime.

I don't know even where to begin to dig.

Any wise old folks in here lend a hand?

Phil
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: net-snmp: portupgrade or clean instalation from ports throughNFS failed again and again

2007-04-07 Thread Daniel Dvořák
Yes, you were right! It was enough to rename .PL to .pl with Makefile.

So I guess the net-snmp port is broken, isn´t it ?

Dan

-Original Message-
From: Garrett Cooper [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 1, 2007 03:41 AM
To: Daniel Dvořák
Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
Subject: Re: net-snmp: portupgrade or clean instalation from ports throughNFS 
failed again and again

My guess is that that particular error message is a typo because usually 
Perl scripts are prefixed like {blah}.pl, not {blah}.PL.
-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp: portupgrade or clean instalation from ports throughNFS failed again and again

2007-04-07 Thread Garrett Cooper

Daniel Dvořák wrote:

Yes, you were right! It was enough to rename .PL to .pl with Makefile.

So I guess the net-snmp port is broken, isn´t it ?

Dan

-Original Message-
From: Garrett Cooper [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 1, 2007 03:41 AM

To: Daniel Dvořák
Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
Subject: Re: net-snmp: portupgrade or clean instalation from ports throughNFS 
failed again and again

My guess is that that particular error message is a typo because usually 
Perl scripts are prefixed like {blah}.pl, not {blah}.PL.

-Garrett

  
Either that or a config file's goofed up. I tried to install some PM 
from CPAN recently and all of the Makefiles were once with .PL, not .pl. 
Hmmm...

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


net-snmp: portupgrade or clean instalation from ports through NFS failed again and again

2007-03-31 Thread Daniel Dvořák
Hi all,

I have a wrap PC Engine with CF card.

I want do a upgrade of net-snmp-5.2.3_3 to latest version.

Of cource I do not want to compile the whole port on CF card,

so the directory /usr/ports/ is mounted through NFS.

When I do portupgrade net-snmp or make install clean, it always fails with the 
same error, see below.

What may I do to compile it through NFS successfully ?

SERVER site:

# /etc/rc.d/nfsd status
nfsd is running as pid 1254 1255 1256 1257 1258.
# /etc/rc.d/mountd status
mountd is running as pid 1245.
# /etc/rc.d/rpcbind status
rpcbind is running as pid 1210.
# /etc/rc.d/nfslocking  status 

If it is with or without, it does not influence the error.

statd is running as pid 1264.
lockd is running as pid 1269 1275.

Thanks

Dan

# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
10.X.Y.Z:/usr/ports on /usr/ports (nfs)

# cd /usr/ports/net-mgmt/net-snmp

# make install clean
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/perl5.8.8 - found
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/autoconf259 - found
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/libtool - found
===  Configuring for net-snmp-5.3.1_3
autom4te259: cannot lock autom4te.cache/requests with mode 2 (perhaps you are 
running make -j on a lame NFS client?): Operation not supported
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.
#

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp: portupgrade or clean instalation from ports through NFS failed again and again

2007-03-31 Thread Jonathan Horne
On Sat, 31 Mar 2007 13:49:32 +0200
Daniel Dvořák [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have a wrap PC Engine with CF card.
 
 I want do a upgrade of net-snmp-5.2.3_3 to latest version.
 
 Of cource I do not want to compile the whole port on CF card,
 
 so the directory /usr/ports/ is mounted through NFS.
 
 When I do portupgrade net-snmp or make install clean, it always fails with 
 the same error, see below.
 
 What may I do to compile it through NFS successfully ?
 
 SERVER site:
 
 # /etc/rc.d/nfsd status
 nfsd is running as pid 1254 1255 1256 1257 1258.
 # /etc/rc.d/mountd status
 mountd is running as pid 1245.
 # /etc/rc.d/rpcbind status
 rpcbind is running as pid 1210.
 # /etc/rc.d/nfslocking  status 
 
 If it is with or without, it does not influence the error.
 
 statd is running as pid 1264.
 lockd is running as pid 1269 1275.
 
 Thanks
 
 Dan
 
 # mount
 /dev/ad0s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 10.X.Y.Z:/usr/ports on /usr/ports (nfs)
 
 # cd /usr/ports/net-mgmt/net-snmp
 
 # make install clean
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/perl5.8.8 - found
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/autoconf259 - found
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/libtool - found
 ===  Configuring for net-snmp-5.3.1_3
 autom4te259: cannot lock autom4te.cache/requests with mode 2 (perhaps you are 
 running make -j on a lame NFS client?): Operation not supported
 *** Error code 1
 
 Stop in /usr/ports/net-mgmt/net-snmp.
 #
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

you need to specify a different place for your workdirs to go, by adding a line 
like this to /etc/make.conf:

WRKDIRPREFIX=/usr/tmp

cheers,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp: portupgrade or clean instalation from ports through NFS failed again and again

2007-03-31 Thread Brian A. Seklecki
I've worked around this before with -L to mount_nfs.

The whole conundrum of compiling/updating something as huge as Net-SNMP
on a compact flash hardware platform is one of goals that my
bsd-appliance project hopes to provide convenient work-around for.

~BAS

On Sat, 2007-03-31 at 08:09 -0500, Jonathan Horne wrote:
 On Sat, 31 Mar 2007 13:49:32 +0200
 Daniel Dvořák [EMAIL PROTECTED] wrote:
 
  Hi all,
  
  I have a wrap PC Engine with CF card.
  
  I want do a upgrade of net-snmp-5.2.3_3 to latest version.
  
  Of cource I do not want to compile the whole port on CF card,
  
  so the directory /usr/ports/ is mounted through NFS.
  
  When I do portupgrade net-snmp or make install clean, it always fails with 
  the same error, see below.
  
  What may I do to compile it through NFS successfully ?
  
  SERVER site:
  
  # /etc/rc.d/nfsd status
  nfsd is running as pid 1254 1255 1256 1257 1258.
  # /etc/rc.d/mountd status
  mountd is running as pid 1245.
  # /etc/rc.d/rpcbind status
  rpcbind is running as pid 1210.
  # /etc/rc.d/nfslocking  status 
  
  If it is with or without, it does not influence the error.
  
  statd is running as pid 1264.
  lockd is running as pid 1269 1275.
  
  Thanks
  
  Dan
  
  # mount
  /dev/ad0s1a on / (ufs, local)
  devfs on /dev (devfs, local)
  10.X.Y.Z:/usr/ports on /usr/ports (nfs)
  
  # cd /usr/ports/net-mgmt/net-snmp
  
  # make install clean
  ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/perl5.8.8 - found
  ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/autoconf259 - found
  ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/libtool - found
  ===  Configuring for net-snmp-5.3.1_3
  autom4te259: cannot lock autom4te.cache/requests with mode 2 (perhaps you 
  are running make -j on a lame NFS client?): Operation not supported
  *** Error code 1
  
  Stop in /usr/ports/net-mgmt/net-snmp.
  #
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  
 
 you need to specify a different place for your workdirs to go, by adding a 
 line like this to /etc/make.conf:
 
 WRKDIRPREFIX=/usr/tmp
 
 cheers,
 jonathan
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: net-snmp: portupgrade or clean instalation from ports through NFS failed again and again

2007-03-31 Thread Daniel Dvořák
Ok thanks for your quick reply. It helped me ... for a while.

I did what you advised me and it worked, but after some comilling time this new 
error appeared:

Makefile out-of-date with respect to Makefile.PL 
/usr/local/lib/perl5/5.8.8/mach/Config.pm 
/usr/local/lib/perl5/5.8.8/mach/CORE/config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean  /dev/null 21
/usr/local/bin/perl Makefile.PL
ERROR from evaluation of 
/usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1/perl/default_store/Makefile.PL:
 You need to install net-snmp first (I can't find net-snmp-config) at 
./Makefile.PL line 83.
*** Error code 2

Stop in /usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1/perl.
*** Error code 1

Stop in /usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.


I have compilled net-snmp for many times on many platforms even this wpra pc 
engine, but always with success. What is wrong with this net-snmp version 5.3.X 
?

Dan
-Original Message-
From: Jonathan Horne [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 31, 2007 3:10 PM
To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]
Subject: Re: net-snmp: portupgrade or clean instalation from ports through NFS 
failed again and again

On Sat, 31 Mar 2007 13:49:32 +0200
Daniel Dvořák [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have a wrap PC Engine with CF card.
 
 I want do a upgrade of net-snmp-5.2.3_3 to latest version.
 
 Of cource I do not want to compile the whole port on CF card,
 
 so the directory /usr/ports/ is mounted through NFS.
 
 When I do portupgrade net-snmp or make install clean, it always fails with 
 the same error, see below.
 
 What may I do to compile it through NFS successfully ?
 
 SERVER site:
 
 # /etc/rc.d/nfsd status
 nfsd is running as pid 1254 1255 1256 1257 1258.
 # /etc/rc.d/mountd status
 mountd is running as pid 1245.
 # /etc/rc.d/rpcbind status
 rpcbind is running as pid 1210.
 # /etc/rc.d/nfslocking  status 
 
 If it is with or without, it does not influence the error.
 
 statd is running as pid 1264.
 lockd is running as pid 1269 1275.
 
 Thanks
 
 Dan
 
 # mount
 /dev/ad0s1a on / (ufs, local)
 devfs on /dev (devfs, local)
 10.X.Y.Z:/usr/ports on /usr/ports (nfs)
 
 # cd /usr/ports/net-mgmt/net-snmp
 
 # make install clean
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/perl5.8.8 - found
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/autoconf259 - found
 ===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/libtool - found
 ===  Configuring for net-snmp-5.3.1_3
 autom4te259: cannot lock autom4te.cache/requests with mode 2 (perhaps you are 
 running make -j on a lame NFS client?): Operation not supported
 *** Error code 1
 
 Stop in /usr/ports/net-mgmt/net-snmp.
 #
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

you need to specify a different place for your workdirs to go, by adding a line 
like this to /etc/make.conf:

WRKDIRPREFIX=/usr/tmp

cheers,
jonathan

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp: portupgrade or clean instalation from ports through NFS failed again and again

2007-03-31 Thread Garrett Cooper

Daniel Dvořák wrote:

Ok thanks for your quick reply. It helped me ... for a while.

I did what you advised me and it worked, but after some comilling time this new 
error appeared:

Makefile out-of-date with respect to Makefile.PL 
/usr/local/lib/perl5/5.8.8/mach/Config.pm 
/usr/local/lib/perl5/5.8.8/mach/CORE/config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean  /dev/null 21
/usr/local/bin/perl Makefile.PL
ERROR from evaluation of 
/usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1/perl/default_store/Makefile.PL:
 You need to install net-snmp first (I can't find net-snmp-config) at 
./Makefile.PL line 83.
*** Error code 2

Stop in /usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1/perl.
*** Error code 1

Stop in /usr/tmp/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.3.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.


I have compilled net-snmp for many times on many platforms even this wpra pc 
engine, but always with success. What is wrong with this net-snmp version 5.3.X 
?

Dan
-Original Message-
From: Jonathan Horne [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 31, 2007 3:10 PM

To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]
Subject: Re: net-snmp: portupgrade or clean instalation from ports through NFS 
failed again and again

On Sat, 31 Mar 2007 13:49:32 +0200
Daniel Dvořák [EMAIL PROTECTED] wrote:

  

Hi all,

I have a wrap PC Engine with CF card.

I want do a upgrade of net-snmp-5.2.3_3 to latest version.

Of cource I do not want to compile the whole port on CF card,

so the directory /usr/ports/ is mounted through NFS.

When I do portupgrade net-snmp or make install clean, it always fails with the 
same error, see below.

What may I do to compile it through NFS successfully ?

SERVER site:

# /etc/rc.d/nfsd status
nfsd is running as pid 1254 1255 1256 1257 1258.
# /etc/rc.d/mountd status
mountd is running as pid 1245.
# /etc/rc.d/rpcbind status
rpcbind is running as pid 1210.
# /etc/rc.d/nfslocking  status 


If it is with or without, it does not influence the error.

statd is running as pid 1264.
lockd is running as pid 1269 1275.

Thanks

Dan

# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
10.X.Y.Z:/usr/ports on /usr/ports (nfs)

# cd /usr/ports/net-mgmt/net-snmp

# make install clean
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/perl5.8.8 - found
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/autoconf259 - found
===   net-snmp-5.3.1_3 depends on file: /usr/local/bin/libtool - found
===  Configuring for net-snmp-5.3.1_3
autom4te259: cannot lock autom4te.cache/requests with mode 2 (perhaps you are 
running make -j on a lame NFS client?): Operation not supported
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.
#

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




you need to specify a different place for your workdirs to go, by adding a line 
like this to /etc/make.conf:

WRKDIRPREFIX=/usr/tmp

cheers,
jonathan
  
My guess is that that particular error message is a typo because usually 
Perl scripts are prefixed like {blah}.pl, not {blah}.PL.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1

2006-11-14 Thread gahn
thanks.

i didn't recall that i activated any snmp but there is
a bsnmpd running though:

root snmpd  414   13 tcp4   *:199 
   *:*
root snmpd  414   14 udp4   *:161 
   *:*
root snmptrapd  408   10 udp4   *:162 
   *:*

how could i remove it? in rc.conf? or else?

thanks



--- Frank Staals [EMAIL PROTECTED] wrote:

 gahn wrote:
  hi:
 
  is a generic snmp running with 6.1? i installed
  net-snmp on 6.1 and it seems to have conflict with
  some another snmp process:
 
  [init_smux] bind failed: Address already in use
  Error opening specified endpoint udp:161
  Server Exiting with code 1
 
  i have no anothe snmp application running except
 the
  net-snmp.
 
  any ideas?
 
 
 
 
   
 


  Cheap talk?
  Check out Yahoo! Messenger's low PC-to-Phone call
 rates.
  http://voice.yahoo.com
  ___
  freebsd-questions@freebsd.org mailing list
 

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 

 I believe there is no smnp daemon running by
 default. Maybe you 
 accidentally allready started it ? You might check
 it with sockstat -4  
 | grep 161
 
 -- 
 -Frank Staals
 
 
 



 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


net-snmp and 6.1

2006-11-14 Thread gahn
hi:

is a generic snmp running with 6.1? i installed
net-snmp on 6.1 and it seems to have conflict with
some another snmp process:

[init_smux] bind failed: Address already in use
Error opening specified endpoint udp:161
Server Exiting with code 1

i have no anothe snmp application running except the
net-snmp.

any ideas?




 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1

2006-11-14 Thread gahn
thanks. it definitely helped...-:)

really i can't recall i ever activate the bsnmpd.

best

--- Frank Staals [EMAIL PROTECTED] wrote:

 gahn wrote:
  thanks.
 
  i didn't recall that i activated any snmp but
 there is
  a bsnmpd running though:
 
  root snmpd  414   13 tcp4   *:199 

 *:*
  root snmpd  414   14 udp4   *:161 

 *:*
  root snmptrapd  408   10 udp4   *:162 

 *:*
 
  how could i remove it? in rc.conf? or else?
 
  thanks
 
 
 
  --- Frank Staals [EMAIL PROTECTED] wrote:
 

  gahn wrote:
  
  hi:
 
  is a generic snmp running with 6.1? i installed
  net-snmp on 6.1 and it seems to have conflict
 with
  some another snmp process:
 
  [init_smux] bind failed: Address already in use
  Error opening specified endpoint udp:161
  Server Exiting with code 1
 
  i have no anothe snmp application running except

  the
  
  net-snmp.
 
  any ideas?
 
 
 
 
   
 

 



  Cheap talk?
  Check out Yahoo! Messenger's low PC-to-Phone
 call

  rates.
  
  http://voice.yahoo.com
  ___
  freebsd-questions@freebsd.org mailing list
 

 

http://lists.freebsd.org/mailman/listinfo/freebsd-questions

  To unsubscribe, send any mail to

  [EMAIL PROTECTED]
  


  I believe there is no smnp daemon running by
  default. Maybe you 
  accidentally allready started it ? You might
 check
  it with sockstat -4  
  | grep 161
 
  -- 
  -Frank Staals
 
 
 
  
 
 
 
   
 


  Cheap talk?
  Check out Yahoo! Messenger's low PC-to-Phone call
 rates.
  http://voice.yahoo.com
 
 

 Hmm apparantly there IS a bsndmp running. Didn't see
 that one on my 
 server, anyway on my laptop it wasn't running as I
 apparantly disabled it:
 
 [EMAIL PROTECTED] cat /etc/rc.conf | grep snmpd
 bsnmpd_enable=NO
 
 that might help I guess
 
 -- 
 -Frank Staals
 
 
 ___
 freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 



 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1

2006-11-14 Thread Frank Staals

gahn wrote:

hi:

is a generic snmp running with 6.1? i installed
net-snmp on 6.1 and it seems to have conflict with
some another snmp process:

[init_smux] bind failed: Address already in use
Error opening specified endpoint udp:161
Server Exiting with code 1

i have no anothe snmp application running except the
net-snmp.

any ideas?




 


Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  
I believe there is no smnp daemon running by default. Maybe you 
accidentally allready started it ? You might check it with sockstat -4  
| grep 161


--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1 (confusion)

2006-11-14 Thread gahn
the entry bsnmpd_enable=NO does works and the
result from sockstat showed there is no snmpd
running. then i added following entries in rc.conf:

snmpd_enable=YES
snmpd_flags=-a -p /var/run/snmpd.pid
snmptrapd_enable=YES
snmptrapd_flags=-a -p /var/run/snmptrapd.pid
snmpd_conffile=/usr/local/etc/snmp/snmpd.conf

well, they started snmpd alright, but i am not sure
which one: bsnmpd or net-snmpd since i still have
error messages in snmpd.log:

[init_smux] bind failed: Address already in use
Error opening specified endpoint udp:161
Server Exiting with code 1

any ideas?




--- Frank Staals [EMAIL PROTECTED] wrote:

 gahn wrote:
  thanks.
 
  i didn't recall that i activated any snmp but
 there is
  a bsnmpd running though:
 
  root snmpd  414   13 tcp4   *:199 

 *:*
  root snmpd  414   14 udp4   *:161 

 *:*
  root snmptrapd  408   10 udp4   *:162 

 *:*
 
  how could i remove it? in rc.conf? or else?
 
  thanks
 
 
 
  --- Frank Staals [EMAIL PROTECTED] wrote:
 

  gahn wrote:
  
  hi:
 
  is a generic snmp running with 6.1? i installed
  net-snmp on 6.1 and it seems to have conflict
 with
  some another snmp process:
 
  [init_smux] bind failed: Address already in use
  Error opening specified endpoint udp:161
  Server Exiting with code 1
 
  i have no anothe snmp application running except

  the
  
  net-snmp.
 
  any ideas?
 
 
 
 
   
 

 



  Cheap talk?
  Check out Yahoo! Messenger's low PC-to-Phone
 call

  rates.
  
  http://voice.yahoo.com
  ___
  freebsd-questions@freebsd.org mailing list
 

 

http://lists.freebsd.org/mailman/listinfo/freebsd-questions

  To unsubscribe, send any mail to

  [EMAIL PROTECTED]
  


  I believe there is no smnp daemon running by
  default. Maybe you 
  accidentally allready started it ? You might
 check
  it with sockstat -4  
  | grep 161
 
  -- 
  -Frank Staals
 
 
 
  
 
 
 
   
 


  Cheap talk?
  Check out Yahoo! Messenger's low PC-to-Phone call
 rates.
  http://voice.yahoo.com
 
 

 Hmm apparantly there IS a bsndmp running. Didn't see
 that one on my 
 server, anyway on my laptop it wasn't running as I
 apparantly disabled it:
 
 [EMAIL PROTECTED] cat /etc/rc.conf | grep snmpd
 bsnmpd_enable=NO
 
 that might help I guess
 
 -- 
 -Frank Staals
 
 
 ___
 freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 



 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1 (confusion)

2006-11-14 Thread Bill Moran
In response to gahn [EMAIL PROTECTED]:

 the entry bsnmpd_enable=NO does works and the
 result from sockstat showed there is no snmpd
 running. then i added following entries in rc.conf:
 
 snmpd_enable=YES
 snmpd_flags=-a -p /var/run/snmpd.pid
 snmptrapd_enable=YES
 snmptrapd_flags=-a -p /var/run/snmptrapd.pid
 snmpd_conffile=/usr/local/etc/snmp/snmpd.conf
 
 well, they started snmpd alright, but i am not sure
 which one: bsnmpd or net-snmpd since i still have
 error messages in snmpd.log:
 
 [init_smux] bind failed: Address already in use
 Error opening specified endpoint udp:161
 Server Exiting with code 1

Are you sure those messages aren't old, from before you disabled bsnmpd?

sockstat -4 should show you what is listening on that port.  net-snmpd
starts a process called snmpd, so you should be able to tell which
one is running by the process name.  If bsnmpd is still running, a
killall should shut it down.

-- 
Bill Moran
Collaborative Fusion Inc.



IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1 (confusion)

2006-11-14 Thread gahn
thanks bill:

no, i did cat  /var/log/snmpd.log every time i
restarted the server.


here is the error message after i disabled snmpd in
rc.conf (with entry bsnmpd=NO):

[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]
TERM or STOP signal...  shutting down...

here is the result of sockstat -4l:

root sshd   440   4  tcp4   *:22  
   *:*
root httpd  350   3  tcp46  *:80  
   *:*
root httpd  350   4  tcp4   *:*   
   *:*
root syslogd290   7  udp4   *:514 
   *:*




--- Bill Moran [EMAIL PROTECTED] wrote:

 In response to gahn [EMAIL PROTECTED]:
 
  the entry bsnmpd_enable=NO does works and the
  result from sockstat showed there is no snmpd
  running. then i added following entries in
 rc.conf:
  
  snmpd_enable=YES
  snmpd_flags=-a -p /var/run/snmpd.pid
  snmptrapd_enable=YES
  snmptrapd_flags=-a -p /var/run/snmptrapd.pid
  snmpd_conffile=/usr/local/etc/snmp/snmpd.conf
  
  well, they started snmpd alright, but i am not
 sure
  which one: bsnmpd or net-snmpd since i still have
  error messages in snmpd.log:
  
  [init_smux] bind failed: Address already in use
  Error opening specified endpoint udp:161
  Server Exiting with code 1
 
 Are you sure those messages aren't old, from before
 you disabled bsnmpd?
 
 sockstat -4 should show you what is listening on
 that port.  net-snmpd
 starts a process called snmpd, so you should be
 able to tell which
 one is running by the process name.  If bsnmpd is
 still running, a
 killall should shut it down.
 
 -- 
 Bill Moran
 Collaborative Fusion Inc.
 
 
 
 IMPORTANT: This message contains confidential
 information and is intended only for the individual
 named. If the reader of this message is not an
 intended recipient (or the individual responsible
 for the delivery of this message to an intended
 recipient), please be advised that any re-use,
 dissemination, distribution or copying of this
 message is prohibited.  Please notify the sender
 immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your
 system.
 
 
 ___
 freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: net-snmp and 6.1

2006-11-14 Thread Frank Staals

gahn wrote:

thanks.

i didn't recall that i activated any snmp but there is
a bsnmpd running though:

root snmpd  414   13 tcp4   *:199 
   *:*
root snmpd  414   14 udp4   *:161 
   *:*
root snmptrapd  408   10 udp4   *:162 
   *:*


how could i remove it? in rc.conf? or else?

thanks



--- Frank Staals [EMAIL PROTECTED] wrote:

  

gahn wrote:


hi:

is a generic snmp running with 6.1? i installed
net-snmp on 6.1 and it seems to have conflict with
some another snmp process:

[init_smux] bind failed: Address already in use
Error opening specified endpoint udp:161
Server Exiting with code 1

i have no anothe snmp application running except
  

the


net-snmp.

any ideas?




 

  


  

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call
  

rates.


http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list

  

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  

To unsubscribe, send any mail to
  

[EMAIL PROTECTED]

  
  

I believe there is no smnp daemon running by
default. Maybe you 
accidentally allready started it ? You might check
it with sockstat -4  
| grep 161


--
-Frank Staals








 


Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com


  
Hmm apparantly there IS a bsndmp running. Didn't see that one on my 
server, anyway on my laptop it wasn't running as I apparantly disabled it:


[EMAIL PROTECTED] cat /etc/rc.conf | grep snmpd
bsnmpd_enable=NO

that might help I guess

--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ntop + SNMP

2006-10-08 Thread Warren Liddell
 You don't.

 If you wish to use SNMP to monitor traffic voumes, etc., you'll need
 to use something like mrtg, cacti or nagios.

 ntop doesn't know or care about SNMP, any more than does, say, tcpdump
 or WireShark.

 Kurt

Then why does it have support//plugin for SNMP if it wont/cant monitor it to 
ask the obvious ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ntop + SNMP

2006-10-08 Thread Dan Nelson
In the last episode (Oct 08), Warren Liddell said:
  You don't.
 
  If you wish to use SNMP to monitor traffic voumes, etc., you'll need
  to use something like mrtg, cacti or nagios.
 
  ntop doesn't know or care about SNMP, any more than does, say, tcpdump
  or WireShark.
 
  Kurt
 
 Then why does it have support//plugin for SNMP if it wont/cant
 monitor it to ask the obvious ?

I think it's more for allowing ntop to provide status via SNMP (i.e. as
an agent) than using snmp to collect info from remote machines. 
There's really no way to use SNMP to gather the info ntop needs.  All
you can get from snmp is network utilization, where ntop wants to see
raw packets (or at minimum, ip+port+size data per flow).

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ntop + SNMP

2006-10-07 Thread Warren Liddell
Running FreeBSD 6.2-PRERELEASE and im wanting some info on how to get Ntop to 
use SNMP to monitor traffic as all traffic goes through my router/modem which 
has SNMP support.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ntop + SNMP

2006-10-07 Thread Kurt Buff

On 10/7/06, Warren Liddell [EMAIL PROTECTED] wrote:

Running FreeBSD 6.2-PRERELEASE and im wanting some info on how to get Ntop to
use SNMP to monitor traffic as all traffic goes through my router/modem which
has SNMP support.


You don't.

If you wish to use SNMP to monitor traffic voumes, etc., you'll need
to use something like mrtg, cacti or nagios.

ntop doesn't know or care about SNMP, any more than does, say, tcpdump
or WireShark.

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMP mib elements are zero on 6.1

2006-08-09 Thread steve

Howdy!

I am upgrading a server farm from FreeBSD 4.10 to
FreeBSD 6.1. I am running net-snmp and if I query a
fbsd 6.1 machine I get zero values for many MIB entries.

eg for a 6.1 machine I get many bogus entries.
(but some good like laLoad.1 is ok)

snmpwalk -v 2c -c public 6.1server enterprises

[snip]
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 1877672
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 0
[snip]
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0
[snip]


but for  for a 4.10 machine I get good values

snmpwalk -v 2c -c public 4.10server enterprises

[snip]
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 854392
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 1664
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 47936
[snip]
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 25
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 27
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 46
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 241897859
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 225612717
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 765671208
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 157494473
[snip]


Ideas? Is a bug in 6.1? or net-snmp or am I missing
something?

thanx - steve


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SNMP mib elements are zero on 6.1

2006-08-09 Thread steve

 Howdy!

   I am upgrading a server farm from FreeBSD 4.10 to
 FreeBSD 6.1. I am running net-snmp and if I query a
 fbsd 6.1 machine I get zero values for many MIB entries.

  Ooops. running snmpd as non-root causes this.

  Will investigate. Works ok on 4.10 as non-root


   -steve

 eg for a 6.1 machine I get many bogus entries.
 (but some good like laLoad.1 is ok)

 snmpwalk -v 2c -c public 6.1server enterprises

 [snip]
 UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 0
 UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
 UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 1877672
 UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 0
 UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: -1
 UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: -1
 UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: -1
 UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: -1
 UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 0
 [snip]
 UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
 UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
 UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 0
 UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 0
 [snip]


 but for  for a 4.10 machine I get good values

 snmpwalk -v 2c -c public 4.10server enterprises

 [snip]
 UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 0
 UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
 UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 854392
 UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 1664
 UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 47936
 [snip]
 UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 25
 UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 27
 UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 46
 UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 241897859
 UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
 UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 225612717
 UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 765671208
 UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 157494473
 [snip]


   Ideas? Is a bug in 6.1? or net-snmp or am I missing
 something?

   thanx - steve




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ports net-snmp to support 64-bit snmp counter

2006-05-03 Thread adrian kok
Hi All

I am running freebsd 4.11 release and want to have
net-snmp to support 64 bit counter

I deinstall the net-snmp but don't know how to
re-complie  the port to support 
--enable-mfd-rewrites

I changed the Makefile and recomplied it and it
doesn't work

snmpwalk -v 2c -c x localhost ifHighSpeed
IF-MIB::ifHighSpeed = No Such Object available on this
agent at this OID

Thank you for your help


CONFIGURE_ARGS+=--enable-shared --enable-internal-md5
\
--enable-mfd-rewrites \
   
--with-mib-modules=${_NET_SNMP_MIB_MODULES} \
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports net-snmp to support 64-bit snmp counter

2006-05-03 Thread Dan Nelson
In the last episode (May 03), adrian kok said:
 I am running freebsd 4.11 release and want to have
 net-snmp to support 64 bit counter

FreeBSD's internal network counters are 32-bit, so it won't help you.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports net-snmp to support 64-bit snmp counter

2006-05-03 Thread adrian kok
Dear Nelson

Thank you for your mail

Do you know and have experience how to solve this 
Gigabit speed, net-snmp, and overflows issue?

http://lists.ee.ethz.ch/mrtg/msg30587.html

Thank you again


--- Dan Nelson [EMAIL PROTECTED] wrote:

 In the last episode (May 03), adrian kok said:
  I am running freebsd 4.11 release and want to have
  net-snmp to support 64 bit counter
 
 FreeBSD's internal network counters are 32-bit, so
 it won't help you.
 
 -- 
   Dan Nelson
   [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports net-snmp to support 64-bit snmp counter

2006-05-03 Thread Dan Nelson
In the last episode (May 04), adrian kok said:
 Dear Nelson
 
 Thank you for your mail
 
 Do you know and have experience how to solve this 
 Gigabit speed, net-snmp, and overflows issue?
 
 http://lists.ee.ethz.ch/mrtg/msg30587.html

What I do instead of querying the servers directly, is query the switch
ports they are plugged into.  I use Cisco and HP switches and they have
supported 64-bit SNMP counters for years.  For servers attached to
unmanaged switches, I poll their 32-bit counters every minute and
accept that I can't graph very high traffic rates.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Support for IPv6 SNMP and IPv6 SYSLOG

2006-02-10 Thread McGuerty, Jay S.
Hi,

I've looked through the release notes for the latest version of FreeBSD and
it

is not clear whether it supports SNMPv6 and SYSLOGv6.Can you confirm

IPv6 support for these protocols?

 

Thanks,

Jay

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Support for IPv6 SNMP and IPv6 SYSLOG

2006-02-10 Thread McGuerty, Jay S.
Hi,

Update, specifically does FreeBSD ucd-snmp patch function as a SNMP Server?

 

  _  

From: McGuerty, Jay S. 
Sent: Friday, February 10, 2006 9:15 AM
To: 'freebsd-questions@FreeBSD.org'
Subject: Support for IPv6 SNMP and IPv6 SYSLOG

 

Hi,

I've looked through the release notes for the latest version of FreeBSD and
it

is not clear whether it supports SNMPv6 and SYSLOGv6.Can you confirm

IPv6 support for these protocols?

 

Thanks,

Jay

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems installing SNMP from ports

2006-02-03 Thread Jon Brisbin
I just installed SNMPD from ports not an hour ago on a system I built 
yesterday. No problems.


Now I try and install SNMP on another system that is running a non-PAE 
kernel, which I built a month ago, but on which almost everything is on 
the same version as the previous box. When I try and install net-snmp4 I 
get this:


+--( [EMAIL PROTECTED] )-(Fri, Feb 03 10:41 AM)--
+-( /usr/ports/net-mgmt/net-snmp4 ):# make install

You may use the following build option(s):

   WITHOUT_SSL=yes   Disable the OpenSSL support.

===  Vulnerability check disabled, database not found
= ucd-snmp-4.2.6.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
= Attempting to fetch from 
http://heanet.dl.sourceforge.net/sourceforge/net-snmp/.

ucd-snmp-4.2.6.tar.gz 100% of 1677 kB  297 kBps
===  Extracting for ucd-snmp-4.2.6_3
= MD5 Checksum OK for ucd-snmp-4.2.6.tar.gz.
= No SHA256 checksum recorded for ucd-snmp-4.2.6.tar.gz.
===   ucd-snmp-4.2.6_3 depends on file: /usr/local/bin/perl5.8.6 - found
===  Patching for ucd-snmp-4.2.6_3
===   ucd-snmp-4.2.6_3 depends on file: /usr/local/bin/perl5.8.6 - found
===  Applying FreeBSD patches for ucd-snmp-4.2.6_3
===   ucd-snmp-4.2.6_3 depends on file: /usr/local/bin/perl5.8.6 - found
===  Configuring for ucd-snmp-4.2.6_3
===  Building for ucd-snmp-4.2.6_3
make: cannot open Makefile.
*** Error code 2

Stop in /usr/ports/net-mgmt/net-snmp4.

I have WITHOUT_SSL=yes set in make.conf because I had seen another ML 
discussion from 2003 that mentioned there might be a problem there.


I just cvsup'd my ports tree immediately before running this command. 
I'm as up-to-date as one can possibly get :-)


Any help you can give here would be greatly appreciated. I'm trying to 
get this development box added into the monitors for this management 
software I'm trying out... ( 
http://manageengine.adventnet.com/products/applications_manager/ ) My 
production box is already done, but I'd like to have development in 
there too.


Thanks!

Jon Brisbin
Webmaster
NPC International, Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NAT+NET-SNMP Problem+FreeBSD-4.10

2005-10-23 Thread Edwin D. Vinas
Hi,
 This is just a follow-up on my previous posting on my problem with snmp. My
setup involves 1 DSL interface and 1 LAN interface in a FreeBSD-4.10 which
is configured as gateway and NAT router. I haven't been able to query any
SNMP data from this machine which acts as my DSL router. Was it a problem
with NAT?

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: NAT+NET-SNMP Problem+FreeBSD-4.10

2005-10-23 Thread Edwin D. Vinas
Applications that work with identified devices, or that actually identify
devices (such as the *Simple Network Management Protocol* [SNMP] and DNS)
require very careful configuration when operating an a NAT environment. -
Source:
http://www.cisco.com/en/US/about/ac123/ac147/archived_issues/ipj_7-3/anatomy.html
 Am I really right to assume that my SNMP problem was a missing
configuration in NAT?


-- Forwarded message --
From: Edwin D. Vinas [EMAIL PROTECTED]
Date: Oct 23, 2005 8:26 AM
Subject: NAT+NET-SNMP Problem+FreeBSD-4.10
To: freebsd-questions@freebsd.org

 Hi,
 This is just a follow-up on my previous posting on my problem with snmp. My
setup involves 1 DSL interface and 1 LAN interface in a FreeBSD-4.10 which
is configured as gateway and NAT router. I haven't been able to query any
SNMP data from this machine which acts as my DSL router. Was it a problem
with NAT?

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--


--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMP problem in FreeBSD-4.10 has been solved

2005-10-23 Thread Edwin D. Vinas
If you are having some problems with net-snmp in FreeBSD-4.10:
- Don't use latest net-snmp from sourceforge.
- Use the /usr/ports/net-mgmt/net-snmp4/ which is the original UCD-SNMP
package.
- Use also the mrtg package which comes with ports.
 Now, I can already monitor my DSL link!

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMP in FreeBSD server

2005-10-22 Thread Edwin D. Vinas
Hi,
 I'm running a FreeBSD server on a DSL and I wan't to monitor the link
utilization of it using MRTG and NET-SNMP. I installed net-snmp using ports
but when I tried running snmpd and querying simple snmpwalk and cfgmaker, I
got an error as shown below. I also tried installing net-snmp from source
from sourceforge but still snmp is not responding. Please help me on this.
 Thanks in advance.
-Edwin
  NOTE:
-
My snmpd.conf is in /etc/snmp/snmpd.conf
I am running snmpd as plain 'snmpd'. I also tried 'snmpd -c snmpd.conf' but
no effect.
-
 ERROR IN CFGMAKER:

--base: Get Device Info on [EMAIL PROTECTED]:
SNMP Error:
no response received
SNMPv1_Session (remote host: 192.168.1.1 http://192.168.1.1
[192.168.1.1http://192.168.1.1
].161)
community: public
request ID: -1724402833
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/lib/perl5/site_perl/5.005/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.1 on [EMAIL PROTECTED]::v4only
at /usr/local/bin/cfgmaker line 858
WARNING: Skipping [EMAIL PROTECTED]: as no info could be retrieved

# Created by
# /usr/local/bin/cfgmaker [EMAIL PROTECTED]


--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SNMP in FreeBSD server

2005-10-22 Thread Frank Staals

Edwin D. Vinas wrote:


Hi,
I'm running a FreeBSD server on a DSL and I wan't to monitor the link
utilization of it using MRTG and NET-SNMP. I installed net-snmp using ports
but when I tried running snmpd and querying simple snmpwalk and cfgmaker, I
got an error as shown below. I also tried installing net-snmp from source
from sourceforge but still snmp is not responding. Please help me on this.
Thanks in advance.
-Edwin
 NOTE:
-
My snmpd.conf is in /etc/snmp/snmpd.conf
I am running snmpd as plain 'snmpd'. I also tried 'snmpd -c snmpd.conf' but
no effect.
-
ERROR IN CFGMAKER:

--base: Get Device Info on [EMAIL PROTECTED]:
SNMP Error:
no response received
SNMPv1_Session (remote host: 192.168.1.1 http://192.168.1.1
[192.168.1.1http://192.168.1.1
].161)
community: public
request ID: -1724402833
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/lib/perl5/site_perl/5.005/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.1 on [EMAIL PROTECTED]::v4only
at /usr/local/bin/cfgmaker line 858
WARNING: Skipping [EMAIL PROTECTED]: as no info could be retrieved

# Created by
# /usr/local/bin/cfgmaker [EMAIL PROTECTED]


--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 

I'm running mrtg myself, and I remember having some problem with snmpd 
when I installed it. you should have a config file in /usr/local/etc/ 
named snmpd.conf and it should look something like this: 
http://fstaals.net/junk/snmpd.conf . I can't remember anymore if I had 
to change anything else, but I think that should be it.


Good Luck

--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


semi OT: problems with mrtg(+snmp??)

2005-10-06 Thread Robert Huff

Is there anyone out there willing to help troubleshoot some
mrtg(/snmp?) issues privately?


Robert Huff


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/mem /dev/kmem jails and using netstat -r and snmp

2005-09-10 Thread Lowell Gilbert
Ruben Bloemgarten [EMAIL PROTECTED] writes:

 I seem to be a bit stuck here. I seem  to need access to /dev/mem and
 /dev/kmem from inside a jail . Specifically to be able to use netstat –r and
 snmp in jailed environments. I’m running FBSD 5.4-RELEASE. Could anyone help
 me shed some light on this problem ? Thanks. 

Making kmem available in a jail seems like it can't be the right
answer to anything.  Kind of contradicts the point, I would think.

I don't see an easy way around this.  Furthermore, there are different
approaches depending on why you are trying to do this.  If you want
system statistics inside of a jail for remote monitoring, consider
whether that is the best approach; after all, network management *is*
a fundamentally privileged operation.  One way to do it would be to
feed the statistics into the jail from outside of it; this way, the
privileged operation is separated from the network-accessible code,
and not dependent on it in any way.

Good luck.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: /dev/mem /dev/kmem jails and using netstat -r and snmp

2005-09-10 Thread Ruben Bloemgarten
Hi Lowell, 

I absolutely agree with you in regards to jail security, this would
effectively break jail security. My main reason for using jails is not
security however, but manageability and expandability. By now I've figured
out how to make mem and kmem available to a specicic jail. As with all *nix
related problems it was painfully simple once understood. I have managed to
enable most NMS functionality I want from inside the jail without having to
resort to this ruleset. I did want to have the option available for
development and testing reasons to be able to differentiate between what I'm
doing wrong and what is just an inherent restriction of properly deployed
jails. For a fully functional NMS solution running from inside a jail, using
very anal access restrictions from the firewall on the mainhost, I'm not
sure yet whether or not I'm actually troubled by the security NoNo access to
privileged devices generates. Anyway, thanks for your insight. Sometimes all
we need is just someone to talk to. 
By the way I am very interested in what everyone's thoughts are in regards
to jail functionality, as in security vs. the VirtualServer aspect and in
which scenario one outweighs the other.

Regards, 
Ruben 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Lowell Gilbert
Sent: September 10, 2005 2:57 PM
To: [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Subject: Re: /dev/mem /dev/kmem jails and using netstat -r and snmp

Ruben Bloemgarten [EMAIL PROTECTED] writes:

 I seem to be a bit stuck here. I seem  to need access to /dev/mem and
 /dev/kmem from inside a jail . Specifically to be able to use netstat ?r
and
 snmp in jailed environments. I?m running FBSD 5.4-RELEASE. Could anyone
help
 me shed some light on this problem ? Thanks. 

Making kmem available in a jail seems like it can't be the right
answer to anything.  Kind of contradicts the point, I would think.

I don't see an easy way around this.  Furthermore, there are different
approaches depending on why you are trying to do this.  If you want
system statistics inside of a jail for remote monitoring, consider
whether that is the best approach; after all, network management *is*
a fundamentally privileged operation.  One way to do it would be to
feed the statistics into the jail from outside of it; this way, the
privileged operation is separated from the network-accessible code,
and not dependent on it in any way.

Good luck.


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.20/95 - Release Date: 09/09/2005


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.20/95 - Release Date: 09/09/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.20/95 - Release Date: 09/09/2005
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/dev/mem /dev/kmem jails and using netstat -r and snmp

2005-09-09 Thread Ruben Bloemgarten
Hi all, 

 

I seem to be a bit stuck here. I seem  to need access to /dev/mem and
/dev/kmem from inside a jail . Specifically to be able to use netstat –r and
snmp in jailed environments. I’m running FBSD 5.4-RELEASE. Could anyone help
me shed some light on this problem ? Thanks. 

 

Regards, 

Ruben 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/93 - Release Date: 09/08/2005
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What OID for this? SNMP issue.

2005-07-26 Thread Alexander Shikoff
Hi, 

On Sat, Jul 09, 2005 at 04:36:44PM -0700, Sean Hafeez wrote:
 Target[merlot-cpusum]:ssCpuRawUser.0ssCpuRawUser.0:[EMAIL PROTECTED]  
 + ssCpuRawSystem.0ssCpuRawSystem.0:[EMAIL PROTECTED] + ssCpuRawNice. 
 0ssCpuRawNice.0:[EMAIL PROTECTED]
 MaxBytes[merlot-cpusum]: 100
 Title[merlot-cpusum]: merlot.beastproject.org - active cpu utilization
 PageTop[merlot-cpusum]: H1merlot.beastproject.org - active cpu  
 utilization/H1
 Unscaled[merlot-cpusum]: ymwd
^^^
...

For a long time I observe the strange issue. Marked string is commented out
if my MRTG-config file. And it is possible that values drawn on the graph
can be greater than 100%!

Can anybody explain how raw counters (ssCpuRawSystem, ssCpuRawUser etc.) are
calculated? And why graph even for one of them (not for sum) can grow over 100%?

Thanks.

-- 
Kind Regards,   Alexander Shikoff
[EMAIL PROTECTED]
Mob.: +380 67 946 31 49

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >