[hobbit] trying to get netapp filer data into larrd graphs
Ok, after following the instructions, I get this on the BBTEST page: - Program crashed Fatal signal caught! Now all the network tests have gone purple... What did I do wrong? Michael Lowery -----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, February 16, 2005 4:30 PM To: hobbit at hswn.dk Subject: Re: [hobbit] trying to get netapp filer data into larrd graphs On Wed, Feb 16, 2005 at 11:18:28PM +0100, Henrik Stoerner wrote:
Here is what the status message looks like from the ciscocpu script:
@@status#28646|1108591336.263764|10.10.10.22||WAN.jvbs-router.atg.com|cp
u|1108593136|green||green|1108550383|0||0| status WAN,jvbs-router,atg,com.cpu green Wed Feb 16 16:02:16 CST 2005 <br>CPU 5 min average: 4%
Wouldn't be hard to add support for this in the standard hobbitd_larrd handler.
I've added a couple of lines to the "cpu" handler in hobbitd_larrd, and from your message I think it should make it work. I also added the lines that should make the Netapp cpu-reports work. I've attached a small patch for this (also available at http://www.hswn.dk/beta/cpu-reports.patch); apply with GNU patch using "cd hobbit-4.0-RC2; patch -p0 </tmp/cpu-reports.patch" then rebuild with "make" and "make install" and restart Hobbit. If graphs appear after 10-15 minutes, it worked. Let me know if it's OK. Regards, Henrik (off to bed now)
Hi all,
Before I move on to graphing some more complex datasets (Oracle :-), I've been trying my hand at some simple graphs for our UPS.
I'm monitoring the UPS using a modified version of the apcsnmp222.tar.gz script from deadcat (http://www.deadcat.net.au/viewfile.php?fileid=893). I've modified the test names for "more uniqueness", updated some of the status message texts, and converted it back to degress celcius.
I've written my --extra-script (based on the sample in the hobbitd_larrd man page) and added this as well my columns for the --extra-tests in hobbitlaunch.cfg under the larrdstatus command.
My script is getting executed OK. I've added some debug messages which get appended to a log file and most things are running as expected. However, I'm getting no actual data, no rrd files and no graphs :-(
It seems the the $FNAME parameter is not giving me what it shoud, and this is causing my tests to echo the DS line, the rrd file name, but an empty data string. I've added an extra debug line in the script to do a "/usr/bin/cp $FNAME /tmp/$FNAME.$TESTNAME.$$" but there are no files appearing in temp. This is what leads me to believe the file at $FNAME is not there when I grep it.
I'm running 4.0-RC2 on Solaris 9 x86. I started as a clean 4.0-b4 install and have done a "make install" during the b5, b6, RC1, RC2 upgrades. I have also recently run a "make setup" for RC2 due to issues that most people have run accross!
Does this give anyone enough info to help? I can start posting all my config and scripts if required.
TIA, 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 Thu, Feb 17, 2005 at 01:24:55PM +1300, Andy France wrote:
I've written my --extra-script (based on the sample in the hobbitd_larrd man page) and added this as well my columns for the --extra-tests in hobbitlaunch.cfg under the larrdstatus command.
Brave man - you're the first to try out this mechanism for real:-)
My script is getting executed OK. I've added some debug messages which get appended to a log file and most things are running as expected. However, I'm getting no actual data, no rrd files and no graphs :-(
It seems the the $FNAME parameter is not giving me what it shoud, and this is causing my tests to echo the DS line, the rrd file name, but an empty data string.
Some shell's do have slightly different syntax than what the example script in the man-page shows. You could try just echo'ing the input parameters to some file and see what they are. Like
echo "Input 1: $1" > /tmp/params.txt echo "Input 2: $2" >>/tmp/params.txt echo "Input 3: $3" >>/tmp/params.txt
at the top of your script (before they get put into the $FNAME etc).
I'm running 4.0-RC2 on Solaris 9 x86.
Something in the back of my head says: Could you try putting the input params inside curly brackets ? Instead of
HOSTNAME="$1"
TESTNAME="$2"
FNAME="$3"
try HOSTNAME="${1}" TESTNAME="${2}" FNAME="${3}"
Henrik
Henrik Stoerner <henrik at hswn.dk> wrote on 17/02/2005 19:55:57:
On Thu, Feb 17, 2005 at 01:24:55PM +1300, Andy France wrote:
I've written my --extra-script (based on the sample in the hobbitd_larrd man page) and added this as well my columns for the --extra-tests in hobbitlaunch.cfg under the larrdstatus command.
Brave man - you're the first to try out this mechanism for real:-)
Wheeeeeeeee! Bring on the pain! ;-)
My script is getting executed OK. I've added some debug messages which get appended to a log file and most things are running as expected. However, I'm getting no actual data, no rrd files and no graphs :-(
It seems the the $FNAME parameter is not giving me what it shoud, and this is causing my tests to echo the DS line, the rrd file name, but an empty data string.
Quite the opposite it turns out. I added some extra debug lines to cat $3
- lo and behold, there was my expected output in all its glory. My bad.
Once I *fixed my grep* I started getting data and rrd files ( I was grepping for text at the start of the line, but the report included a leading space).
Of course, my original "cp $FNAME /tmp/$FNAME.$TESTNAME.$$" in debug wasn't working because I didn't basename $FNAME first. Duh.
My remaining problem is that after colecting a few data points, I still have no graphs on the test pages or the trends page. I'm off to bed now and will re-check tomorrow morning. But if you know of anything else I may have missed please let me know! Should bb-hostsvc.sh pick it up automagically?
Some shell's do have slightly different syntax than what the example script in the man-page shows. You could try just echo'ing the input parameters to some file and see what they are. Like
echo "Input 1: $1" > /tmp/params.txt echo "Input 2: $2" >>/tmp/params.txt echo "Input 3: $3" >>/tmp/params.txt
at the top of your script (before they get put into the $FNAME etc).
I'm running 4.0-RC2 on Solaris 9 x86.
Something in the back of my head says: Could you try putting the input params inside curly brackets ? Instead of
HOSTNAME="$1" TESTNAME="$2" FNAME="$3"
try HOSTNAME="${1}" TESTNAME="${2}" FNAME="${3}"
Henrik
This wasn't an issue of course - plain old $1, $2 and $3 are fine.
Thanks for the help (and of course the awesome tool).
On to Oracle data... and maybe some c modules to replace my script.
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 Thu, Feb 17, 2005 at 11:11:11PM +1300, Andy France wrote:
[success story]
Congrats - it's nice to know this mechanism works. Doing it in my "lab setup" is often very different than what goes on in real life.
My remaining problem is that after colecting a few data points, I still have no graphs on the test pages or the trends page. I'm off to bed now and will re-check tomorrow morning. But if you know of anything else I may have missed please let me know! Should bb-hostsvc.sh pick it up automagically?
No, there are a couple of tweaks you must do for that to happen.
The LARRDS and GRAPHS settings in etc/hobbitserver.cfg must be told about this new graph.
If the column-name for your custom test is "xyz", then you just add "xyz" to the LARRDS setting - when bb-hostsvc.cgi then builds the status display, it will know to include the graph on the webpage.
If you want the graph also to appear on the "trends" page with all the other graphs, you must also add it to the GRAPHS setting.
In either case, you of course have to setup hobbitgraph.cfg with the RRDtool definitions for this new graph, so it knows how to generate the graph from your data.
Henrik
Henrik Stoerner <henrik at hswn.dk> wrote on 18/02/2005 00:30:45:
On Thu, Feb 17, 2005 at 11:11:11PM +1300, Andy France wrote:
[success story]
Congrats - it's nice to know this mechanism works. Doing it in my "lab setup" is often very different than what goes on in real life.
My remaining problem is that after colecting a few data points, I still have no graphs on the test pages or the trends page. I'm off to bed now and will re-check tomorrow morning. But if you know of anything else I may have missed please let me know! Should bb-hostsvc.sh pick it up automagically?
No, there are a couple of tweaks you must do for that to happen.
The LARRDS and GRAPHS settings in etc/hobbitserver.cfg must be told about this new graph.
If the column-name for your custom test is "xyz", then you just add "xyz" to the LARRDS setting - when bb-hostsvc.cgi then builds the status display, it will know to include the graph on the webpage.
If you want the graph also to appear on the "trends" page with all the other graphs, you must also add it to the GRAPHS setting.
In either case, you of course have to setup hobbitgraph.cfg with the RRDtool definitions for this new graph, so it knows how to generate the graph from your data.
Awesome!
I've updated etc/hobbitserver.cfg for my new columns, tweaked my entries in etc/hobbitgraph.cfg, and now have a funky graph that shows a 10 volt variance on my UPS input over the last 10 hours!
Thanks again, 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. #####################################################################################
Currently I am forwarding (via BBRELAY option) all of my BB status messages to my test Hobbit server. This allows me to fully test hobbit, configure alerts etc, without disrupting my "production" bb server.
Once I make the full switch to hobbit, what is the best way to move as much of the historacle information as possible over to hobbit? I assume I could copy the rrd files over? What about the history logs? I mainly don't want to lose my year of rrd info.
Thanks,
-Charles
In <4214A7C6.9050602 at cisco.com> Charles Jones <jonescr at cisco.com> writes:
Currently I am forwarding (via BBRELAY option) all of my BB status messages to my test Hobbit server. This allows me to fully test hobbit, configure alerts etc, without disrupting my "production" bb server.
Once I make the full switch to hobbit, what is the best way to move as much of the historacle information as possible over to hobbit? I assume I could copy the rrd files over? What about the history logs? I mainly don't want to lose my year of rrd info.
From BB's bbvar/ directory, move the "hist" and "histlogs" directories directly to Hobbit's data/ directory. That way you'll keep all of the historical status logs.
For the RRD files, they must be moved and renamed. There's a "moverrd.sh" script in the "hobbit-4.0*/hobbitd/" directory, which will help you with moving or copying the RRD files from BB to Hobbit. Note that this script requires that your Hobbit bb-hosts file has all of the hosts listed.
You cannot move the netstat RRD files over, since the data layout is different. That goes for the vmstat RRD files from Linux hosts as well. The rest of the RRD files are compatible between BB/LARRD and Hobbit.
Henrik
In <cv29q1$2tu$1 at voodoo.hswn.dk> Henrik Storner <henrik at hswn.dk> writes:
Once I make the full switch to hobbit, what is the best way to move as much of the historacle information as possible over to hobbit?
How to do this is also described in the "Big Brother to Hobbit" guide. There's a link to it in your own Hobbit setup (Help -> Installing Hobbit -> Migration guide"), or you'll find it at http://www.hswn.dk/hobbit/help/bb-to-hobbit.html
Henrik
I have tried to change the default port number, changing the BBPORT in hobbitserver.cfg, but the daemon always started on port 1984. So i have added, in hobbitlaunch.cfg, the hobbitd option --listen, and the daemon start on another port.
One question If i use the general option, BBDISPLAYS, in hobbitserver.cfg, i can have more bbdisplay?
Marco
On Thu, Feb 17, 2005 at 04:55:54PM +0100, Marco Avvisano wrote:
I have tried to change the default port number, changing the BBPORT in hobbitserver.cfg, but the daemon always started on port 1984. So i have added, in hobbitlaunch.cfg, the hobbitd option --listen, and the daemon start on another port.
OK, fixed in hobbitd so it looks up the BBPORT setting instead of defaulting to 1984.
One question If i use the general option, BBDISPLAYS, in hobbitserver.cfg, i can have more bbdisplay?
If you set BBDISPLAYS, then the tools that generate status-messages - i.e. bbtest-net, bbcombotest, bb-infocolumn, bb-larrdcolumn - will send those messages to all of the BB- or Hobbit-servers running on those adresses you put in BBDISPLAYS.
If you do use it, then you must also set BBDISP to "0.0.0.0"
That is the way BB behaves, and Hobbit follows that.
Regards, Henrik
----- Original Message ----- From: "Henrik Stoerner" <henrik at hswn.dk> To: <hobbit at hswn.dk> Sent: Thursday, February 17, 2005 11:03 PM Subject: Re: [hobbit] change default port number
On Thu, Feb 17, 2005 at 04:55:54PM +0100, Marco Avvisano wrote:
I have tried to change the default port number, changing the BBPORT in hobbitserver.cfg, but the daemon always started on port 1984. So i have added, in hobbitlaunch.cfg, the hobbitd option --listen, and the daemon start on another port.
OK, fixed in hobbitd so it looks up the BBPORT setting instead of defaulting to 1984.
After i change the port, no more status client arrived to hobbit server.
One question If i use the general option, BBDISPLAYS, in hobbitserver.cfg, i can have more bbdisplay?
If you set BBDISPLAYS, then the tools that generate status-messages - i.e. bbtest-net, bbcombotest, bb-infocolumn, bb-larrdcolumn - will send those messages to all of the BB- or Hobbit-servers running on those adresses you put in BBDISPLAYS.
If you do use it, then you must also set BBDISP to "0.0.0.0"
That is the way BB behaves, and Hobbit follows that.
It's possible to also specify the port of the other servers?
thank for helps
congratulations for your work!!!
Marco
where i could define alternate pageset in hobbit?
thanks for help
Marco
----- Original Message ----- From: "Henrik Stoerner" <henrik at hswn.dk> To: <hobbit at hswn.dk> Sent: Friday, February 18, 2005 6:06 PM Subject: Re: [hobbit] alternate pageset
On Fri, Feb 18, 2005 at 05:26:04PM +0100, Marco Avvisano wrote:
where i could define alternate pageset in hobbit?
These work just as in bbgen. See the "bbgen" and "bb-hosts" man-pages.
I must use a file bb-display.sh in server/bin as in bbgen ?
Marco
On Fri, Feb 18, 2005 at 06:58:21PM +0100, Marco Avvisano wrote:
On Fri, Feb 18, 2005 at 05:26:04PM +0100, Marco Avvisano wrote:
where i could define alternate pageset in hobbit?
These work just as in bbgen. See the "bbgen" and "bb-hosts" man-pages.
I must use a file bb-display.sh in server/bin as in bbgen ?
Yes, I think that's the easiest way to setup those environment variables (BBWEB) that must be changed for each pageset.
Regards, Henrik
Someone know if is possible, using cont test, to check the content of the header?
In bb i use curl -i to get the http header.
It's possible also to add others http code status ?
there is the way to add an option, to not show the url and the output of the cont test ( i use it to check intranet applications, or admin test applications)
thanks for help
Marco
On Mon, Feb 21, 2005 at 11:48:38AM +0100, Marco Avvisano wrote:
Someone know if is possible, using cont test, to check the content of the header?
You can check the content-type header with the "type" check, see the bb-hosts man-page. But there's not a general mechanism to look at any random header-value.
It's possible also to add others http code status ?
No.
there is the way to add an option, to not show the url and the output of the cont test ( i use it to check intranet applications, or admin test applications)
No. My best advice is to put them on a separate page in BB and control access to that page via .htaccess files or such.
Henrik
In my bb installation i have renamed the conn test as 'link'.
I would like to change it also in my hobbit installation so i have change:
in hobbitlaunch.cfg
CMD bbtest-net --report --checkresponse --ping=link
in hobbitserver.cfg
link=tcp
Now the column link is generated but no larrd graph.
any ideas ?
thanks
Marco
On Mon, Feb 21, 2005 at 12:03:05PM +0100, Marco Avvisano wrote:
In my bb installation i have renamed the conn test as 'link'.
I would like to change it also in my hobbit installation [snip changes] Now the column link is generated but no larrd graph.
The "conn" columnname really wasn't configurable - hobbitd_larrd would always assume it was either "conn", "fping" or "ping".
So I took this as an opportunity to clean it up a bit. The ping column name is now defined solely via a PINGCOLUMN environment variable.
Also, I decided that having to mess with the LARRDS setting just for network tests was silly. So instead, all of the RRD- and graph-code will automatically pick up simple network tests from the bb-services file.
Henrik
On Mon, Feb 21, 2005 at 12:03:05PM +0100, Marco Avvisano wrote:
In my bb installation i have renamed the conn test as 'link'.
I would like to change it also in my hobbit installation [snip changes] Now the column link is generated but no larrd graph.
The "conn" columnname really wasn't configurable - hobbitd_larrd would always assume it was either "conn", "fping" or "ping".
So I took this as an opportunity to clean it up a bit. The ping column name is now defined solely via a PINGCOLUMN environment variable.
where i could set this variable? is not more used the bb-net option --ping=conn-name
Also, I decided that having to mess with the LARRDS setting just for network tests was silly. So instead, all of the RRD- and graph-code will automatically pick up simple network tests from the bb-services file.
how to add a custom larrd graphs?
thanks a lot for your help
Marco
On Tue, Feb 22, 2005 at 04:41:02PM +0100, Marco Avvisano wrote:
On Mon, Feb 21, 2005 at 12:03:05PM +0100, Marco Avvisano wrote:
In my bb installation i have renamed the conn test as 'link'.
I would like to change it also in my hobbit installation [snip changes] Now the column link is generated but no larrd graph.
The "conn" columnname really wasn't configurable - hobbitd_larrd would always assume it was either "conn", "fping" or "ping".
So I took this as an opportunity to clean it up a bit. The ping column name is now defined solely via a PINGCOLUMN environment variable.
where i could set this variable? is not more used the bb-net option --ping=conn-name
In hobbitserver.cfg, but it will not work with the software you have. You'll need 4.0-RC3 which I haven't released yet.
how to add a custom larrd graphs?
See the man-pages for hobbitgraph.cgi and hobbitgraph.cfg
Henrik
----- Original Message ----- From: "Henrik Stoerner" <henrik at hswn.dk> To: <hobbit at hswn.dk> Sent: Sunday, February 20, 2005 11:08 PM Subject: Re: [hobbit] alternate pageset
On Fri, Feb 18, 2005 at 06:58:21PM +0100, Marco Avvisano wrote:
On Fri, Feb 18, 2005 at 05:26:04PM +0100, Marco Avvisano wrote:
where i could define alternate pageset in hobbit?
These work just as in bbgen. See the "bbgen" and "bb-hosts" man-pages.
I must use a file bb-display.sh in server/bin as in bbgen ?
Yes, I think that's the easiest way to setup those environment variables (BBWEB) that must be changed for each pageset.
I try to create a bb-display.sh in server/bin as in bbgen :
BBWEB="/nal"
$BBHOME/bin/bbgen --info --includecolumns=info --report --larrd043 --larrdgr
aphs=* --pagetitle-links --pagetext-headings --docurl=/admin/notes.php?host=
%s
--pageset=nal
$BBHOME/www/nal/
but it not work.
Marco
On my bb-larrd installation i have implentated on vmstat-larrd 3 different profile for redhat.
It's possible to include it for default ?
Marco
redhat => { cpu_r => 0, cpu_b => 1, cpu_w => 2, mem_swpd => 3, mem_free => 4, mem_buff => 5, mem_cach => 6, mem_si => 7, mem_so => 8, dsk_bi => 9, dsk_bo => 10, cpu_int => 11, cpu_csw => 12, cpu_usr => 13, cpu_sys => 14, cpu_idl => 15, }, RedhatAS => { cpu_r => 0, cpu_b => 1, mem_swpd => 2, mem_free => 3, mem_buff => 4, mem_cach => 5, mem_si => 6, mem_so => 7, dsk_bi => 8, dsk_bo => 9, cpu_int => 10, cpu_csw => 11, cpu_usr => 12, cpu_sys => 13, cpu_idl => 14, cpu_wa => 15, }, RedhatES => { cpu_r => 0, cpu_b => 1, mem_swpd => 2, mem_free => 3, mem_buff => 4, mem_cach => 5, mem_si => 6, mem_so => 7, dsk_bi => 8, dsk_bo => 9, cpu_int => 10, cpu_csw => 11, cpu_usr => 12, cpu_sys => 13, cpu_wa => 14, cpu_idl => 15, },
On Tue, Feb 22, 2005 at 04:32:56PM +0100, Marco Avvisano wrote:
I try to create a bb-display.sh in server/bin as in bbgen :
BBWEB="/nal" $BBHOME/bin/bbgen
--info --includecolumns=info
--report --larrd043 --larrdgraphs=*
--pagetitle-links --pagetext-headings
--docurl=/admin/notes.php?host=%s
--pageset=nal $BBHOME/www/nal/
Two things:
You must use the "--hobbitd" option when running bbgen on top of Hobbit. if you don't it will try to read the BB status logfiles instead of the Hobbit network status.
The "--larrdgraphs=*" option probably needs to be in quotes.
Regards, Henrik
On Tue, Feb 22, 2005 at 04:32:56PM +0100, Marco Avvisano wrote:
I try to create a bb-display.sh in server/bin as in bbgen :
BBWEB="/nal" $BBHOME/bin/bbgen
--info --includecolumns=info
--report --larrd043 --larrdgraphs=*
--pagetitle-links --pagetext-headings
--docurl=/admin/notes.php?host=%s
--pageset=nal $BBHOME/www/nal/Two things:
You must use the "--hobbitd" option when running bbgen on top of Hobbit. if you don't it will try to read the BB status logfiles instead of the Hobbit network status.
The "--larrdgraphs=*" option probably needs to be in quotes.
Nothing yet are created in the directory www/nal
My hobbitlaunch.cfg: CMD bbgen --hobbitd --recentgifs --subpagecolumns=2 --larrd043 --report
my bin/bb-display.sh
BBHOME="/usr/local/hobbit/server"
BBWEB="/nal" $BBHOME/bin/bbgen
--pageset=nal
$BBHOME/www/nal/
exit 0
thanks
Marco
One question If i use the general option, BBDISPLAYS, in hobbitserver.cfg, i can
have
more bbdisplay?
If you set BBDISPLAYS, then the tools that generate status-messages - i.e. bbtest-net, bbcombotest, bb-infocolumn, bb-larrdcolumn - will send those messages to all of the BB- or Hobbit-servers running on those adresses you put in BBDISPLAYS.
If you do use it, then you must also set BBDISP to "0.0.0.0"
It s possible to specify also the port number for the servers in BBDISPLAYS? thanks
Marco
On Wed, Feb 23, 2005 at 02:58:01PM +0100, Marco Avvisano wrote:
If you set BBDISPLAYS, then the tools that generate status-messages - i.e. bbtest-net, bbcombotest, bb-infocolumn, bb-larrdcolumn - will send those messages to all of the BB- or Hobbit-servers running on those adresses you put in BBDISPLAYS.
If you do use it, then you must also set BBDISP to "0.0.0.0"
It s possible to specify also the port number for the servers in BBDISPLAYS?
No.
Henrik
----- Original Message ----- From: "Henrik Stoerner" <henrik at hswn.dk> To: <hobbit at hswn.dk> Sent: Wednesday, February 23, 2005 11:52 PM Subject: Re: [hobbit] change default port number
On Wed, Feb 23, 2005 at 02:58:01PM +0100, Marco Avvisano wrote:
If you set BBDISPLAYS, then the tools that generate status-messages - i.e. bbtest-net, bbcombotest, bb-infocolumn, bb-larrdcolumn - will send those messages to all of the BB- or Hobbit-servers running on those adresses you put in BBDISPLAYS.
If you do use it, then you must also set BBDISP to "0.0.0.0"
It s possible to specify also the port number for the servers in BBDISPLAYS?
No. You think to add this in the future release?
I'm tryng to configure two hobbit server on the same machine, on different ports. I would like that one send to the other (port 1984) the test results, so i have used the BBDISPLAY option but nothing is arrived on the other server. I try to enable the satus channel on the reiciver server but nothing... What i miss?
thanks for helps
Marco
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results. I try to use the BBDISPLAY option but nothing is arrived on the other server. Seems that the sender server post the status message not to the default port. Any ideas? On the reicer server i must enable status channel?
thanks for helps
Marco
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.
hobbitd was never designed to do this. It receives messages, it doesn't send them.
If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).
I try to use the BBDISPLAY option
which is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them.
Henrik
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.
hobbitd was never designed to do this. It receives messages, it doesn't send them.
If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).
I try to use bbproxy, but it send only the message status coming from the client
I try to use the BBDISPLAY option
which is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them.
I think BBRELAY may be important, specially when you are migrating to a new server.
sorry, i use BBDISPLAYS in the hobbitserver.cfg, but the problem is that is not possible to specify the port, seems that it use the same port number.
So you think is possible to make a configuration, using only one hobbit server, to have two http servers (private and pubblic)? I try to use alternate pageset to make this, but i have two problems:
- in hobbit seems not support more the nodisp option in bb-hosts as bbgen
- the bb2 page, report and others cgi, show all the entries of my bb-hosts. You think it's possible to make a custom header, where the cgi read a specific bb-hosts file ?
thanks for your help and your work
Marco
On Fri, Feb 25, 2005 at 05:01:06PM +0100, Marco Avvisano wrote:
I would like to have two hobbit server on the same machine, running on different ports. One of these must send to the other (port 1984) the test results.
hobbitd was never designed to do this. It receives messages, it doesn't send them.
If you want to forward incoming messages to one or more hobbit servers, use the bbproxy (also part of the Hobbit package).
I try to use bbproxy, but it send only the message status coming from the client
I try to use the BBDISPLAY option
which is 100% ignored by hobbit. BBDISPLAY, BBPAGER, BBNET and BBRELAY are for BB - hobbit ignores them.
I think BBRELAY may be important, specially when you are migrating to a new server.
sorry, i use BBDISPLAYS in the hobbitserver.cfg, but the problem is that is not possible to specify the port, seems that it use the same port number.
So you think is possible to make a configuration, using only one hobbit server, to have two http servers (private and pubblic)? I try to use alternate pageset to make this, but i have two problems:
- in hobbit seems not support more the nodisp option in bb-hosts as bbgen
- the bb2 page, report and others cgi, show all the entries of my bb-hosts. You think it's possible to make a custom header, where the cgi read a specific bb-hosts file ?
I try to install two hobbit servers that shared the data directory. What do you think about? Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk?
thanks for help
Marco
In <005401c51f00$63da0220$2b01d59f at pcma13319new> "Marco Avvisano" <m.avvisano at mail.regione.toscana.it> writes:
I try to install two hobbit servers that shared the data directory. What do you think about?
You cannot run to hobbit servers off the same data directory. There is no file locking in hobbit, so you would easily end up with garbage files.
Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk?
Sorry Marco, but I simply cannot figure out what it is you are trying to accomplish with this setup. I have a strong feeling that you are doing something very simple in an extremely complicated way.
I *think* you want to setup a server with two sets of hosts - one set is for use by one group, and another set is used by a different group.
If you want these two completely separate, setup two full Hobbit installations - two userid's, two server-directories, two data-directories, everything completely separate. When you build the two installations, build them with different BBPORT settings so you can have both hobbitd's running at the same time - or better: If you have extra IP addresses available, let each of them have their own IP address so you don't need to worry about changing port numbers. If everything runs on the same server, you can use 127.0.0.1 and 127.0.0.2 !
Each installation runs his own network tests, so they will also be separate.
The only problem I see is if you want data from client installations. That's where you use bbproxy. Set it up to receive client messages, and forward them to both of the two hobbit daemons.
Regards, Henrik
----- Original Message ----- From: "Henrik Storner" <henrik at hswn.dk> Newsgroups: lists.hobbit To: <hobbit at hswn.dk> Sent: Wednesday, March 02, 2005 10:38 PM Subject: Re: [hobbit] two hobbit servers on the same machine
In <005401c51f00$63da0220$2b01d59f at pcma13319new> "Marco Avvisano" <m.avvisano at mail.regione.toscana.it> writes:
I try to install two hobbit servers that shared the data directory. What do you think about?
You cannot run to hobbit servers off the same data directory. There is no file locking in hobbit, so you would easily end up with garbage files.
Do you think it's possible to force the restore status, for one server, every xx seconds from the file hobbitd.chk?
Sorry Marco, but I simply cannot figure out what it is you are trying to accomplish with this setup. I have a strong feeling that you are doing something very simple in an extremely complicated way.
I *think* you want to setup a server with two sets of hosts - one set is for use by one group, and another set is used by a different group.
No, server1 (public) should make goup1 tests and publish it, while the server2 (private) make group2 tests but must publish the results of the group1 and group2 tests.
So i would like to make all using one server. Because i don't want to show the group2 tests on the public servers, it's impossible for me to use the pageset option.
Probabilly the best solution is to use a bb-net (using bbgen) that make the group1 test and send results to two hobbit servers on the same machine using different Ip, across a bbproxy
The bbproxy send to the servers also the clients status . The status message of the hosts not included in bb-hosts files are dropped.
Marco
participants (6)
-
Andy@zespri.com
-
henrik@hswn.dk
-
jonescr@cisco.com
-
m.avvisano@mail.regione.toscana.it
-
marco.avvisano@regione.toscana.it
-
mlowery@alliedtechgroup.com