![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
you can try mrtg
__________________
Verbose mode can also be turned on for SSH2 with the (surprise!) VerboseMode keyword. |
|
|||
|
Check out vnStat. I can't post the URL because I have not posted 5 times to the Forum. I have used it on Linux and FreeBSD and it works with no issues.
Here's the output Code:
rbelk@rbvmwk:~$ vnstat --help
vnStat 1.9 by Teemu Toivola <tst at iki dot fi>
-q, --query query database
-h, --hours show hours
-d, --days show days
-m, --months show months
-w, --weeks show weeks
-t, --top10 show top10
-s, --short use short output
-u, --update update database
-i, --iface select interface (default: eth0)
-?, --help short help
-v, --version show version
-tr, --traffic calculate traffic
-ru, --rateunit swap configured rate unit
-l, --live show transfer rate in real time
rbelk@rbvmwk:~$ vnstat
Database updated: Mon Nov 30 11:55:02 2009
em0 since 10/04/09
rx: 32.37 GiB tx: 84.11 GiB total: 116.49 GiB
monthly
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
Oct '09 17.21 GiB | 34.81 GiB | 52.02 GiB | 162.92 kbit/s
Nov '09 15.17 GiB | 49.30 GiB | 64.47 GiB | 211.91 kbit/s
------------------------+-------------+-------------+---------------
estimated 15.40 GiB | 50.07 GiB | 65.48 GiB |
daily
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
yesterday 128.09 MiB | 1.25 GiB | 1.38 GiB | 133.91 kbit/s
today 69.58 MiB | 404.34 MiB | 473.91 MiB | 90.49 kbit/s
------------------------+-------------+-------------+---------------
estimated 138 MiB | 813 MiB | 951 MiB |
|
|
|||
|
Or maybe to check netflows with pflow (4) and nfcapd/nfdump could be an idea? Its quite easy to setup and really powerful/awesome!
|
|
|||
|
Quote:
rk
__________________
All posts sent on ReCycled Electrons... |
|
||||
|
When I try to build (make all) vnstat, I get this:
Code:
# make all gcc -O2 -c vnstat.c gcc -O2 -c ifinfo.c gcc -O2 -c dbxml.c gcc -O2 -c dbshow.c gcc -O2 -c dbaccess.c gcc -O2 -c dbmerge.c gcc -O2 -c common.c gcc -O2 -c misc.c gcc -O2 -c cfg.c gcc -O2 -c traffic.c gcc vnstat.o ifinfo.o dbxml.o dbshow.o dbaccess.o dbmerge.o common.o misc.o cfg.o traffic.o -lm -o vnstat ifinfo.o(.text+0x157): In function `getiflist': : warning: strcat() is almost always misused, please use strlcat() gcc -O2 -c vnstatd.c gcc -O2 -c dbcache.c gcc vnstatd.o ifinfo.o dbaccess.o dbcache.o common.o misc.o cfg.o -lm -o vnstatd ifinfo.o(.text+0x157): In function `getiflist': : warning: strcat() is almost always misused, please use strlcat() gcc -O2 -c vnstati.c gcc -O2 -c image.c gcc vnstati.o image.o dbaccess.o dbmerge.o common.o misc.o cfg.o -lm -lgd -o vnstati /usr/bin/ld: cannot find -lgd collect2: ld returned 1 exit status *** Error code 1 Stop in /home/stuff/vnstat-1.10/src (line 17 of Makefile).
__________________
Mike |
|
|||
|
The parameter is -lgd which means "include the gd library when linking". Most likely, the library was not found on the path understood by the linker.
|
|
|||
|
Pretty obvious error message, it can't link with the gd library.. it's a library used for generating images.
This is a dependency problem, install the package. $ sudo pkg_add gdEDIT: ocicat beat me to it.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JPEG library reports unrecoverable error: | Calderon | FreeBSD General | 2 | 26th August 2009 03:07 PM |
| Total Success | divadgnol67 | OpenBSD General | 0 | 6th August 2009 07:15 PM |
| Uname still reports 7.0 release | maxrussell | FreeBSD Installation and Upgrading | 6 | 4th May 2009 12:49 PM |
| fsck reports errors but does not fix them. | map7 | FreeBSD General | 13 | 2nd December 2008 09:45 PM |
| Interface - total bandwidth | centerstage | OpenBSD General | 11 | 18th June 2008 11:20 PM |