Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: Landry on February 16, 2006, 09:09:44 PM
-
Hello everyone !
After two months of hard work, i finished porting sme6admin to SME7. The code has been revamped, a lot of things were added/modified. A LOT more things are now configurable, and a lot of bugs were squashed. Data migration from sme6admin is made by the rpm installation.
Rpm contrib is now named smeserver-sme7admin, and is located here :
http://sme.firewall-services.com/ => sme7admin link
There is a static demo version here :
http://sme.firewall-services.com/demo-en/
I developed and tested sme7admin on a sme7beta5, and i plan to do extensive compatibility tests when sme7-final is out.
By now, sme7admin doesn't work on SME6 (too much things changed between SME6 and v7), but if i get a lot of requests, i'll made an update to this issue.
A section will be opened in the contribs.org bugzilla (sme contribs bugs in http://bugs.contribs.org/), you may then report bugs there.
I'm waiting for your comments AND FEEDBACK :)
Landry
ps : i'm also joinable on IRC (gast0n on #sme-fr @ freenode)
-
Bonsoir Landry,
As a 1st comment:
This is great news ... GREAT as in FANTASTIQUE :-D
(When I tried your first SME 7version I was éploré/saddened quite a bit :cry: :-D
...but that PC has died on me last year anyway ;-) )
FEEDBACK will follow soon
Regards
Reinhold
-
Bonsoir Landry,
(When I tried your first SME 7version I was éploré/saddened quite a bit :cry: :-D
To be more precise, it was not mine. It was only a quick patch done my another member of our team to permit sme6admin to run on SME7, but very Buggyly. (e-smith-sme6admin-sme7-1.0.5 was this version)
-
Landry
It only took you 2 months.....anyone could have done it in 2 hours.
I also sell swapland here in FL. if you need some.
Well since you did a FANTASTIC...WONDERFULL....MARVELOUS job of it
I won't waste my time doing all the reaserch and coding and testing and more coding and more testing and more research ......
I'll just load it up and say...
THANK YOU
Two months dude....WOW....you need a break....the BEACH..!!
-
Landry,
Here is the FEEDBACK I promised!
:pint: - THIS IS GREAT - IT WORKS - THANK YOU ! - :pint:
Some things to fix (for you and/or me):
Not yet translated:
--------------------------------------------------
(in system performance (cpu, memory, hard disk) )
mn = min (minutes)
Hauteur des graphes: = Height of graphs:
Donnees ecrites/lues = Blocks read/written
---------------------------------------------------
Request (cosmetic):
I sort of dislike the need to click on GO!
If it is easily done, I would like auto-activation
iow when I dropdown-select "one hour" it changes to "one hour"
----------------------------------------------------
As for hardware information I am unlucky
(for now=bedtime et je ne veux faire une nuit blanche 8-) )
as you can see below:
---------------------------
CentOS release 4.2 (Final) - SME Server 7.0pre3
[root@gateway ~]# sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and done
'modprobe i2c_sensor'!
For older kernels, make sure you have done 'modprobe i2c-proc'!
[root@gateway ~]# modprobe i2c_sensor
[root@gateway ~]# sensors
No sensors found!
---------------------------------------------------------------------------
Regards
Reinhold
-
I'll rebuild my rpm with this corrections :)
For sensors detection, try with the (normally installed by lm_sensors) command sensors-detect first ....
http://wellsi.com/sme/lms/lm_sensors.html
Thanks a lot for feedback and greetings!
-
Landry,
Thanks for the pointer to wellsi (you'll find "Reinhold" on top of that page ;-) - thanks Ian! )
Actually for 7.0 the wellsi procedure isn't quite up to date
- we are talking kernel 2.6. now.
Anyone interested and having problems please go to:
http://www2.lm-sensors.nu/%7Elm78/kernel26.html
Let us know if/when you make Auto-GO! <tm> available <grin>.
Regards
Reinhold
P.S.: In my case hardware setup seems even worse.
While everyone (http://linux.yyz.us/sata/software-status.html#smart) claims that libata does ATA passthru ...
... it doesn't work with the DELL mainboard and Maxtor drive I have here now...
[root@gateway ~]# hddtemp /dev/sda
/dev/sda: ATA Maxtor 6L080M0 : /dev/sda: ATA Maxtor 6L080M0 : S.M.A.R.T. not available
<sigh> back to (real) work 8-)
-
Landry,
Thanks for the pointer to wellsi (you'll find "Reinhold" on top of that page ;-) - thanks Ian! )
Woops.... sorry :)
P.S.: In my case hardware setup seems even worse.
While everyone (http://linux.yyz.us/sata/software-status.html#smart) claims that libata does ATA passthru ...
... it doesn't work with the DELL mainboard and Maxtor drive I have here now...
[root@gateway ~]# hddtemp /dev/sda
/dev/sda: ATA Maxtor 6L080M0 : /dev/sda: ATA Maxtor 6L080M0 : S.M.A.R.T. not available
Sometimes, legacy hardware works better :)
On my Pentium2-IDE based boxes, everything works fine ....
-
Nice bit of code....very nice
Quick question from a n00b...
sme7admin has picked up the hdd temps ok, but doesnt find any of the sensors. I ran sensors detect and it finds some, and if I load the modules manually from the root prompt I can get a result from the sensors command, but cant get them to show on the graphs no matter what I put in the config fields.
Do i manually have to enter the results of the sensors-detect somewhere? If so where and how? A really cool feature would be the ability to enter the lines from the sensors-detect command on the config screen and have then entered in the right place! (i know, i'm a n00b.....)
oh, yeah, and if the last few french bits can be translated as per the other requests it would be great...i didn french in primary school but it was a long time ago LOL!
Congrats on a great contrib!
-
C'est fantastic!
Two questions/comments if I may:
1) Graphs do not update in real time, correct? I am used to the old sysadmin who had this feature.
2) After installing the other day, I had to change to name of the server. On reboot, sme7admin was broken, could not start. TYhe deamon appears to be crashed:
exec 'rm -f /var/run/sme7admin.pid' and restart did the trick. I however lost all previous statistics.
Very much looking to future release, many thanks for your hard work - we needed this on 7.
-
@stocky: you say you're a noob, did you read the config page ?
To find available sensors, execute 'sensors' in a shell, and look for the keywords corresponding to the working sensors ('temp1','CPU Temp','MB Temp','fan3',....).
paste here the result of your "sensors" command, it'll make an example for others who don't understand this. I thought it was clear.
Other thing : can you paste here which strings correspond to the last few french bits can be translated as per the other requests
I may have missed some strings during translation.
@burnat: What do you mean by 'update in real time' ? refresh the web page every 5mn ? Doable. But no "REAL TIME" possible :)
for your crash problem, can you look in /var/log/sme7admin.log for more info about this crash ? It seems VERY strange that you lose all previous statistics. Once installed, database and rrds are never erased....
-
Landry,
When I run "sensors" i get the "none found" message
So I run "sensors-detect" command and it finds sensors
I then run the suggested "modprobes" from the command prompt and then when i run "sensors" again i get the results I would expect (cant post now coz I dont have the SME box accessible)
First prob.....how do I load the modporbe modules so they load on boot each time? (easy now..i can do basic config file edits with pico if i know what the file is and where to find it...but thats about my limit for command line stuff at this point)
Second prob...if i take the keywords (CPU Temp, M/B Temp, temp3, CPU Fan, SYS Fan, Fan3) and try and enter them in the config page NO results show on the graphs..just HDD temps (ps entering hda & hdb in the hdd fields worked fine)
hope that is clearer.......
:-)
re the french bits...someone else listed them in a post prior to mine :-)
-
First prob.....how do I load the modporbe modules so they load on boot each time? (easy now..i can do basic config file edits with pico if i know what the file is and where to find it...but thats about my limit for command line stuff at this point)
Just add the module names to /etc/modprobe.conf (someone please correct me if i'm wrong on this.. don't even remeber if it is modprobe, modules.conf, modules...).
Second prob...if i take the keywords (CPU Temp, M/B Temp, temp3, CPU Fan, SYS Fan, Fan3) and try and enter them in the config page NO results show on the graphs.
That's not normal.
Check that the keywords are in the conf. file ( /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf )
and if they correspond to what you entered. Only two temps and one fan keyword are needed, and only one keyword by field.
Anyway, paste the result of sensors here when your get access to your box.
-
"for your crash problem, can you look in /var/log/sme7admin.log for more info about this crash ? It seems VERY strange that you lose all previous statistics. Once installed, database and rrds are never erased...."
Yes, well I did not tell the whole truth... I changed the name of the box from 7pre2 to 7pre3 to reflect updates, went into a reboot. After this, the application did not restart. Tried a few things, but got noway. Doing "pgrep sme7admin" confirmed that the deamon had crashed. I tried to do "rm -f /var/run/sme7admin.pid " but this resulted in the system hanging there for ever. At the end, I uninstall smeserver-sme7admin, reinstalled, and now it seems to be OK.
Hope it helps.
Regards
chris
-
"I tried to do "rm -f /var/run/sme7admin.pid " but this resulted in the system hanging there for ever.
WTF ???? sme7admin can't make the server hangup... and a simple rm should not too. Legacy or new hardware ??
Normally, upgrades through sme-preversions *should* work fine.
I don't really understand.
-
Landry,
Thanks so much for the contrib to SME 7.x !
Installed it this weekend and works like a charm!
THANK YOU!! THANK YOU!! THANK YOU!!!
:-D
Todd
-
I'm waiting for your comments AND FEEDBACK :)
Landry
Thank very much for this tool.... however I have a few remarks:
1. Since CentOS uses yum instead of rpm I think you should use yum to install our RPMs (as it is capable of foing so). As it is also to configure more repositories (see 3rd-Party Yum Repositories setup (http://smeserver.sourceforge.net/sme70/3rdPartyYumSetup) in the SME Server Core Development Project (http://smeserver.sourceforge.net/HomePage))
This way the most up-to-date and suitable dependencies are downloaded.
To install it like I did you should at least confgure the following yum repositories from the list:
kbs-centos-extras (provides hddtemp)
dag (provides perl-rrdtool)
atrpms (provides rrdtool)
base (provides sysstat)
I have managed to do it like this:
wget http://sme.firewall-services.com/rpms/smeserver-sme7admin-1.1.0-1.noarch.rpm
yum localinstall --enablerepo=* --disablerepo=*testing* smeserver-sme7admin-1.1.0-1.noarch.rpm
(As I have all repositories from the list enabled I simply enable all repositories and exlcude all testing repositories as the latter can result in errors)
Maybe you can update your howto as well to reflect my suggestions.
Jonathan
-
Since CentOS uses yum instead of rpm I think you should use yum to install our RPMs
And i should use yum just because CentOS uses it ?? yum is only a frontend to rpm commands, and personally, i prefer executing 4 simple rpm -ivh commands rather than editing yum configuration,enabling repositories, updating a database, scratching dozens of options and whatever other crap related to yum. I don't like yum.
2nd : by now, i don't need up-to-date dependencies, because sysstat > 5.0.5 and rrdtool > 1.0.50 are NOT supported (options & data format changed). I should recheck my code to see if it'll be easy to update the dependencies.
3rd : if i had dozens of contribs to share with the community, maybe it'll be easier for me to setup a 3rd-party yum repository. But i have only 2-3 contribs, and as i have enough work to keep sme7admin bug-free and supported, i don't have time to work on a repository-based setup.
To conclude: a yum repository is not on my todo-list.
If you want to install sme7admin, following the howto is sufficient.
I hope i haven't been rude, and that my point of view is clear :)
Landry
-
Hej Landry
Just installed sme7admin-1.1.0-1.noarch.rpm
and everything went fine
with rpm -Uvh *.rpm 5 files
no problem at all on sme7.0pre3
Thanks a lot wery god job you have done
All the best from
Jan denmark :hammer:
-
Hi Landry,
Finally been able to get this info for you....
[root@mserver ~]# sensors
w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.47 V (min = +0.70 V, max = +1.87 V)
+12V: +11.73 V (min = +0.12 V, max = +5.05 V)
+3.3V: +3.36 V (min = +0.22 V, max = +2.03 V)
+5V: +5.04 V (min = +3.20 V, max = +6.67 V)
-12V: -14.91 V (min = -14.91 V, max = -14.91 V)
V5SB: +4.95 V (min = +1.37 V, max = +1.94 V)
VBat: +3.50 V (min = +2.56 V, max = +0.29 V)
fan1: 0 RPM (min = 17763 RPM, div = 2)
CPU Fan: 3026 RPM (min = 675000 RPM, div = 2)
fan3: 0 RPM (min = 10384 RPM, div = 2)
M/B Temp: +35°C (high = -101°C, hyst = +1°C) sensor = thermistor
CPU Temp: +29.0°C (high = +70°C, hyst = +65°C) sensor = thermistor
temp3: +65.0°C (high = +70°C, hyst = +65°C) sensor = thermistor
ERROR: Can't get VID data!
alarms: Chassis intrusion detection ALARM
beep_enable:
Sound alarm disabled
eeprom-i2c-0-50
Adapter: SMBus Via Pro adapter at 5000
Memory type: DDR SDRAM DIMM
Memory size (MB): 512
i have tried ALL of the keywords above (eg fan1, CPU FAN, fan3, M/B Temp, CPU & temp3) in the sme7admin config without any luck.
I have checked the sme7admin.conf file and they are listed there as one would expect. Since getting the modules to load on startup I now have two system temps on my temp graph plus the two hdd temps i had before, but no matter what i enter into the config section, the temps are the same sensors each time and i cannot get ANY fan speeds at all.
any ideas?
All the rest of sme7admin works a treat, just not this bit..arrggghhhh!
-
paste here the output of
grep tag /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf
it should be
sensors_first_temp_tag = M/B Temp
sensors_first_temp_tag = CPU Temp
sensors_fan_tag = CPU Fan
(or "temp3" in place of "M/B Temp" / "CPU Temp")
Did you wait 5/10mn between each tests ? sme7admin is not a REAL TIME contrib :)
Do your hddtemps works ??
Landry
-
Landry,
Results of grep:
sensors_first_temp_tag = CPU Temp
sensors_second_temp_tag = M/B Temp
sensors_fan_tag = CPU Fan
I assume you line above contained a typo...both first_temp
HDD temps work fine!! :-)
Has been running for about 45min with config as above, still no fan reading at all and temps for CPU & mobo are wrong ones when compares to sensors tags.
-
ok, a few hours later and two reboots later (for other reasons) and WITHOUT changing ANY settings away from those above it now works...*BIZZARE*
Thanks Landry for a top notch product and being willing to answer those of us with queries :-)
i owe u a :pint: or 3........
:-D
-
Cool !
Maybe it didn't re-read correctly its conf... strange.
Sometimes, if you configure something, and it seems not to change something, you can restart safely the service to be sure.
service sme7admind restart
The strange values are maybe due to rrdtool, making a sliding average with old and current values to compute a data point (read rrdtools doc and internals to know more about this).
A little bit weird anyway, but pleased to see it works.
-
Landry
Thanks for a great product.
One thing, it does not show anything under DHCP list and nothing on main page under "connected users"
-
3rd : if i had dozens of contribs to share with the community, maybe it'll be easier for me to setup a 3rd-party yum repository. But i have only 2-3 contribs, and as i have enough work to keep sme7admin bug-free and supported, i don't have time to work on a repository-based setup.
SME Server is going to implement soon a addons and addons-testing repository. So your rpms can go in there soon. There will be some sort of testing/approval process to have them put in there, which hasn't really been thought through yet, but it is coming soon.
For now, I would encourage everyone to report any problems with smeserver-sme7admin to the bug tracker. There is a category " SME Contribs" and a subcategory "smeserver-sme7admin" so you can let Landry know of any problems there.
Thanks
-
Landry
Thanks for a great product.
One thing, it does not show anything under DHCP list and nothing on main page under "connected users"
Yes, for DHCP, it's a bug.
Okay, i think i've found the bug: Please try to patch the file /usr/bin/sme7admind by removing the "via" word in the line 610.
Before:
if(/(\w{3}\s{1,2}\d{1,2} [0-9:]{8}) $SystemName dhcpd: DHCPACK on (\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}) to ([0-9a-f:]{17}) via/o)
After:
if(/(\w{3}\s{1,2}\d{1,2} [0-9:]{8}) $SystemName dhcpd: DHCPACK on
(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}) to ([0-9a-f:]{17})/o)
Then, restart sme7admind (service sme7admind restart), and make a DHCP
request on your workstation. Then, after a little time, execute "grep
-i dhcp /var/log/sme7admin.log" to see if the request has been
detected.
I'll patch my srcs to correct this, and some other details, and post an update to the RPM.
For "connected users", did you read the documentation ?
The result of the command w which permits to see the list of the users connected to a shell on the server, from where, since when, and what was their last command.
Connected users doesn't mean smb/afp/ftp connected users. It's only the result of 'w' in a shell.
@gregswallow : thanks for the reminder on the bugtrack. I should direct users there instead of replying directly on forums.
And if my rpm can go into an addons repository, i'll be pleased of it. Just let me know what are the guidelines/rules.
-
Hi Landry,
sme7admin still working sweet...hasnt missed a beat!
a request for next release....can we have more than one fan input on the graphs? I like to monitor the CPU and hdd cage fans :-)
I like to watch.......oh, thats another subject altogether! LOL :-)
-
I just installed sme7admin on 7pre3 without a hitch. Very excellent work.
Regarding translations:
You might want to include Format D'image = Image format along with the other items noted above. It is on the configuration page.
Merci Beaucoup!
-
I have installed sme7admin on two computers, and it is wonderful. I have discovered too late though that hddtemp does not support many SATA drives. I would suggest checking out there website before buying a drive if you were hoping to use this function.
All other functions installed without a hitch.
Thanks Landry
Bob
-
Very nice contrib. I'm interested especially in the graph that shows emails, viruses & spam; this is a great way to show management how well SME is working for the company. The one live site I've installed it on shows zero viruses for two days with several hundred emails; that seems unlikely. Is it possible the viruses aren't counted because they're rejected right away? How does that count work?
Thanks for the great work on this contrib!
-
Hello !
The viruses are detected by parsing /var/log/clamd/current file, and looking for lines containing "FOUND" keyword. To know the number of viruses found in your e-mails, just try
grep "FOUND" /var/log/clamd/current | wc -l
@crazybob : for hddtemp, you can add your sata hdd to the db of supported drives of hddtemp using smartctl and looking for the smart temperature sensor. I think the procedure is described in hddtemp's doc.
-
Landry
On the front page of SME7admin ... when you scroll down to dhcpd .... and you click on it is it supposed to show you the dhcp connections?
It doesn't show anything on for me ... this would be great if it would show all connected computers.
Is this an un-finished bit or do I need to do some configuration somewhere.
Regards,
Tib
-
It is supposed to show the list of last DHCP Requests (and NOT connected computers.. that's different)... but on some configurations, it may not work, it's a bug.
I posted a solution to correct this bug some time ago in this thread, and i'll make an update to the rpm with bug-corrections as soon as i get some spare time.
Landry
-
Thanks Landry,
The bug fix worked fine.
One question ... where it shows
192.168.1.249 Mac Address pc-00249.xxxxx.net 2006-03-15 19:58:15
Would it be possible to show the computer name instead of pc-00249.xxxxx.net.
Would be very handy for tracking down IP addresses of PC's when you have too many to keep track of.
Regards,
Tib
-
This is a "problem" with SME... dhcpd assigns arbitrary names to hosts on dhcp requests (pc-00xxx , xxx=last byte of ip assigned), and i don't know how to elegantly retrieve the "real hostname" of lan clients. SME only knows clients with this arbitrary hostname...actually, it is done with :
if ($name =gethostbyaddr ($packaddr, 2)) {return $name;}
The fast-easiest way should be to add real hostnames to /etc/hosts, or tinydns configuration, but this is ugly. Maybe using nslookup, or dig, or host, whatever.
If someone has a hint...
I'll try to work on it for a future release.
-
Landry
I have no idea how to write code etc ... but you may want to have a look at e-smith-dhcpmanager-1.5-1.noarch.rpm.
That rpm showed the computer name etc for dhcp ... I used it on SME 6.0.1-01 ... won't work on SME7 I read.
Maybe it will help
Regards,
Tib
-
Thank you for creating and sharing this contrib.
Installed without issue on my7.0 RC1 unit, in use, no issues.
regards,
patrick
-
Thank you for creating and sharing this contrib.
Hey, this is free software :) :-D !!!
Thanks for greetings
-
Landry,
Is it possible to retrieve the info required for host names out of /var/lib/dhcp/dhcpd.leases ... it seems to have everything what would be required.
eg of a snipit of mine:
lease 192.168.1.249 {
starts 3 2006/04/05 10:18:20;
ends 4 2006/04/06 10:18:20;
tstp 4 2006/04/06 10:18:20;
binding state active;
next binding state free;
hardware ethernet 00:11:50:0b:aa:4f;
uid "\001\000\021P\013\252O";
client-hostname "tiborsxp";
}
lease 192.168.1.248 {
starts 3 2006/04/05 10:25:04;
ends 4 2006/04/06 10:25:04;
tstp 4 2006/04/06 10:25:04;
binding state active;
next binding state free;
hardware ethernet 00:00:00:20:69:42;
uid "\001\000\000\000 iB";
client-hostname "Family";
}
lease 192.168.1.101 {
starts 3 2006/04/05 11:47:10;
ends 4 2006/04/06 11:47:10;
tstp 4 2006/04/06 11:47:10;
binding state active;
next binding state free;
hardware ethernet 00:11:2f:e0:b0:90;
uid "\001\000\021/\340\260\220";
client-hostname "Suse";
}
Regards,
Tib
-
You're right, and i already knew it.... i'll have a look at this for the next version :)
-
I note in the thread there is a fix for the DHCP issue but I cannot find it searching. Can someone point me to it please or tell me what the fix is ?
Thanks
peter
-
From Landry:
Please try to patch the file /usr/bin/sme7admind by removing the "via" word in the line 610.
Before:
if(/(\w{3}\s{1,2}\d{1,2} [0-9:]{8}) $SystemName dhcpd: DHCPACK on (\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}) to ([0-9a-f:]{17}) via/o)
After:
if(/(\w{3}\s{1,2}\d{1,2} [0-9:]{8}) $SystemName dhcpd: DHCPACK on (\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}) to ([0-9a-f:]{17})/o)
Then, restart sme7admind (service sme7admind restart), and make a DHCP request on your workstation. Then, after a little time, execute "grep -i dhcp /var/log/sme7admin.log" to see if the request has been detected.
-
Thanks. That sort of worked. Shows IP & MAC but doest show hostname.
Cheers
P
-
Err, in fact it shows the hostname attributed by the dhcp server (pc-000x).. i'm working on it to correct this for the next release.
-
For me the host name column is totally blank
-
probably because gethostbyaddr doesn't return the hostname information. When you ping your host from the server, is the dns name correctly mapped to the ip ?
-
"When you ping your host from the server, is the dns name correctly mapped to the ip ?"
Yes.
-
I created the database listed in the config page for sme7admin but I don't know the table structures for the program to store the data.
Does someone have a dump of the tables?
Thanks!
-
The database and the tables are created when you install the rpm.... why do you try to manually create it ??
Anyway, all the database structure is in /usr/share/doc/smeserver-sme7admin-1.1.0/tables.sql , once the rpm is installed.
-
The database and the tables are created when you install the rpm.... why do you try to manually create it ??
Anyway, all the database structure is in /usr/share/doc/smeserver-sme7admin-1.1.0/tables.sql , once the rpm is installed.
Because when I checked phpMyAdmin on that box, there was no database and no tables. :cry:
-
When you installed the rpm, did you get an error message upon database & table creation ?
Does sme7admind works or crash ? (check /Var/log/sme7admin.log)
Did you tweak the configuration of mysql ? Sme7admin works directly only ifg mysql settings are the defaults, whereas you have to check user/pass accesses...
Try to deinstall the rpm and reinstall it..
-
i am trying to get temps etc on my via epia
lm_sensors finds some sensors, but at the end i get this:
# Warning: the required module vt1211 is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe vt1211
# sleep 2 # optional
/usr/bin/sensors -s # recommended
anyone know and how to get the correct drivers?
-
I'm having trouble installing the sensors to my SME Server.
What I am getting is the following code but I don't understand how to put that into scripts to allow SME7ADMIN to show the data when view via the SERVER-MANAGER
I will now generate the commands needed to load the required modules.
Just press ENTER to continue:
To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# Chip drivers
# Warning: the required module w83627ehf is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe w83627ehf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.
The sensors I have not showing data are as follows
Fan Speed
Donnees ecrites/lues (Which I think is something to do with the HD)
Any assistance would be great
-
Try running "/etc/init.d/lm_sensors start"
After the script runs, run "sensors" and see if you get temps and voltages etc.
Once you verify that it's working create a symlink in /etc/rc7.d called "S26lm_sonsors" pointing to "/etc/init.d/lm_sensors"
-
[root@gateway ~]# /etc/init.d/lm_sensors start
[root@gateway ~]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[root@gateway ~]#
I think I have done something wrong, bt unsure what that is
-
I'm having trouble installing the sensors to my SME Server.
What I am getting is the following code but I don't understand how to put that into scripts to allow SME7ADMIN to show the data when view via the SERVER-MANAGER
[
Step 2 to 7 might help.
http://wellsi.com/sme/lms/lm_sensors.html
-
This is where I get consuffed
[root@gateway ~]# /usr/sbin/sensors-detect
# sensors-detect revision 4171 (2006-09-24 03:37:01 -0700)
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
We can start with probing for (PCI) I2C or SMBus adapters.
Do you want to probe now? (YES/no):
Probing for PCI bus adapters...
Sorry, no known PCI bus adapters found.
We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
We are now going to do the I2C/SMBus adapter probings. Some chips may
be double detected; we choose the one with the highest confidence
value in that case.
If you found that the adapter hung after probing a certain address,
you can specify that address to remain unprobed.
Some chips are also accessible through the ISA I/O ports. We have to
write to arbitrary I/O ports to probe them. This is usually safe though.
Yes, you do have ISA I/O ports even if you do not have any ISA slots!
Do you want to scan the ISA I/O ports? (YES/no):
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM78-J' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Probing for `Winbond W83627HF' at 0x290... No
Probing for `Silicon Integrated Systems SIS5595'... No
Probing for `VIA VT82C686 Integrated Sensors'... No
Probing for `VIA VT8231 Integrated Sensors'... No
Probing for `AMD K8 thermal sensors'... No
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
Some Super I/O chips may also contain sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... Yes
Found `Winbond W83627EHF/EHG Super IO Sensors' Success!
(address 0x290, driver `w83627ehf')
Probing for Super-I/O at 0x4e/0x4f
Trying family `ITE'... No
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Fintek'... No
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `w83627ehf' (should be inserted):
Detects correctly:
* ISA bus address 0x0290 (Busdriver `i2c-isa')
Chip `Winbond W83627EHF/EHG Super IO Sensors' (confidence: 9)
I will now generate the commands needed to load the required modules.
Just press ENTER to continue:
To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# Chip drivers
# Warning: the required module w83627ehf is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe w83627ehf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones! You really
should try these commands right now to make sure everything is
working properly. Monitoring programs won't work until the needed
modules are loaded.
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): YES
I understand that I need to use Found `Winbond W83627EHF/EHG Super IO Sensors' Success!
(address 0x290, driver `w83627ehf')
and
To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# Chip drivers
# Warning: the required module w83627ehf is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe w83627ehf
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
But I don't seem to get it running.
Can you tell me what to put where and explain what and why it goes there?
I have read and tried http://wellsi.com/sme/lms/lm_sensors.html steps 2 to 7 without success
-
I just followed that howto sometime ago and it worked sweet.
I would be concerned about...
# Warning: the required module w83627ehf is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line
-
Step 2 to 7 might help.
http://wellsi.com/sme/lms/lm_sensors.html
i have done these steps, but i have no idea how to get the vt1211 driver into the kernel
# Warning: the required module vt1211 is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe vt1211
# sleep 2 # optional
/usr/bin/sensors -s # recommended
[root@csserver ~]# /etc/init.d/lm_sensors start
Starting lm_sensors: loading module i2c-isa vt1211 No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
[FAILED]
[root@csserver ~]#
[
-
after a reinstall of the server and sme7admin i get this:
Error at RRDs::graph(sessions.PNG) : Garbage ': ' after command: COMMENT:Max:
Number of opened tcp connections for ssh, ftp, vpn, afp and netbios protocols.
what went wrong?
all dependencies have been installed
-
The latest version of RRDTool uses a different syntax than the one used by sme7admin and I think produces the errors you're seeing.
The "right" version for sme7admin:
# rpm -q rrdtool
rrdtool-1.0.50-1.2.el4.rf
The "wrong" version (at least until sme7admin is updated & re-released):
rrdtool-1.2.15-1.el4.rf.i386.rpm (I don't have it loaded anywhere so I can't show you the exact "rpm -q rrdtool" output...)
Here's the post I made when I ran into this problem with "sysstat": http://forums.contribs.org/index.php?topic=32803.0. This thread also has info on how to solve the problem and where to get a "good" copy of rrdtool.
-
Is there a way to change the VPN port that sme7admin monitors? I prefer to use openvpn, and would like to watch port 1194 instead
-
You need to edit the file /usr/bin/sme7admind ligne 982 :
if (/tcp\s+\d+\s+\d+\s\S+:1723\s+\S+\s+ESTABLISHED/)$sessions_vpn++;
Remplace 1723 with openvpn port number (1194 by default), then restart sme7admin /etc/init.d/sme7admind restart
-
Thanks, I will give it a try
Bob
-
That did not work, nothing for the vpn shows up in the graphs. It also seems to break displaying port 22 connection. When I do a "netstat -a -n" the openvpn connection does not show. I will just change it back.
Thanks
Bob