* 1. This howto works in that it produces RRD-tool graphics of performance relevant data like cpu (load), memory usage, IO performance and interface statistics (traffic flow). * 2. This howto is not yet finished/polished toward sme. Anyone is called upon to improve it. I will be willing to help if needed. * 3. This howto should also generally work for centhos4 and redhat 4 enterprise, since sme7 is based upon that.

Special thanks to Florian Forster (of collectd ) for helping me out with some initial troubleshooting. And of course to the volunteers of sme7 (www.contribs.org) for making a great platform.

Hope it is of use to some. I am sure it can be improved. Please let me in on your good ideas.

Just found the HowTo and followed it on my SME7 testbox.Nice work ... I do get the results you show on your site with little effort a fe minutes later.

All in all this sure seems to have to potential to replace/follow the defunct sysmon in SME 7.

I have had no time to dig deeper so 2 questions:- Did you test the lm_sensors part? I could not (yet) get this to display a correct .rrd graph for temps and fan speed ("sensors" itself does work correctly).- Since I support a lot of Raid5 setups I find myself using hddtemp very often. Surprisingly Version 3.2.2 of collectd does support this. Do you have an updated rpm already .-)

I have had no time to dig deeper so 2 questions:- Did you test the lm_sensors part? I could not (yet) get this to display a correct .rrd graph for temps and fan speed ("sensors" itself does work correctly).- Since I support a lot of Raid5 setups I find myself using hddtemp very often. Surprisingly Version 3.2.2 of collectd does support this. Do you have an updated rpm already .-)

Again: Nice work.

RegardsReinhold

Thanks! I have not done anything to the package itself. I have not tested sensors.I have produced new rpm's, but did not test them at all. If you want please test them.

I did manage a short look into the sensors.c file however and indeed it says:/* Only temperature for now.. */and it seemingly tries the wrong sensor values for this PC.I will look into this over the weekend ...

Thanks for the updated rpms. I'll grab them and report as to the functionality of hddtemp ... asap.

- A new lm_sensors setup rpm + search a la wellsi.com ... and whatshallIsay ...works now ! I get Case TEMP & CPU TEMP (temp1 and temp2), and CPU FAN Data.And -(un)happy surprise- I found out that the test-servers cpu-fan has intermittend problems ...see below... IMO that alone makes a tool like this invaluable.Note: Fan-scale is Celsius should read RPM -cosmetic-

- A bit of "c"ing into the code and ...Hddtemp does need the daemon mode i.e. you need to start it before "connected"-ing:

collected -p www.contribs.orgdoes work too. See below how "beautifully bad" it pinged last night (while europeans should be sleeping)

- Note: This is an SME7 server-only so no bandwith (yet) on eth1...

AND NOW IT DOES GET "COLORFUL"- Although my perl is rather "pedestrian", tonight I cut&paste-ed my way to a output.cgi that does please me enough to continue...

