sigar/bindings/erl
Doug MacEachern 8016dbe364 GPL v2 license -> Apache 2 license
(grit-generated)
2010-04-28 15:08:39 -07:00
..
c_src GPL v2 license -> Apache 2 license 2010-04-28 15:08:39 -07:00
ebin experimental erlang driver 2009-06-14 21:29:08 -07:00
examples GPL v2 license -> Apache 2 license 2010-04-28 15:08:39 -07:00
priv experimental erlang driver 2009-06-14 21:29:08 -07:00
src GPL v2 license -> Apache 2 license 2010-04-28 15:08:39 -07:00
Makefile experimental erlang driver 2009-06-14 21:29:08 -07:00
README.markdown experimental erlang driver 2009-06-14 21:29:08 -07:00

README.markdown

SIGAR driver for Erlang

If you're not already familar with sigar, have a look at the SIGAR Wiki.

Also helpful: ../../include/sigar.h, ../*/examples and ../java/src/org/hyperic/sigar/cmd/ to get an idea of what you can do.

Building

The other bindings/* inline the libsigar sources by default, haven't done that yet for erl. So, you'll need a libsigar to link against, one of:

Ant build:

    cd ../java ; ant
    ln -s sigar-bin/lib/libsigar-amd64-linux.so sigar-lib/lib/libsigar.so

Or, download release binary created by the ant build:

    curl -o priv/libsigar.so http://svn.hyperic.org/projects/sigar_bin/dist/SIGAR_1_6_2/lib/libsigar-amd64-linux.so

Or, top-level autotools build (WIP):

    cd ../.. ; ./autogen.sh && ./configure && make install

Once you have a libsigar in place, just run make and have a look at the examples/.

Note that the majority of the driver code is generated by ../SigarWrapper.pm and output to priv/gen.

ToDo/Help Wanted

  • Fill out the examples/ - currently weaksauce in part due to me having just a few hours w/ Erlang

  • Build system - doubt the current will work anywhere cept Linux

  • EUnit

  • Other stuff Erlangers know that I don't