[hobbit] Error while compiling hobbit snapshot ...
Trent Melcher
trent.melcher at sitel.com
Wed Sep 26 18:55:50 CEST 2007
On Wed, 2007-09-26 at 16:11 +0000, Sigurður Guðbrandsson wrote:
> Hi.
>
> I was just compiling hobbit snapshot and I got this ..
>
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DLINUX -I. -I/home/nikkiclau/snapshot/include
> -I/usr/include -I. `net-snmp-config --cflags` -c -o
> hobbit_snmpcollect.o hobbit_snmpcollect.c
> /bin/sh: net-snmp-config: command not found
> hobbit_snmpcollect.c:17:38: error: net-snmp/net-snmp-config.h: No such
> file or directory
> hobbit_snmpcollect.c:18:40: error: net-snmp/net-snmp-includes.h: No
> such file or directory
> hobbit_snmpcollect.c:26: error: syntax error before 'oid'
> hobbit_snmpcollect.c:26: warning: no semicolon at end of struct or
> union
>
> I took quite an amount of errors, but currently I am installing
> libsnmp9-dev to resolve this error (hopefully)
>
> I would recommend that you would add libsnmp9-dev to the dependencies
> for building the package.
Guess you havent been following the thread below.
----------------------------------cut------------------------------
On Mon, Sep 10, 2007 at 11:56:55AM -0700, Levin, Alexandre wrote:
> In the current snapshot I'm glad to see new file hobbit_snmpcollect,
is
> it a replacement for devmon?
No, you should still use devmon for monitoring SNMP enabled devices.
At least for the time being - devmon, I think, can do a lot more than
snmpcollect right now.
> Any tips on usage?
> Or it is too early to try it ?
It's very early to try this, only do it if you're really adventurous.
I only started this Saturday, so it hasn't seen any real testing.
Nonetheless, I setup a small test run of it this afternoon, and so far
it appears to be working as intended. If you do want to try it out,
get the snapshot version which will be available in a couple of hours.
The reason for doing this is that our network people are having problems
collecting statistics with MRTG. Basically, their MRTG server is
extremely overloaded, and besides that they'd rather not have to worry
about setting up MRTG and maintaining a website for it. So I was asked
if it was possible for Hobbit to handle the ~10.000 datasets they are
currently collecting with MRTG. Of course, that was a challenge I had
to
meet :-)
I've chosen to be a bit more thorough than MRTG in the data collection.
MRTG by default collects only the in/out byte counts from a device; you
can do that with Hobbit's new snmpcollect, but a better choice is to
grab the entire set of data present in the "interfaces" MIB. This
includes some interesting data, e.g. how many bad packets arrived over
the interface, how many were discarded, and what the current output
queue length is.
snmpcollect uses a configuration file that looks like this:
[localhost]
version=2
community=public
mrtg=2 IF-MIB::ifInOctets.2 IF-MIB::ifOutOctets.2 Main IO
# ifmib=2 LAN
# ifmib=(eth0) LAN
# ifmib=[0:e:a6:ce:d6:85] LAN
ifmib={172.16.10.100} LAN
So for a host, you define the SNMP version you want to use (currently v1
and v2c only), the community name, and optionally an IP address for it.
Then you can request snmpcollect to fetch either a set of data in MRTG
form, or you can fetch the entire interface-MIB set of data for a router
interface / switch port. There are different ways to define what
interface you want the data for - by interface number, description, MAC
address or IP. snmpcollect grabs the data and sends it to Hobbit in a
"data" message; this is picked up by the current hobbitd_rrd module and
put into trend graphs.
Right now it just collects the data. I have some ideas to add monitoring
so it might trigger an alert if the error-rate of an interface goes up,
or the traffic exceeds certain limits (min/max). Nothing definite yet.
Oh - and the current snapshot blindly assumes you have Net-SNMP
installed; if not, it won't compile. No need to tell me that - I know.
Regards,
Henrik
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
----------------------------------cut------------------------------
Trent
>
> I did not find the dev list quickly so I posted here.
>
> E-mail me if you want to get more information about this error.
>
> With regards,
>
> ------------------------------
>
> Sigurður Guðbrandsson
> Raförninn ehf.
> Suðurhlíð 35
> 105 Reykjavik | Iceland
> sigurdur at raforninn.is | www.raforninn.is
> Office: +(354) 552 2070
> Mobile: +(354) 867 3573
>
> ------------------------------
>
>
>
More information about the Xymon
mailing list