[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: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Tue, 8 Jul 2008 14:28:19 -0500
- 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=iBMpULOlu9t7jZjlYwWcFULLMe+ItE79L7CCf89O5I0=; b=ump4PQzpj1VQYtQxU4uShVSUKqRaQ0qEj0xsW5YPlPCQ7dOlft+1j7ZzHMqv9qLS44 su+UR9oZIar+8vxAmhbXY6oey+suTLxZGSOQ37jzhQysaDtk3oVcvFA/88IoSeetio1n pS9lOwMURHHjNZvU+EBgS1AYqzQoF7K8qoe6A=
- 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=ecG4dUj2w6/WITXYmHihuLKB715weDTR3XA9/EE4R9cA7POQmjIoUblYpDLw+N5MZk En/AhtIJKLyXshQwSy3dndLrKT8Ygyp6fcetJMrjrPHtSuCZXRPaADtREy9vUMrjBVjA Q2JvAqfiHasoTIJ9VxcgZ6JADkhTv9xZTR9e8=
- References: <78ca5ea20807081036l2a4d9321m6d73a28100d5cc09 (at) mail.gmail.com> <997a524e0807081054m63d957d8g3a22cbfc97876dc (at) mail.gmail.com> <78ca5ea20807081212l17dc3676i64b72e1f25703863 (at) mail.gmail.com>
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
>>
>
>