Koozali.org: home of the SME Server

Announcement: Howto monitor your sme7 general performance us

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Announcement: Howto monitor your sme7 general performance us
« Reply #15 on: October 30, 2005, 11:21:27 PM »
Quote from: "Reinhold"
Hans,

- Ian Wells, very active contribs member (Thanks Ian!), has done a lot on lm_sensors see here
This 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 .

This site:
http://seanm.ca/eden/lmsensors.html

says:
Copy the vt8231 file to /lib/modules/uname -r/kernel/drivers/sensors.

But I do not know where to get that module. It should be in lm_sensors already if I understand it right, since it is supported bu lm_sensors.

I got hddtemp to work just fine for asking it stuff via  telnet. But there is no data in the graphic output of collection.cgi. Do you have a line?

The processes graphic is not there. That has to do with that it has no defintion in the cgi script.



Hans-Cees[/quote]
nl.linkedin.com/in/hanscees/

Offline morpheusx

  • *
  • 35
  • +0/-0
Announcement: Howto monitor your sme7 general performance us
« Reply #16 on: October 31, 2005, 07:50:05 AM »
Hans

Are you seeing hddtemp on your install? I am not - what am I doing wrong?

Morph

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Announcement: Howto monitor your sme7 general performance us
« Reply #17 on: October 31, 2005, 09:28:15 PM »
Quote from: "morpheusx"
Hans

Are you seeing hddtemp on your install? I am not - what am I doing wrong?

Morph


you need to install it and configure/test it. See the bottom of the howto. You need to use the latest collectd rpm's too I think.

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline morpheusx

  • *
  • 35
  • +0/-0
Announcement: Howto monitor your sme7 general performance us
« Reply #18 on: November 01, 2005, 12:08:04 AM »
Quote from: "hanscees"
Quote from: "morpheusx"
Hans

Are you seeing hddtemp on your install? I am not - what am I doing wrong?

Morph


you need to install it and configure/test it. See the bottom of the howto. You need to use the latest collectd rpm's too I think.

Hans-Cees


I do have all the latest rpms installed - but collectd does not show hddtemp in the CGI output on the web page.

[root@host ~]# rpm -q collectd-hddtemp
collectd-hddtemp-3.2.0-1
[root@host ~]# rpm -q collectd
collectd-3.2.0-1
[root@host ~]# rpm -q collectd-sensors
collectd-sensors-3.2.0-1
[root@host ~]# rpm -q hddtemp
hddtemp-0.3-0.beta12.2.2.el4.rf
[root@host ~]# telnet localhost 7634
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
|/dev/hda|Maxtor 6B200P0|29|C||/dev/hdb|Maxtor 6L200R0|29|C|Connection closed by foreign host.

There are hddtemp files in the collectd directory but for some reason they aren't turned into a web output

ls /usr/lib/collectd

cpu.so        disk.so.0      hddtemp.so.0.0.0  memory.so        ping.so.0       processes.so.0.0.0  swap.so        traffic.so.0
cpu.so.0      disk.so.0.0.0  load.so           memory.so.0      ping.so.0.0.0   sensors.so          swap.so.0      traffic.so.0.0.0
cpu.so.0.0.0  hddtemp.so     load.so.0         memory.so.0.0.0  processes.so    sensors.so.0        swap.so.0.0.0
disk.so       hddtemp.so.0   load.so.0.0.0     ping.so          processes.so.0  sensors.so.0.0.0    traffic.so

Does anyone have hddtemp displaying in the collectd web output?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Announcement: Howto monitor your sme7 general performance us
« Reply #19 on: November 01, 2005, 02:28:56 PM »
Hans,
Try
Code: [Select]
wget ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/4.2/os/i386/CentOS/RPMS/lm_sensors-devel-2.8.7-2.i386.rpm
rpm -Uvh lm_sensors-devel-2.8*

(this should include the via sensors you listed). Then follow "wellsi" ...

morpheux,
Yes I did have hddtemp  rrd output - and it will be displayed with the new (!) collection.cgi.
Reread what I said above ... you do need to copy the new collection.cgi coming with collectd 3.2.x also.
BUT: the data displayed is bad ... some problems with  hddtemp.c (?!)
BTW: The data ready for display is located in /var/lib/collectd/ !

