On 7/02/2011, at 2:33 AM, kellyremo wrote:
"The past 2 minutes" is not a good indication of "active client" (unless that's your maximum lease time). It would be better to look in the dhcp.leases file somewhere under /var. There are at least Perl libraries (and very likely Python libraries too) for parsing this file easily.
Why on earth are you putting it under /dev/shm/? Surely /tmp, /var/tmp, or /var/lib/FOO would be better.
I think your log-out detection is faulty. The only way you could reasonably infer this is if either a DHCP RELEASE message has been received, or the lease has not been renewed after the lease-expiry. What is your lease-time?
I would suggest a solution based around dhcp.leases and something like gamin Hope it helps, Cameron |
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos