Koozali.org formerly Contribs.org

[Announce] : release of smeserver-sme7admin-1.1.0

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« 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)

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #1 on: February 17, 2006, 12:01:33 AM »
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
............

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #2 on: February 17, 2006, 12:41:46 AM »
Quote from: "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)

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #3 on: February 17, 2006, 01:12:09 AM »
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..!!

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #4 on: February 17, 2006, 01:22:09 AM »
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
............

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #5 on: February 17, 2006, 10:10:13 AM »
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!

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #6 on: February 17, 2006, 11:03:19 AM »
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 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

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #7 on: February 17, 2006, 11:11:24 AM »
Quote from: "Reinhold"
Landry,

Thanks for the pointer to wellsi (you'll find "Reinhold" on top of that page ;-) - thanks Ian! )

Woops.... sorry :)

Quote from: "Reinhold"

P.S.: In my case hardware setup seems even worse.
While everyone 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 ....

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #8 on: February 19, 2006, 03:39:28 AM »
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!

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #9 on: February 19, 2006, 05:22:22 AM »
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.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #10 on: February 20, 2006, 10:58:40 AM »
@stocky: you say you're a noob, did you read the config page ?

Quote
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
Quote
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....

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #11 on: February 20, 2006, 12:26:26 PM »
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 :-)

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #12 on: February 20, 2006, 01:26:45 PM »
Quote from: "stocky"

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...).
Quote from: "stocky"

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.

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #13 on: February 20, 2006, 05:01:43 PM »
"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
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #14 on: February 20, 2006, 05:13:18 PM »
Quote from: "burnat"
"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.

tshimko1

Working like a charm!
« Reply #15 on: February 20, 2006, 08:08:07 PM »
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

Offline cactus

  • *
  • 4,880
    • http://www.snetram.nl
Re: [Announce] : release of smeserver-sme7admin-1.1.0
« Reply #16 on: February 20, 2006, 08:38:56 PM »
Quote from: "Landry"
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 in the SME Server Core Development Project)

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:

Code: [Select]
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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #17 on: February 20, 2006, 09:43:22 PM »
Quote
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

Janm

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #18 on: February 22, 2006, 11:56:29 AM »
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:

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #19 on: February 22, 2006, 11:49:31 PM »
Hi Landry,

Finally been able to get this info for you....

Code: [Select]
[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!

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #20 on: February 23, 2006, 12:22:47 AM »
paste here the output of
Code: [Select]
grep tag /etc/e-smith/web/panels/manager/html/sme7admin/sme7admin.conf

it should be
Code: [Select]

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

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #21 on: February 23, 2006, 02:04:34 AM »
Landry,

Results of grep:

Code: [Select]
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.

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #22 on: February 23, 2006, 04:27:55 AM »
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

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #23 on: February 23, 2006, 10:04:49 AM »
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.
Code: [Select]
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.

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #24 on: February 24, 2006, 08:53:25 AM »
Landry
Thanks for a great product.
One thing, it does not show anything under DHCP list and nothing on main page under "connected users"
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #25 on: February 25, 2006, 01:08:03 AM »
Quote from: "Landry"
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

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #26 on: February 25, 2006, 12:43:13 PM »
Quote from: "calisun"
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.
Quote from: "me in a mail"
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 ?

Quote from: "the doc"
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.

stocky

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #27 on: February 27, 2006, 01:03:46 PM »
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 :-)

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #28 on: March 03, 2006, 12:13:42 AM »
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!
...

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #29 on: March 07, 2006, 11:24:02 PM »
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
If you think you know whats going on, you obviously have no idea whats going on!

Offline MSmith

  • *
  • 675
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #30 on: March 10, 2006, 07:46:58 AM »
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!
...

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #31 on: March 10, 2006, 10:14:46 AM »
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
Code: [Select]
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.

Offline Tib

  • *
  • 571
    • http://www.tibors.net
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #32 on: March 14, 2006, 09:33:05 AM »
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

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #33 on: March 14, 2006, 03:08:33 PM »
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

Offline Tib

  • *
  • 571
    • http://www.tibors.net
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #34 on: March 15, 2006, 11:26:04 AM »
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

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #35 on: March 15, 2006, 11:42:44 AM »
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 :

Code: [Select]
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.

Offline Tib

  • *
  • 571
    • http://www.tibors.net
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #36 on: March 17, 2006, 11:41:59 AM »
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

Offline idyll

  • ***
  • 113