Now here are the graphs in all their "splendor"(Folks please note ... this is not on contribs so it will only strain any viewer's_&_photobucket's not Ruffdog's bandwitdth)

Right now the display above is rather special for my test SME7...

(I only display the .rrd files that collectd places in /var/lib/collectd/ with a cut&paste version of collection.cgi) ... but... with some fiddling I feel able to make this universal enough for display on a server-manager page.

I get Case TEMP & CPU TEMP (temp1 and temp2), and CPU FAN Data.And -(un)happy surprise- I found out that the test-servers cpu-fan has intermittend problems ...see below... IMO that alone makes a tool like this invaluable.Note: Fan-scale is Celsius should read RPM -cosmetic-

- A bit of "c"ing into the code and ...Hddtemp does need the daemon mode i.e. you need to start it before "connected"-ing:

collected -p www.contribs.orgdoes work too. See below how "beautifully bad" it pinged last night (while europeans should be sleeping)

- Note: This is an SME7 server-only so no bandwith (yet) on eth1...

AND NOW IT DOES GET "COLORFUL"- Although my perl is rather "pedestrian", tonight I cut&paste-ed my way to a output.cgi that does please me enough to continue...

could you post it or somewhere? Or mail it to me? My perl is probably worse than yours. I asked Floria Foster from collectd to "upgrade " the scirpt. See the collectd mailing list athttp://mailman.verplant.org/listinfo/collectd

I would like a script that gives you the choice of a time frame, so you can see both day/week/month data. That is good to spot trends. I know howto do that with RRD, see http://www.macsat.com/rrdtool.phpand the script that leads to.

Quote

(I only display the .rrd files that collectd places in /var/lib/collectd/ with a cut&paste version of collection.cgi) ... but... with some fiddling I feel able to make this universal enough for display on a server-manager page.

that would be great indeed. I feel comfertable to make a howto, but hacking server-manager is beyond what I can do now. I just don't understand how it works yet.

The only thing that could be confusing is that the first time cpan is executed it has to be configured.The advantage with cpan is that it takes care of dependencies in the same matter that yum does and will keep your cpan modules updated and at the latest version.

/MatsPS. And hanscees: could you update your webpage "script" with the latest rpm's that you have buildt ?

The damned CPU-Fan really died on me... so I lost access to my test SME7 ... at least for the weekend

As to your other questions:

- Ian Wells, very active contribs member (Thanks Ian!), has done a lot on lm_sensors see hereThis will tell you how to find and activate the sensors in your PC as used by collected. Note: SME7 does include a working version of lm_sensors - a new rpm install should not be needed ...

- hddtemp needs to be installed separately.Best get it from the DAG Centos repo - or a mirror since it seems down/busy a lot recently. See here After installation you can start hddtemp in two different modes.First mode gives the temp data directly, second mode goes into daemon state (background)and you can access the data via a port on the pc locally, try (ssh'd into SME7)

hddtemp -d /dev/hd[abcd]telnet localhost 7634man hddtemp will tell you in detail what this means and a look into hddtemp.c from collectd shows what it should do

Last not least:sysmon ...on SME 6.0 does give more and better organized data in the fashion you (too) would like to see, namely day/month/year values. Have a look. I do have the rpm source available locally or here (?)and this is not on the SME7 test server (Note: original was from eneo/ShadLord so the above may be incorrectly googled.) - Maybe best for us to look into the code there before cutting&pasting more Perl... which I (still) sort of dislike for being so ... "unforgiving"

RegardsReinhold

matsk:Perl pro? Please have a look into sysmon src as above!(lazy like I tend to be) I already did forward my own smestats/index.html (like you proposed here) but IMHO collectd primarily has to go into a server-manager-link to be accessible... and it has to refresh there too

I added the new 3.2 collectd rpm's and hddtemp as you posted above, but no new graphs appeared on my ibay. Do I have to manually add hddtemp into the stats somehow? I do have a set of 3 hddtemp.so files in /usr/lib/collectd and hddtemp is running as a daemon.

Checking if your kit is complete...Looks goodWarning: prerequisite IO::Tty 0 not found.Writing Makefile for junoscript-perl---- Unsatisfied dependencies detected during [J/JU/JUNOS/junoscript-perl-6.4I0.tar.gz] ----- IO::TtyShall I follow them and prepend them to the queueof modules we are processing right now? [yes] Running make test Delayed until after prerequisitesRunning make install Delayed until after prerequisitesRunning install for module IO::TtyRunning make for R/RG/RGIERSIG/IO-Tty-1.02.tar.gzChecksum for /root/.cpan/sources/authors/id/R/RG/RGIERSIG/IO-Tty-1.02.tar.gz okIO-Tty-1.02/IO-Tty-1.02/Pty.pmIO-Tty-1.02/Makefile.PLIO-Tty-1.02/ChangeLogIO-Tty-1.02/test.plIO-Tty-1.02/Tty.xsIO-Tty-1.02/Tty.pmIO-Tty-1.02/READMEIO-Tty-1.02/tryIO-Tty-1.02/MANIFESTRemoving previously used /root/.cpan/build/IO-Tty-1.02

CPAN.pm: Going to build R/RG/RGIERSIG/IO-Tty-1.02.tar.gz

Now let's see what we can find out about your system(logfiles of failing tests are available in the conf/ dir)...

ERROR: cannot run the configured compiler 'gcc'(see conf/compilerok.log). Please fix this by adjustingperls Config.pm, creating a symlink to the right locationor maybe by just adding it to your PATH. You could also buildperl yourself.

Running make test Make had some problems, maybe interrupted? Won't testRunning make install Make had some problems, maybe interrupted? Won't installRunning make for J/JU/JUNOS/junoscript-perl-6.4I0.tar.gz Is already unwrapped into directory /root/.cpan/build/junoscript-perl-6.4I0

/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /root/.cpan/build/junoscript-perl-6.4I0/blib/lib/JUNOS/Access.pm line 41.BEGIN failed--compilation aborted at /root/.cpan/build/junoscript-perl-6.4I0/blib/lib/JUNOS/Access.pm line 41.Compilation failed in require at /root/.cpan/build/junoscript-perl-6.4I0/blib/lib/JUNOS/Device.pm line 45.BEGIN failed--compilation aborted at /root/.cpan/build/junoscript-perl-6.4I0/blib/lib/JUNOS/Device.pm line 45.Compilation failed in require at t/base-2.t line 12.BEGIN failed--compilation aborted at t/base-2.t line 12.t/base-2....dubious Test returned status 2 (wstat 512, 0x200)FAILED--2 test scripts could be run, alas--no output ever seenmake: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OKRunning make install make test had returned bad status, won't install without forceXML::Dumper is up to date.

The only thing that could be confusing is that the first time cpan is executed it has to be configured.The advantage with cpan is that it takes care of dependencies in the same matter that yum does and will keep your cpan modules updated and at the latest version.

/MatsPS. And hanscees: could you update your webpage "script" with the latest rpm's that you have buildt ?

That might work very nicely. But it could stab you in the back badly too. cpan will get you a new perl version if some dependency asks it too. I would not recommend this in a production environment at all. I would choose the rpm, in which case you do not need to install I think. Just do rpm -ihv ... I think

I am updating my howto, but not with everything. I want to keep it stable. If we have something better that is tested and works I will gladly post it there.

- Ian Wells, very active contribs member (Thanks Ian!), has done a lot on lm_sensors see hereThis will tell you how to find and activate the sensors in your PC as used by collected. Note: SME7 does include a working version of lm_sensors - a new rpm install should not be needed ...

I have followed this lm_sensors stuff. In sme7 lm_sensors is installed. But it does not seem to have all kinds of via modules.Can anynbody else check if their sme7 has lm_sensor modules? I cannot find vt1211 nor vt8235. I have a via -board (via pd) and should copy a sensor module. But I do not know where to copy it from .