BBWin problems
list Etienne Marganne
Hello all, I am currently testing BBWin and I have some problems. The bb-hostsvc.sh script returns an error: Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information (and I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin? Thank you for any help on that topic. Etienne Marganne TI Automotive The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Johann Eggers
▸
From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: Freitag, 9. Februar 2007 10:20 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] BBWin problems Hello all, I am currently testing BBWin and I have some problems. The bb-hostsvc.sh script returns an error: Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information (and I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin? Thank you for any help on that topic. Etienne Marganne TI Automotive
I had no problem using the BBWin client. Just install it on the machine, adapt the bbwin.cfg file and start the service. No change in bb-hosts needed... B.t.w: The hostname in your query (HOST=emarganne.bbwin ) looks a little bit strange to me. Here is a sample query for a windows machine in my environment: http://my-hobbit-server/hobbit-cgi/bb-hostsvc.sh?HOST=adm02&SERVICE=info
list Etienne Marganne
What does look strange? The use of some kind of FQDN? I have read that there could be problems with BBWin clients and FQDN... I am right? Is there a solution? Thank in advance. Etienne Marganne TI Automotive
▸
-----Original Message----- From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] Sent: vendredi 9 février 2007 10:35 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: Freitag, 9. Februar 2007 10:20 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] BBWin problems Hello all, I am currently testing BBWin and I have some problems. The bb-hostsvc.sh script returns an error: Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information (and I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin? Thank you for any help on that topic. Etienne Marganne TI Automotive I had no problem using the BBWin client. Just install it on the machine, adapt the bbwin.cfg file and start the service. No change in bb-hosts needed... B.t.w: The hostname in your query (HOST=emarganne.bbwin ) looks a little bit strange to me. Here is a sample query for a windows machine in my environment: http://my-hobbit-server/hobbit-cgi/bb-hostsvc.sh?HOST=adm02&SERVICE=info The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Johann Eggers
▸
Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information
(and
I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin?
In the past I had a problem with a client not appearing on the Hobbit display even the client sends his data to the server. The reason was the hostname of the client (FQDN) and the entry in the server bb-hosts file (no FQDN). After inserting the tag CLIENT:<HOSTNAME> into the bb-hosts the problem was gone. Is your machine listed in the ghost report? Johann
list Jason Altrincham Jones
I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname. Jason.
▸
-----Original Message----- From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: 09 February 2007 09:44 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems What does look strange? The use of some kind of FQDN? I have read that there could be problems with BBWin clients and FQDN... I am right? Is there a solution? Thank in advance. Etienne Marganne TI Automotive -----Original Message----- From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] Sent: vendredi 9 février 2007 10:35 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: Freitag, 9. Februar 2007 10:20 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] BBWin problems Hello all, I am currently testing BBWin and I have some problems. The bb-hostsvc.sh script returns an error: Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information (and I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin? Thank you for any help on that topic. Etienne Marganne TI Automotive I had no problem using the BBWin client. Just install it on the machine, adapt the bbwin.cfg file and start the service. No change in bb-hosts needed... B.t.w: The hostname in your query (HOST=emarganne.bbwin ) looks a little bit strange to me. Here is a sample query for a windows machine in my environment: http://my-hobbit-server/hobbit-cgi/bb-hostsvc.sh?HOST=adm02&SERVICE=info The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Etienne Marganne
OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks
▸
-----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname. Jason. -----Original Message----- From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: 09 February 2007 09:44 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems What does look strange? The use of some kind of FQDN? I have read that there could be problems with BBWin clients and FQDN... I am right? Is there a solution? Thank in advance. Etienne Marganne TI Automotive -----Original Message----- From: Johann Eggers [mailto:user-769b09132207@xymon.invalid] Sent: vendredi 9 février 2007 10:35 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems From: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid] Sent: Freitag, 9. Februar 2007 10:20 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] BBWin problems Hello all, I am currently testing BBWin and I have some problems. The bb-hostsvc.sh script returns an error: Query string: bb-hostsvc.sh?HOST=emarganne.bbwin&SERVICE=info Results: Premature end of script headers: bb-hostsvc.sh Beside that it does not display the other information like CPU, disk,... just like the BBWin client was not sending properly the information (and I am sure the bbdisplay is well configured, so is the registry key) or the information were misinterpreted by the server. Is there something to do on the server side (besides adding the new client in bb-hosts) to make it work with BBWin? Thank you for any help on that topic. Etienne Marganne TI Automotive I had no problem using the BBWin client. Just install it on the machine, adapt the bbwin.cfg file and start the service. No change in bb-hosts needed... B.t.w: The hostname in your query (HOST=emarganne.bbwin ) looks a little bit strange to me. Here is a sample query for a windows machine in my environment: http://my-hobbit-server/hobbit-cgi/bb-hostsvc.sh?HOST=adm02&SERVICE=info The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Michael Wiegard
Using the format In bb-hosts: 0.0.0.0 HOSTNAME (without domain) # ssh the browser asks where to save bb-hostsvc.sh Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0 I've already compared with another hobbit-server's configuration, but found no differences. The mailing-list archive did not help (perhaps wrong search term?!). When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine... Any ideas? Thanks in advance, Michael [hobbit-newbie!!]
list Etienne Marganne
This looks like the problem I have with bb-hostsvc.sh. Which Hobbit client do you use? (mine is BBWin)
▸
Etienne Marganne
TI Automotive
-----Original Message-----
From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid]
Sent: vendredi 9 février 2007 11:40
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format
In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info
Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found
no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works
fine...
Any ideas?
Thanks in advance,
Michael [hobbit-newbie!!]
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Michael Wiegard
It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem. Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs.
▸
-----Ursprüngliche Nachricht-----
Von: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid]
Gesendet: Freitag, 9. Februar 2007 11:51
An: user-ae9b8668bcde@xymon.invalid
Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
This looks like the problem I have with bb-hostsvc.sh. Which Hobbit client
do you use? (mine is BBWin)
Etienne Marganne
TI Automotive
-----Original Message-----
From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid]
Sent: vendredi 9 février 2007 11:40
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Browser asks where to save bb-hostsvc.sh
Using the format
In bb-hosts:
0.0.0.0 HOSTNAME (without domain) # ssh
the browser asks where to save bb-hostsvc.sh
Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info
Alt-text of the link is: info:green:0.0.0.0
I've already compared with another hobbit-server's configuration, but found
no differences.
The mailing-list archive did not help (perhaps wrong search term?!).
When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works
fine...
Any ideas?
Thanks in advance,
Michael [hobbit-newbie!!]
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Johann Eggers
▸
-----Original Message----- From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid] Sent: Freitag, 9. Februar 2007 12:01 To: user-ae9b8668bcde@xymon.invalid Subject: AW: [hobbit] Browser asks where to save bb-hostsvc.sh It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem. Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs. -----Original Message----- From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid] Sent: vendredi 9 février 2007 11:40 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Browser asks where to save bb-hostsvc.sh Using the format In bb-hosts: 0.0.0.0 HOSTNAME (without domain) # ssh the browser asks where to save bb-hostsvc.sh Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0 I've already compared with another hobbit-server's configuration, but found no differences. The mailing-list archive did not help (perhaps wrong search term?!). When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine... Any ideas?
Must be your web-server... From the Mail archive: On Fri, Jul 21, 2006 at 01:09:59PM +0800, Everett, Vernon wrote:
Hi all I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download. :-(
If you do download it, then what's in the file - a shell script, or an HTML document ? If it's a shell script, then your cgi directories are not seen as such, and you're just getting the shell script sent back to you as a plain file. If it's an HTML document, then the CGI program runs and generates the correct response - in that case, I suspect that your webserver doesn't provide the right Content-type header, although the Hobbit CGI programs all try their best to set this correctly. If you've got something like "curl" installed then running curl -i http://hobbit-cgi/..... |more will show you the headers sent by the webserver. If you dont have that, then you can just telnet to the webserver on port 80, and send it GET http://hobbit-cgi/..... <hit enter twice> Johann
list Michael Wiegard
But why does it work when I use the correct IP address in bb-hosts-file? Links in the trends column also work fine (Link-alt-text is: trends:green: - without 0.0.0.0). When a download the file there is NOTHING in it; size 0k.
▸
-----Ursprüngliche Nachricht-----
Von: Johann Eggers [mailto:user-769b09132207@xymon.invalid]
Gesendet: Freitag, 9. Februar 2007 12:09
An: user-ae9b8668bcde@xymon.invalid
Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
-----Original Message----- From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid] Sent: Freitag, 9. Februar 2007 12:01 To: user-ae9b8668bcde@xymon.invalid Subject: AW: [hobbit] Browser asks where to save bb-hostsvc.sh It's the same with the windows-client and unix-clients. I think this is not a BBWin/client specific problem. Looks like a wrong configuration(?!), but I don't know exactly what the problem is... No hints in the logs. -----Original Message----- From: user-348a872f1948@xymon.invalid [mailto:user-348a872f1948@xymon.invalid] Sent: vendredi 9 février 2007 11:40 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Browser asks where to save bb-hostsvc.sh Using the format In bb-hosts: 0.0.0.0 HOSTNAME (without domain) # ssh the browser asks where to save bb-hostsvc.sh Link-address: .../hobbit-cgi/bb-hostsvc.sh?HOST=hobbitzone&SERVICE=info Alt-text of the link is: info:green:0.0.0.0 I've already compared with another hobbit-server's configuration, but found no differences. The mailing-list archive did not help (perhaps wrong search term?!). When entering the IP-address instead of 0.0.0.0 (in bb-hosts) it works fine... Any ideas?
Must be your web-server... From the Mail archive: On Fri, Jul 21, 2006 at 01:09:59PM +0800, Everett, Vernon wrote:
Hi all I am installing a new Hobbit server, running 4.1.2p1 on Solaris 10 with Apache 2.2.0 It's starting to look good. I get the main hobbit page come up, and many green faces smiling at me. However, whenever I click on a face, or any menu option that runs a script, my browser opens a dialogue box and wants to start a download.
:-(▸
If you do download it, then what's in the file - a shell script, or an HTML document ? If it's a shell script, then your cgi directories are not seen as such, and you're just getting the shell script sent back to you as a plain file. If it's an HTML document, then the CGI program runs and generates the correct response - in that case, I suspect that your webserver doesn't provide the right Content-type header, although the Hobbit CGI programs all try their best to set this correctly. If you've got something like "curl" installed then running curl -i http://hobbit-cgi/..... |more will show you the headers sent by the webserver. If you dont have that, then you can just telnet to the webserver on port 80, and send it GET http://hobbit-cgi/..... <hit enter twice> Johann
list Henrik Størner
▸
On Fri, Feb 09, 2007 at 11:39:53AM +0100, user-348a872f1948@xymon.invalid wrote:
Using the format In bb-hosts: 0.0.0.0 HOSTNAME (without domain) # ssh the browser asks where to save bb-hostsvc.sh
This is reported from time to time - usually with the "client data" links. First check that your webserver has the hobbit-cgi directory configured as a "CGI" directory, i.e. it will run the bb-hostsvc.sh program rather than just downloading the shell script. If the bb-hostsvc.sh CGI works for some links but not for others, then that is not your problem. In that case, it probably is a problem with the browser. If you do save the data to a file, I think you'll see that it is a perfectly valid HTML document that's been sent. Since the data sent from your webserver to your browser is HTML, and the webserver also sends a valid "content-type" header, your browser should present it as an HTML page, instead of asking you to save it. Internet Explorer seems prone to this in some setups, whereas I haven't heard of it being an issue with Firefox. I suspect it is some security setting inside IE that triggers it - or perhaps it's just a bug. As an example, this link http://www.hswn.dk/hobbit-cgi/bb-hostsvc.sh?HOST=localhost&SERVICE=info is the "info" column page for a host with no domain name and a 0.0.0.0 address in bb-hosts. Does that work in your browser? Regards, Henrik
list Henrik Størner
▸
On Fri, Feb 09, 2007 at 12:19:16PM +0100, user-348a872f1948@xymon.invalid wrote:
When a download the file there is NOTHING in it; size 0k.
Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 . Are there any errors for the request in your apache error-log ? Regards, Henrik
list Henrik Størner
▸
On Fri, Feb 09, 2007 at 12:33:54PM +0100, Henrik Stoerner wrote:
On Fri, Feb 09, 2007 at 12:19:16PM +0100, user-348a872f1948@xymon.invalid wrote:When a download the file there is NOTHING in it; size 0k.Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 . Are there any errors for the request in your apache error-log ?
Sorry, I just read the other mails in this thread that you get a
"Premature end of script headers ..." which is an indication that the
bb-hostsvc.sh CGI crashed.
So - time to debug this. On your Hobbit server, run these commands:
ulimit -c unlimited
QUERY_STRING="HOST=YOURHOSTNAME&SERVICE=info"
REQUEST_METHOD=GET
SCRIPT_NAME="bb-hostsvc.sh"
export QUERY_STRING REQUEST_METHOD SCRIPT_NAME
~hobbit/cgi-bin/bb-hostsvc.sh
Supposedly, this will crash - the last few linies it writes before the crash
are interesting.
Hopefully, it will also dump a core file in your current directory.
Analyse this with gdb:
gdb ~hobbit/server/bin/hobbitsvc.cgi ./core
and at the (gdb) prompt type the "bt" command:
(gdb) bt
and send me the output.
Regards,
Henrik
list Etienne Grignon
Hello Etienne, Could you post your bbwin.cfg file ? Your hostname config looks good but may be something is wrong somewhere else. You should check in the event viewer if there are any error from bbwin. Also, check that there are any firewall issues between your host and your hobbit server (with telnet or bbwincmd). Etienne. 2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:
▸
OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks -----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname.
--
Etienne GRIGNON
list Etienne Marganne
The config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <bbwin> <setting name="bbdisplay" value="10.100.248.33:1984" /> <setting name="hostname" value="lielap28.eu.tiauto.com" /> <setting name="mode" value="central" /> <setting name="configclass" value="win32" /> <setting name="autoreload" value="true" /> <setting name="timer" value="5m" /> <load name="cpu" value="cpu.dll"/> <load name="disk" value="disk.dll"/> <load name="externals" value="externals.dll"/> <load name="memory" value="memory.dll"/> <load name="msgs" value="msgs.dll"/> <load name="procs" value="procs.dll"/> <load name="stats" value="stats.dll"/> <load name="svcs" value="svcs.dll"/> <load name="uptime" value="uptime.dll"/> <setting name="loglevel" value="4" /> <setting name="logpath" value="C:\Program Files\BBWin\logs\BBWin.log"/> <setting name="logreportfailure" value="true" /> </bbwin> <cpu> <setting name="alwaysgreen" value="false" /> <setting name="default" warnlevel="90" paniclevel="95" delay="3" /> </cpu> </configuration> No firewall problems between BBWin running host and Hobbit server. Indeed the BBWin client seams to correctly send the gathered data to the server. There is a log which proves it. But for some reason the server does not handle those data... I just do not understand. Etienne Marganne.
▸
-----Original Message-----
From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid]
Sent: vendredi 9 février 2007 12:46
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] BBWin problems
Hello Etienne,
Could you post your bbwin.cfg file ? Your hostname config looks good
but may be something is wrong somewhere else.
You should check in the event viewer if there are any error from
bbwin. Also, check that there are any firewall issues between your
host and your hobbit server (with telnet or bbwincmd).
Etienne.
2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks -----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname.
-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Etienne Grignon
Ok. I see the problem. Change : <setting name="mode" value="central" /> to <setting name="mode" value="local" /> Then every thing should work. Then, customize the rules of the different agents to trigger alerts. Take a look at the bbwin.cfg example under the doc folder and the bbwin documentation guide. central mode is implemented in BBWin but the hobbit server part which parse the data from bbwin is not ready, so you have to use the local mode which send status instead of clientdata message. Regards, Etienne. 2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:
▸
The config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <bbwin> <setting name="bbdisplay" value="10.100.248.33:1984" /> <setting name="hostname" value="lielap28.eu.tiauto.com" /> <setting name="mode" value="central" /> <setting name="configclass" value="win32" /> <setting name="autoreload" value="true" /> <setting name="timer" value="5m" /> <load name="cpu" value="cpu.dll"/> <load name="disk" value="disk.dll"/> <load name="externals" value="externals.dll"/> <load name="memory" value="memory.dll"/> <load name="msgs" value="msgs.dll"/> <load name="procs" value="procs.dll"/> <load name="stats" value="stats.dll"/> <load name="svcs" value="svcs.dll"/> <load name="uptime" value="uptime.dll"/> <setting name="loglevel" value="4" /> <setting name="logpath" value="C:\Program Files\BBWin\logs\BBWin.log"/> <setting name="logreportfailure" value="true" /> </bbwin> <cpu> <setting name="alwaysgreen" value="false" /> <setting name="default" warnlevel="90" paniclevel="95" delay="3" /> </cpu> </configuration> No firewall problems between BBWin running host and Hobbit server. Indeed the BBWin client seams to correctly send the gathered data to the server. There is a log which proves it. But for some reason the server does not handle those data... I just do not understand. Etienne Marganne. -----Original Message----- From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid] Sent: vendredi 9 février 2007 12:46 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] BBWin problems Hello Etienne, Could you post your bbwin.cfg file ? Your hostname config looks good but may be something is wrong somewhere else. You should check in the event viewer if there are any error from bbwin. Also, check that there are any firewall issues between your host and your hobbit server (with telnet or bbwincmd). Etienne. 2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks -----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname.-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
--
Etienne GRIGNON
list Etienne Marganne
I ran what you asked me to run. It directly generated a core file.
The output of the stuff:
./try: line 6: 6775 Segmentation fault (core dumped)
~hobbit/cgi-bin/bb-hostsvc.sh
("try" is little script file which contains the command you aksed me to
type)
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/home/hobbit/server/bin/hobbitsvc.cgi
--env=/home/hobbit/server/etc/hobbitserve'.
Program terminated with signal 11, Segmentation fault.
#0 0x400906b1 in ?? ()
(gdb) bt
#0 0x400906b1 in ?? ()
#1 0xbfffbf38 in ?? ()
#2 0x4000ce90 in ?? ()
#3 0x00000001 in ?? ()
#4 0x00000003 in ?? ()
#5 0x080639ae in ?? ()
#6 0x00000000 in ?? ()
#7 0xbfffbf38 in ?? ()
#8 0x0804cc80 in ?? ()
#9 0x00000000 in ?? ()
#10 0x080639e8 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
#20 0x00000000 in ?? ()
#21 0x00000001 in ?? ()
#22 0x0000000a in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
I hope we will solve the problem ^_^
Etienne Marganne.
TI Automotive.
-----Original MMessage-----
▸
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: vendredi 9 février 2007 12:41
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Browser asks where to save bb-hostsvc.sh
On Fri, Feb 09, 2007 at 12:33:54PM +0100, Henrik Stoerner wrote:On Fri, Feb 09, 2007 at 12:19:16PM +0100, user-348a872f1948@xymon.invalid wrote:When a download the file there is NOTHING in it; size 0k.Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 . Are there any errors for the request in your apache error-log ?
Sorry, I just read the other mails in this thread that you get a
"Premature end of script headers ..." which is an indication that the
bb-hostsvc.sh CGI crashed.
So - time to debug this. On your Hobbit server, run these commands:
ulimit -c unlimited
QUERY_STRING="HOST=YOURHOSTNAME&SERVICE=info"
REQUEST_METHOD=GET
SCRIPT_NAME="bb-hostsvc.sh"
export QUERY_STRING REQUEST_METHOD SCRIPT_NAME
~hobbit/cgi-bin/bb-hostsvc.sh
Supposedly, this will crash - the last few linies it writes before the crash
are interesting.
Hopefully, it will also dump a core file in your current directory.
Analyse this with gdb:
gdb ~hobbit/server/bin/hobbitsvc.cgi ./core
and at the (gdb) prompt type the "bt" command:
(gdb) bt
and send me the output.
Regards,
Henrik
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Etienne Marganne
Sure? "central" mode is for the Hobbit kind of architecture ... at least this is what I understood. And "local" was for the Big Brother kind of mechanisms, which should also work with Hobbit server but well. I ll try and let you know.
▸
Etienne Marganne.
-----Original Message-----
From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid]
Sent: vendredi 9 février 2007 13:14
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] BBWin problems
Ok.
I see the problem.
Change :
<setting name="mode" value="central" />
to
<setting name="mode" value="local" />
Then every thing should work. Then, customize the rules of the
different agents to trigger alerts. Take a look at the bbwin.cfg
example under the doc folder and the bbwin documentation guide.
central mode is implemented in BBWin but the hobbit server part which
parse the data from bbwin is not ready, so you have to use the local
mode which send status instead of clientdata message.
Regards,
Etienne.
2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:The config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <bbwin> <setting name="bbdisplay" value="10.100.248.33:1984" /> <setting name="hostname" value="lielap28.eu.tiauto.com" /> <setting name="mode" value="central" /> <setting name="configclass" value="win32" /> <setting name="autoreload" value="true" /> <setting name="timer" value="5m" /> <load name="cpu" value="cpu.dll"/> <load name="disk" value="disk.dll"/> <load name="externals" value="externals.dll"/> <load name="memory" value="memory.dll"/> <load name="msgs" value="msgs.dll"/> <load name="procs" value="procs.dll"/> <load name="stats" value="stats.dll"/> <load name="svcs" value="svcs.dll"/> <load name="uptime" value="uptime.dll"/> <setting name="loglevel" value="4" /> <setting name="logpath" value="C:\Program Files\BBWin\logs\BBWin.log"/> <setting name="logreportfailure" value="true" /> </bbwin> <cpu> <setting name="alwaysgreen" value="false" /> <setting name="default" warnlevel="90" paniclevel="95" delay="3" /> </cpu> </configuration> No firewall problems between BBWin running host and Hobbit server. Indeed the BBWin client seams to correctly send the gathered data to the server. There is a log which proves it. But for some reason the server does not handle those data... I just do not understand. Etienne Marganne. -----Original Message----- From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid] Sent: vendredi 9 février 2007 12:46 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] BBWin problems Hello Etienne, Could you post your bbwin.cfg file ? Your hostname config looks good but may be something is wrong somewhere else. You should check in the event viewer if there are any error from bbwin. Also, check that there are any firewall issues between your host and your hobbit server (with telnet or bbwincmd). Etienne. 2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks -----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname.-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Etienne Marganne
Thank you much. It works. Wow, what a mess for such a thing.
▸
Etienne Marganne.
-----Original Message-----
From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid]
Sent: vendredi 9 février 2007 13:14
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] BBWin problems
Ok.
I see the problem.
Change :
<setting name="mode" value="central" />
to
<setting name="mode" value="local" />
Then every thing should work. Then, customize the rules of the
different agents to trigger alerts. Take a look at the bbwin.cfg
example under the doc folder and the bbwin documentation guide.
central mode is implemented in BBWin but the hobbit server part which
parse the data from bbwin is not ready, so you have to use the local
mode which send status instead of clientdata message.
Regards,
Etienne.
2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:The config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <bbwin> <setting name="bbdisplay" value="10.100.248.33:1984" /> <setting name="hostname" value="lielap28.eu.tiauto.com" /> <setting name="mode" value="central" /> <setting name="configclass" value="win32" /> <setting name="autoreload" value="true" /> <setting name="timer" value="5m" /> <load name="cpu" value="cpu.dll"/> <load name="disk" value="disk.dll"/> <load name="externals" value="externals.dll"/> <load name="memory" value="memory.dll"/> <load name="msgs" value="msgs.dll"/> <load name="procs" value="procs.dll"/> <load name="stats" value="stats.dll"/> <load name="svcs" value="svcs.dll"/> <load name="uptime" value="uptime.dll"/> <setting name="loglevel" value="4" /> <setting name="logpath" value="C:\Program Files\BBWin\logs\BBWin.log"/> <setting name="logreportfailure" value="true" /> </bbwin> <cpu> <setting name="alwaysgreen" value="false" /> <setting name="default" warnlevel="90" paniclevel="95" delay="3" /> </cpu> </configuration> No firewall problems between BBWin running host and Hobbit server. Indeed the BBWin client seams to correctly send the gathered data to the server. There is a log which proves it. But for some reason the server does not handle those data... I just do not understand. Etienne Marganne. -----Original Message----- From: Etienne Grignon [mailto:user-87c74c1037a4@xymon.invalid] Sent: vendredi 9 février 2007 12:46 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] BBWin problems Hello Etienne, Could you post your bbwin.cfg file ? Your hostname config looks good but may be something is wrong somewhere else. You should check in the event viewer if there are any error from bbwin. Also, check that there are any firewall issues between your host and your hobbit server (with telnet or bbwincmd). Etienne. 2007/2/9, Marganne, Etienne <user-b63c96159c04@xymon.invalid>:OK Here is my configuration at this point: In the config file: <setting name="hostname" value="lielap28.eu.tiauto.com"> In the registry: lielap28.eu.tiauto.com In bb-hosts: 0.0.0.0 lielap28.eu.tiauto.com # conn lielap28.eu.tiauto.com is the FQDN of the machine where BBWin is installed. And it still does not work Thanks -----Original Message----- From: Jones, Jason (Altrincham) [mailto:user-ee957b46acd2@xymon.invalid] Sent: vendredi 9 février 2007 11:00 To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] BBWin problems I think what he's getting at is the fact that you have .bbwin on the end so are you operating on the .bbwin domain? With bbwin you can specify the hostname by adding: <setting name="hostname" value="FQDN" /> But by default it only uses the computer name. (maybe you can use %hostname%.domain I don't know, I use a cmd file to generate the bbwin.cfg so I don't have to type in each and every hostname.-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-- Etienne GRIGNON The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
list Michael Wiegard
The apache-log really says "[Mon Feb 12 07:47:58 2007] [error] [client 172.30.96.5] Premature end of script headers: bb-hostsvc.sh, referer: http://hobbitzone.materna.de/"; But when I create a script containing the commands you've send I don't get any errors. (Might be of interest: I'm using Solaris 10(/sparc) with hobbit 4.2.0) Any other ideas? Thanks, Michael
▸
-----Ursprüngliche Nachricht-----
Von: Marganne, Etienne [mailto:user-b63c96159c04@xymon.invalid]
Gesendet: Freitag, 9. Februar 2007 13:18
An: user-ae9b8668bcde@xymon.invalid
Betreff: RE: [hobbit] Browser asks where to save bb-hostsvc.sh
I ran what you asked me to run. It directly generated a core file.
The output of the stuff:
./try: line 6: 6775 Segmentation fault (core dumped)
~hobbit/cgi-bin/bb-hostsvc.sh
("try" is little script file which contains the command you aksed me to
type)
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/home/hobbit/server/bin/hobbitsvc.cgi
--env=/home/hobbit/server/etc/hobbitserve'.
Program terminated with signal 11, Segmentation fault.
#0 0x400906b1 in ?? ()
(gdb) bt
#0 0x400906b1 in ?? ()
#1 0xbfffbf38 in ?? ()
#2 0x4000ce90 in ?? ()
#3 0x00000001 in ?? ()
#4 0x00000003 in ?? ()
#5 0x080639ae in ?? ()
#6 0x00000000 in ?? ()
#7 0xbfffbf38 in ?? ()
#8 0x0804cc80 in ?? ()
#9 0x00000000 in ?? ()
#10 0x080639e8 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
#20 0x00000000 in ?? ()
#21 0x00000001 in ?? ()
#22 0x0000000a in ?? ()
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) q
I hope we will solve the problem ^_^
Etienne Marganne.
TI Automotive.
-----Original MMessage-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: vendredi 9 février 2007 12:41
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Browser asks where to save bb-hostsvc.sh
On Fri, Feb 09, 2007 at 12:33:54PM +0100, Henrik Stoerner wrote:On Fri, Feb 09, 2007 at 12:19:16PM +0100, user-348a872f1948@xymon.invalid wrote:When a download the file there is NOTHING in it; size 0k.Does the HOSTNAME resolve in DNS ? Hobbit will attempt to perform a DNS lookup on the hostname when the IP is set to 0.0.0.0 . Are there any errors for the request in your apache error-log ?
Sorry, I just read the other mails in this thread that you get a
"Premature end of script headers ..." which is an indication that the
bb-hostsvc.sh CGI crashed.
So - time to debug this. On your Hobbit server, run these commands:
ulimit -c unlimited
QUERY_STRING="HOST=YOURHOSTNAME&SERVICE=info"
REQUEST_METHOD=GET
SCRIPT_NAME="bb-hostsvc.sh"
export QUERY_STRING REQUEST_METHOD SCRIPT_NAME
~hobbit/cgi-bin/bb-hostsvc.sh
Supposedly, this will crash - the last few linies it writes before the crash
are interesting.
Hopefully, it will also dump a core file in your current directory.
Analyse this with gdb:
gdb ~hobbit/server/bin/hobbitsvc.cgi ./core
and at the (gdb) prompt type the "bt" command:
(gdb) bt
and send me the output.
Regards,
Henrik
The information contained in this transmission may contain privileged and confidential information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.