Regards
Reinhold
...waiting for a new FAN+CPU for his SME7 test box :-(
............

Offline morpheusx

  • *
  • 35
  • +0/-0
Announcement: Howto monitor your sme7 general performance us
« Reply #20 on: November 01, 2005, 06:08:47 PM »
Quote from: "Reinhold"
Hans,

Reread what I said above ... you do need to copy the new collection.cgi coming with collectd 3.2.x also.
BUT: the data displayed is bad ... some problems with  hddtemp.c (?!)


Got it - thanks!

cp /usr/share/doc/collectd-3.2.0/contrib/museum/collection.cgi /home/e-smith/files/ibays/cpustats/cgi-bin/collection.cgi

and now it works! The drive temps look fine on my system - they are in Celsius but appear to be accurate.

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Announcement: Howto monitor your sme7 general performance us
« Reply #21 on: November 01, 2005, 10:27:20 PM »
Quote from: "Reinhold"
Hans,
Try
Code: [Select]
wget ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/4.2/os/i386/CentOS/RPMS/lm_sensors-devel-2.8.7-2.i386.rpm
rpm -Uvh lm_sensors-devel-2.8*

(this should include the via sensors you listed). Then follow "wellsi" ...


I installed that rpm but tough luck I am afraid:
[root@mail ~]# find / -name vt1211.ko
[root@mail ~]# modprobe vt1211
FATAL: Module vt1211 not found.

On another point:
I did ask collectd developer to adjust the processes graph. The problem is I think that the specs for that graph are not in collection.cgi.

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Announcement: Howto monitor your sme7 general performance us
« Reply #22 on: November 02, 2005, 10:43:09 AM »
Hans,

Oops ... Seems like a problem of the centos/SME7 kernel ...
(since that lm_sensors version DOES support the chip)

Quote from: "- markus.dolic.com -"
...of course the latest » lm_sensors version didn’t just work out-of-the-box: sensors-detect found a VT1211 Super IO Sensors chip which needs the » vt1211 module (among some i2c things). as vt1211 is not part of the kernel yet, it needs to be built as an external module. There’s a kernel patch file on the aforementioned vt1211 page, but i copied vt1211.c and changed the corresponding files manually because the patch assumed the kernel source to be in some other directory than /usr/src/linux (just 2 files anyway).

After setting CONFIG_SENSORS_VT1211=m in .config and running make -C /usr/src/linux M=pwd modules followed by modules_install in the drivers/i2c/chips directory, loading the module (insmod /path/to/vt1211.ko) surprisingly worked without any problems and the sensors program showed a bunch of values (kernel version 2.6.11.6, by the way).



See:  http://hem.bredband.net/ekmlar/vt1211.html for a detailed fix.

Regards
Reinhold
............

persisto

sme6admin
« Reply #23 on: November 02, 2005, 08:02:05 PM »
Hello,

I find your subject intersting, and am curiouis to know the differences between your solution and the one proposed in:
http://
http://firewall-services.com/sme6admin-howto-fr.html

It seemed to work well in v6.0 and claims to 7.0 compatible since recent.

Thanks

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Announcement: Howto monitor your sme7 general performance us
« Reply #24 on: November 02, 2005, 10:00:54 PM »
persisto,

4me two reasons:

i)  Qu'est-ce qu'il ne fait pas ?:  marche  8-)
iow Didn't work for me when I checked in 7beta5...
Code: [Select]
Can't call method "value" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/sme6admin line 182.

ii) collectd is a very fast compiled c programm - 10 measurements/second in all the graph's as shown above.
It still needs a bunch of polishing but it does measure more already .-) and it's just a couple of weeks old!

But I do admit that I did not use sme6admin in 6.x (used sysmon) and I might be quite willing to give it another try
... latest when it's called SME7admin :-D


Regards
Reinhold
............

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Announcement: Howto monitor your sme7 general performance us
« Reply #25 on: November 07, 2005, 09:43:16 PM »
Hi,

I have found howto hack collection.cgi into giving you hour/day/week/month graphs:

Beste copy the script to collectionall.cgi.
Find lines:

            if (length ($inst))
            {
                src="$MySelf$RelDir/$type/$inst/day" /><br />\n);

and add some lines so it becomes:

            if (length ($inst))
            {
                print qq(<img src="$MySelf$RelDir/$type/$inst/3600" /><br />\n);
                print qq(<img src="$MySelf$RelDir/$type/$inst/day" /><br />\n);
                print qq(<img src="$MySelf$RelDir/$type/$inst/week" /><br />\n);
                print qq(<img src="$MySelf$RelDir/$type/$inst/month" /><br />\n);


thats it!


Hans-Cees
nl.linkedin.com/in/hanscees/

nitrouze

Announcement: Howto monitor your sme7 general performance us
« Reply #26 on: November 11, 2005, 12:47:15 PM »
Hi,
hanscees, I was wondering if you find a way regarding the vt1211 modules as I'm also running sme on an epia ITX board ?

Keep on the good job

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Announcement: Howto monitor your sme7 general performance us
« Reply #27 on: November 11, 2005, 06:56:31 PM »
Quote from: "nitrouze"
Hi,
hanscees, I was wondering if you find a way regarding the vt1211 modules as I'm also running sme on an epia ITX board ?

Keep on the good job


No. I am afraid not. There are working versions it seems, but I have not been able to track them.

Here is some info I found where the module is named:
http://www.epiawiki.org/wiki/tiki-index.php?page=EpiaInstallingGentoo

I was not able to get the code we need from it though.

Perhaps we should ask redhat bugzilla if they can incorporate it. But we would need a place to point at where working code/patches are.

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline p-jones

  • *
  • 594
  • +0/-0
Announcement: Howto monitor your sme7 general performance us
« Reply #28 on: December 21, 2005, 06:42:15 AM »
I have follwed this thread very closely and implemented the howto exactly but Iam unable to get the stats to display.

It appears data is being collected but this is all I can get when I try to display the data.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@

I am really not sure where to go from here. Any suggestions appreciated

Thanks
Peter
...

Offline p-jones

  • *
  • 594
  • +0/-0
Announcement: Howto monitor your sme7 general performance us
« Reply #29 on: December 21, 2005, 06:46:47 AM »
I guess it might help if I say I am running SME7.0B8
...