[hobbit] Query current host status via CLI
Found the solution, although I’m sure there are easier methods. I used curl to scrape the number of users from each citrix server, and added them as the script went along. Fortunately, making a fake host using noconn, and then naming the test citrix (which matches the real citrix test coming from the individual servers) was all I had to do, hobbit is now generating a graph.
Al
From: Jeffcoat, Al Sent: Wednesday, September 06, 2006 10:17 AM To: hobbit at hswn.dk Subject: [hobbit] Query current host status via CLI
Hello All,
One of my Intel admins has asked if there is a way to determine the total number of citrix sessions in use using hobbit. We are currently using the citrix plug-in, but he would like the same information displayed as a total for the farm. I’m sure there are ways within windows to do this, but I am not a windows admin. I know that I could easily to this from the command line in many ways.
My three questions are:
Is anyone already doing this?Is there a way from the command line on the hobbit server to determine the most current status for a hobbit client? My thought was to scrape the include file for the citrix servers in question, feed it to a for loop, and then query the status, and then just count up the logged in clients. I’ve looked in the files in ~/data, and do not see current status messages there.Can anyone think of a better way than in question #2, assuming I can get the most current status message via CLI?
Thanks,
Al
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited. This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandoregional.org . If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Regional Healthcare by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Regional Healthcare.
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.405 / Virus Database: 268.12.0/439 - Release Date: 9/6/2006
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.405 / Virus Database: 268.12.0/439 - Release Date: 9/6/2006
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited. This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandoregional.org . If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Regional Healthcare by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Regional Healthcare.
"Jeffcoat, Al" wrote on 07/09/2006 08:12:50 a.m.:
Found the solution, although I’m sure there are easier methods. I used curl to scrape the number of users from each citrix server, and added them as the script went along. Fortunately, making a fake host using noconn, and then naming the test citrix (which matches the real citrix test coming from the individual servers) was all I had to do, hobbit is now generating a graph.
Al
henrik at hswn.dk (Henrik Stoerner) wrote on 07/09/2006 09:32:26 p.m.:
You can use the command bb 127.0.0.1 "hobbitdboard test=citrix fields=msg" then search each line of output for the string "NNN users active" and sum up the NNN values. I have some rather ugly C code to do it, but I'm sure it can easily be done in Perl if you know how.
A Citrix Farm summary is something I've thought about for ages - so thanks to both of you for the push to finally get a script done!
I've created dummy entries for both of our Citrix farms, and have the "citrix" test pages generated with the "X users active" text showing, but I'm not getting any RRD files and I'm getting a "broken image" for my citrix graph.
Is there anything else I should have to do?
Cheers, Andy. #####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
On Mon, Sep 11, 2006 at 01:34:06PM +1200, Andy France wrote:
A Citrix Farm summary is something I've thought about for ages - so thanks to both of you for the push to finally get a script done!
I've created dummy entries for both of our Citrix farms, and have the "citrix" test pages generated with the "X users active" text showing, but I'm not getting any RRD files and I'm getting a "broken image" for my citrix graph.
The parser looks for the string "<newline>N users active<newline>" so make sure you dont have any tabs, spaces or anything else in front of (or after) the line with the user-count.
Henrik
Henrik Stoerner wrote on 11/09/2006 06:48:12 p.m.:
On Mon, Sep 11, 2006 at 01:34:06PM +1200, Andy France wrote:
A Citrix Farm summary is something I've thought about for ages - so
thanks
to both of you for the push to finally get a script done!
I've created dummy entries for both of our Citrix farms, and have the "citrix" test pages generated with the "X users active" text showing, but I'm not getting any RRD files and I'm getting a "broken image" for my citrix graph.
The parser looks for the string "<newline>N users active<newline>" so make sure you dont have any tabs, spaces or anything else in front of (or after) the line with the user-count.
Henrik
Aha! It was the trailing newline that I needed to add to my script. I now have a lovely graph showing 0 users logged into my 5 server farm ;) I'll let the slackers off seeing as it's 2035 local time.
Excellent service as usual Henrik - Thank You Very Much!
Andy.
#####################################################################################
This email is intended for the person to whom it is addressed only. If you are not the intended recipient, do not read, copy or use the contents in any way. The opinions expressed may not necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information contained herein, ZESPRI does not make any representations as to the accuracy of the information or to the performance of any data, information or the products mentioned herein. ZESPRI will not accept liability for any losses, damage or consequence, however, resulting directly or indirectly from the use of this e-mail/attachments. #####################################################################################
participants (3)
-
Al.Jeffcoat@orhs.org
-
Andy@zespri.com
-
henrik@hswn.dk