[Xymon] BBWincmd
Scott Post
sjpostsr at gmail.com
Fri May 10 17:21:02 CEST 2013
I have verified that the hostnames match from the hosts.cfg on the Xymon
server.
Here is the first 10 lines of the msg.<hostname>.txt from the BBWin client
(Client Data show available)
client <hostname>.bbwin win32
[osversion]
Microsoft Windows XP Professional Service Pack 3 (build 2600)
[cpu]
up: 8 days, 2 users, 55 procs, load=13%
CPU states:
total 13%
cpu00 12.7%
Here is the first ten lines from the msg.<hostname>.txt that does not
report to Xymon.
client <hostname>.bbwin win32
[osversion]
Microsoft(R) Windows(R) Server 2003, Standard EditionService Pack 2 (build
3790) 32-bit
[cpu]
up: 2 Days, 7 users, 89 processes, load=51%
CPU states:
total 51%
cpu00 31%
cpu01 56%
I wrote a vbscript that captured the StdOut from the BBWinCmd.exe.
Here is what I was getting:
===Begin Output====
bbdisplay defined to : <xymon server>
port defined to : 1984
Sending data ...
hostname defined to: <hostname> 'Note: correct hostname displayed.
Sending to <xymon server> :
data <hostname>.Collector
client
====End of Output====
and the script would exit.
After your comment about "Client data should come in as a client message
rather than data or status." I went back and executed bbwincmd as :
bbwincmd <xymonserver>:<port> uploadmessage msg.<hostname>.txt. and the
xymon server is not showing the Client Data available.
Thank you.
On Thu, May 9, 2013 at 7:08 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>wrote:
> Have you checked your ghost report? Perhaps it's being rejected due to a
> hostname mismatch.
>
> Are you sending a client message? Client data should come in as a client
> message rather than data or status. See "man xymon" for the format.
> Perhaps you could show us the first 10 lines of the message.<hostname>txt
> files?
>
> You could run something like this:
> sudo -u xymon xymoncmd xymond_channel --channel=client sed -n
> '/^@@client/,+10p' "
> to see if the client messages is being received and processed by Xymon.
> This prints the first 10 lines of every client message.
>
> J
>
>
>
> On 10 May 2013 08:31, Scott Post <sjpostsr at gmail.com> wrote:
>
>> How to get client data to Xymon server using BBwincmd?
>>
>> I have BBWin installed on a Test PC and it reports to my Xymon server
>> just fine. When I view the client on the Xymon Server, I have Client Data
>> available at the bottom of my tests. This is same contents as the
>> msg.<hostname>.txt in the tmp directory
>>
>> However, I have another system that I am testing on at this time, I can't
>> install BBWin on, but I have a series of vbscripts that I am running that
>> gather the same data and write out a msg.<hostname>.txt for that system.
>>
>> From what I have read and understand, I can use the BBwincmd.exe to
>> upload that msg.<hostname>.txt to the Xymon server.
>> For whatever reason, I can not get the client data to show up for this
>> other system.
>>
>> I have compared the two msg.<hostname>.txt from each PC and the are
>> basically identical in format.
>>
>> I have looked at BBWinCmd /? and I believe that BBWinCmd
>> <bbdisplay>:<port> uploadmessage <filename> is the correct option, but the
>> Xymon server never shows Client Data for the second host.
>>
>> If I have the scripts, run BBWinCmd status <hostname> <test> <status>
>> <reportdata>, all the information displays on the Xymon server just fine.
>>
>> Can someone please help point me in the right direction?
>>
>> Thanks
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130510/1e14bb3b/attachment.html>
More information about the Xymon
mailing list