splendid work
« Reply #37 on: March 20, 2006, 02:25:03 AM »
Thank you for creating and sharing this contrib.

Installed without issue on my7.0 RC1 unit, in use, no issues.

regards,

patrick
...

Landry

Re: splendid work
« Reply #38 on: March 20, 2006, 08:20:22 AM »
Quote from: "idyll"
Thank you for creating and sharing this contrib.


Hey, this is free software :) :-D !!!

Thanks for greetings

Offline Tib

  • *
  • 571
    • http://www.tibors.net
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #39 on: April 05, 2006, 03:14:39 PM »
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

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #40 on: April 05, 2006, 03:32:05 PM »
You're right, and i already knew it.... i'll have a look at this for the next version :)

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #41 on: April 08, 2006, 01:13:47 AM »
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
...

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #42 on: April 08, 2006, 01:48:36 AM »
From Landry:
Please try to patch the file /usr/bin/sme7admind by removing the "via" word in the line 610.

Before:
Code: [Select]

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:

Code: [Select]
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.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #43 on: April 08, 2006, 08:46:28 AM »
Thanks. That sort of worked. Shows IP & MAC but doest show hostname.

Cheers
P
...

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #44 on: April 08, 2006, 12:16:34 PM »
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.

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #45 on: April 08, 2006, 02:10:43 PM »
For me the host name column is totally blank
...

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #46 on: April 11, 2006, 09:33:34 AM »
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 ?

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #47 on: April 11, 2006, 10:12:59 AM »
"When you ping your host from the server, is the dns name correctly mapped to the ip ?"

Yes.
...

jhale1966

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #48 on: July 13, 2006, 05:20:40 PM »
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!

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #49 on: July 14, 2006, 11:49:16 AM »
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.

jhale1966

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #50 on: July 14, 2006, 12:20:37 PM »
Quote from: "Landry"
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:

Landry

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #51 on: July 15, 2006, 11:26:41 AM »
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..

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #52 on: November 28, 2006, 09:14:20 AM »
i am trying to get temps etc on my via epia
lm_sensors finds some sensors, but at the end i get this:

Code: [Select]

# 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?

Offline Teviot

  • *
  • 610
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #53 on: November 30, 2006, 02:15:33 AM »
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

Code: [Select]
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
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Arnie

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #54 on: November 30, 2006, 03:35:21 AM »
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"
...

Offline Teviot

  • *
  • 610
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #55 on: November 30, 2006, 03:39:31 AM »
Code: [Select]
[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
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline william_syd

  • ****
  • 1,608
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #56 on: November 30, 2006, 05:57:15 AM »
Quote from: "teviot"
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
Regards,
William

IF I give advise.. It's only if it was me....

Offline Teviot

  • *
  • 610
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #57 on: November 30, 2006, 06:24:49 AM »
This is where I get consuffed

Code: [Select]
[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
Code: [Select]
Found `Winbond W83627EHF/EHG Super IO Sensors'              Success!
    (address 0x290, driver `w83627ehf')

and
Code: [Select]
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
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline william_syd

  • ****
  • 1,608
  • Nothing to see here.
    • http://www.magicwilly.info
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #58 on: November 30, 2006, 07:27:08 AM »
I just followed that howto sometime ago and it worked sweet.

I would be concerned about...
Code: [Select]
# 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
Regards,
William

IF I give advise.. It's only if it was me....

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #59 on: November 30, 2006, 11:08:20 AM »
Quote


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

Code: [Select]

# 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


Code: [Select]

[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 ~]#

[

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #60 on: December 05, 2006, 10:30:40 AM »
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

Offline mmccarn

  • *
  • 2,518
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #61 on: December 08, 2006, 07:02:34 AM »
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.

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #62 on: December 24, 2006, 09:22:25 PM »
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
If you think you know whats going on, you obviously have no idea whats going on!

Offline Daniel B.

  • *
  • 1,694
    • Firewall Services, la sécurité des réseaux
[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #63 on: December 26, 2006, 01:10:28 PM »
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
C'est la fin du monde !!! :lol:

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #64 on: December 26, 2006, 01:53:13 PM »
Thanks, I will give it a try


Bob
If you think you know whats going on, you obviously have no idea whats going on!

[Announce] : release of smeserver-sme7admin-1.1.0
« Reply #65 on: December 26, 2006, 02:59:49 PM »
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
If you think you know whats going on, you obviously have no idea whats going on!