[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Hobbit Status and Data Question
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit Status and Data Question
- From: "Geoff Hallford" <geoff.hallford (at) gmail.com>
- Date: Tue, 8 Jul 2008 17:57:49 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=A88Z+jDEze1nWFT4zDSSQGLMQmCwAHHUe5ahRgLflAI=; b=vQiYvwJCcS+6uKrOIwELvwDgbI2jr/H1U9CdAHAVGZt48+zZH6xoqRDjZzOWCjdFOi /SoKWxpN6n64nQW9+pEOC/I4uI5dGHuB1E7bbtZ4CT7qFBLyj0tudp4muyfZxwRtzfpQ A8WzIN+UbcsFjhe7UD47vgTNgmBT4ZNFKnkDE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=mJRwB3OQvLbn+PPxqJzGpu8sz24bhw4g+AK/1JFhu4h9vdvePNfmsq5JHKnuZFl1ck pVBXtgNDsf4sG001TE3eYT+roxzCchh92uXLxxndQgBsqKgV2bxJstxdPaxdWCtoNOwP emP8aBmDATfa02OVynpk7wIQw2gdUG9my146A=
- References: <78ca5ea20807081036l2a4d9321m6d73a28100d5cc09 (at) mail.gmail.com> <997a524e0807081054m63d957d8g3a22cbfc97876dc (at) mail.gmail.com> <78ca5ea20807081212l17dc3676i64b72e1f25703863 (at) mail.gmail.com> <997a524e0807081228i7a5e80c7h8da07221060e0f96 (at) mail.gmail.com>
Thanks Ralph. Thought about that too, just hoped there was a better way. I
will try a few more things and update this thread if I figure it out for
future people.
On Tue, Jul 8, 2008 at 3:28 PM, Ralph Mitchell <ralphmitchell (at) gmail.com>
wrote:
> I think I had a similar multi-line problem with bb.pl. I'm not a perl
> programmer, but I managed to make it do what I needed at the time.
> Unfortunately, that system went away and I don't have a copy.
>
> It may not be optimal, but you could report the two licenses independantly:
>
> bbsend "10.10.10.10 TEST-PC.citrix-license1 red License is at 96% in
> use"
>
> bbsend "10.10.10.10 TEST-PC.citrix-license2 red License is at 96% in
> use"
>
> You'd get two columns...
>
> That's about all I got - I don't do perl very often, and don't know how to
> compile it for windows...
>
> Ralph Mitchell
>
>
>
> On Tue, Jul 8, 2008 at 2:12 PM, Geoff Hallford <geoff.hallford (at) gmail.com>
> wrote:
>
>> Thanks for that. I can't put Active Perl on the system either but the
>> bbsend.exe works good for basic status. A problem I have run into though, is
>> that it does not seem to accept multi-line input like bb.pl does. Does
>> anyone know how to do this for CMD?
>>
>> I tried "type input.txt | bbsend.exe" and command runs fine but the hobbit
>> status page doesn't show the data.
>>
>> The normal command works fine "bbsend "10.10.10.10 TEST-PC.citrix-license
>> red License is at 96% in use" ... the rub is that I have 2 licenses and I
>> want to display them on 2 different lines in Hobbit status column but can't.
>>
>> This would be simple on *nix but Windows is giving me a hard time.
>>
>> Any help is appreciated.
>>
>> Thanks.
>>
>>
>> 'Nobody goes there anymore. It's too crowded.' --Yogi Berra
>>
>> On Tue, Jul 8, 2008 at 1:54 PM, Ralph Mitchell <ralphmitchell (at) gmail.com>
>> wrote:
>>
>>> On Tue, Jul 8, 2008 at 12:36 PM, Geoff Hallford <
>>> geoff.hallford (at) gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am hoping someone can help with this or provide a link to an
>>>> explanation, as I haven't been able to find the information in the archives
>>>> or how-to's.
>>>>
>>>> I have a server that I am monitoring Citrix licensing usage on.
>>>> Currently I am using a VBScript for this purpose that figures out the usage
>>>> and then emails me of >90% used and >95% used. It uses the telnet and
>>>> WshShell.SendKeys method to do this.
>>>>
>>>> Key Item: The business doesn't want the BBWin agent on this server.
>>>>
>>>> I want to be able to send the 'status' and 'data' to Hobbit and have
>>>> hobbit: alert on it, and graph it.
>>>>
>>>> Can I do something as simple as a telnet session to the Hobbit server on
>>>> 1984/tcp and send the info? What is the syntax for that and what commands
>>>> does it accept (i.e. to close the session)?
>>>>
>>>>
>>> Dunno about telnet, but if the server has Perl you might be able to use
>>> bb.pl from the deadcat.net BB site:
>>>
>>> http://www.deadcat.net/viewfile.php?fileid=155
>>>
>>> It's a drop-in replacement for the bb command. There's also bbsend.exe:
>>>
>>> http://www.deadcat.net/viewfile.php?fileid=353
>>>
>>> which is a compiled version of bb.pl.
>>>
>>> I've used bb.pl in a couple of places, but not recently.
>>>
>>> Ralph Mitchell
>>>
>>
>>
>