Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-2010, 07:00 AM
Loyal Member
 
Posts: 81
Default Current number of Logged on users

Is there a way to get the current number of logged on users via
command line, soap, ldap?

I am building some graphs to interface with cacti
__________________
otel consulting, inc.
www.otelconsulting.com | facebook | twitter
Reply With Quote
  #2 (permalink)  
Old 06-01-2010, 07:28 AM
Moderator
 
Posts: 7,928
Default

Code:
zmsoap -z DumpSessionsRequest @name=listSessions @groupByAccount
__________________
Reply With Quote
  #3 (permalink)  
Old 06-01-2010, 08:51 AM
Loyal Member
 
Posts: 81
Default

great that worked perfect! I have never really messed around with soap.
The cacti script i am making which lives on a different server to pull stats.

I asume I could translate this to an actual external soap request?

uxbod do you have an email address I could use someone knowlegable like you in order to build out this cacti graphic then make it avalible to the cacti community. I wouldn't bother you to much PM me your email if you would like to lend some knowlege.
__________________
otel consulting, inc.
www.otelconsulting.com | facebook | twitter
Reply With Quote
  #4 (permalink)  
Old 06-01-2010, 09:03 AM
Moderator
 
Posts: 7,928
Default

Just add a '-v' to show the XML request; or even switch to using JSON by adding '--json' on the end of the SOAP request.
__________________
Reply With Quote
  #5 (permalink)  
Old 06-01-2010, 09:32 AM
Loyal Member
 
Posts: 81
Default

any idea how to send a soap request for a list of users and their total storage size similar to this cmd

zmprov gqu 'zimbraserver.com'
__________________
otel consulting, inc.
www.otelconsulting.com | facebook | twitter
Reply With Quote
  #6 (permalink)  
Old 06-01-2010, 09:50 AM
Moderator
 
Posts: 7,928
Default

Code:
zmsoap -z GetQuotaUsageRequest
Check /opt/zimbra/docs/soap-admin.txt for what information you can get from the admin interface.
__________________
Reply With Quote
  #7 (permalink)  
Old 06-01-2010, 10:18 AM
Loyal Member
 
Posts: 81
Default

I noticed in your other forms you seem to have a lot of experience in SOAP and PHP. I am a bit new to SOAP but have knowlege of PHP.

Can you paste a code example with either curl or soapclient for the following request.

Code:
zmsoap -z DumpSessionsRequest @name=listSessions @groupByAccount
Given that I think I can take that and run with it for my zimbra cacti stats package.

Either way uxbod you've been a big help and thanks!
__________________
otel consulting, inc.
www.otelconsulting.com | facebook | twitter
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.