5 minutes collectd + facette setup
I recently added a fantastic graphing tool named facette to pkgsrc.
Facette knows how to pull data sources from various backends, and among them, the famous collectd.
In this article, we will see how to setup both on NetBSD but keep in mind it should also work for any platform supported by pkgsrc.
First up, collectd installation. It can be done either with pkgin (binary installation) or pkgsrc
(source installation):
- with
pkgin
1 | $ sudo pkgin in collectd collectd-rrdtool |
- with
pkgsrc
1 | $ cd /usr/pkgsrc/sysutils/collectd |
Tune up a minimal collectd
configuration
1 | Hostname "myname" |
Enable and start collectd
1 | # echo "collectd=YES" >> /etc/rc.conf |
Wait a couple of minutes for collectd
to actually collect some datas, you should see them appear in /var/db/collectd/rrd
.
As I write these lines, facette
is not yet available as a binary package, it will probably be available in the next pkgsrc release, so we’ll have to install it using pkgsrc
1 | $ cd /usr/pkgsrc/sysutils/facette |
That’s right, no configuration, I’ve setup the package so it is working out-of-the-box with a basic collectd
installation.
If everything went well, you should be admiring a facette
console by connecting with your web browser to the port 12003