[imp] number of simultaneous users

Jan Schneider jan at horde.org
Wed Nov 16 15:57:50 PST 2005


Zitat von Marcelo Maraboli <marcelo.maraboli at usm.cl>:

> I wish to monitor (with MRTG) the number of simultaneous
> IMP logged-on users.
>
> I am currently counting the number of session files in
> the /tmp directory like "ls -l /tmp/sess-*|wc -l" and
> send that value to MRTG, but somehow I do not trust
> this value...
>
> Is there a more efficient and correct way to do this ?

Yes, take a look at the SessionHandler package from CVS, as well as the 
places in Horde using it, like in scripts/ and admin/. All from CVS 
HEAD or FRAMEWORK_3.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the imp mailing list