Koozali.org formerly Contribs.org

[Announce] : release of smeserver-sme7admin-1.1.0

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.