Problems starting snapshot install...
Hello -
I downloaded the latest snapshot tonight and was able to compile and install it. I am running into a problem starting it however. When I execute the hobbit.sh start (or restart) it appears to execute correctly however nothing appears on the website. In looking through the logs I found the following:
2005-08-10 07:06:17 Loading hostnames 2005-08-10 07:06:17 Loading saved state 2005-08-10 07:06:17 Setting up network listener on 0.0.0.0:1984 2005-08-10 07:06:17 Setting up signal handlers 2005-08-10 07:06:17 Setting up hobbitd channels 2005-08-10 07:06:17 Could not attach shm Too many open files 2005-08-10 07:06:17 Cannot setup client channel 2005-08-10 07:06:17 Task hobbitd terminated, status 1
Any ideas?
-- --==[ Bob Gordon ]==--
On Wed, Aug 10, 2005 at 12:20:13AM -0700, Bob Gordon wrote:
Hello -
I downloaded the latest snapshot tonight and was able to compile and install it. I am running into a problem starting it however. When I execute the hobbit.sh start (or restart) it appears to execute correctly however nothing appears on the website. In looking through the logs I found the following:
2005-08-10 07:06:17 Loading hostnames 2005-08-10 07:06:17 Loading saved state 2005-08-10 07:06:17 Setting up network listener on 0.0.0.0:1984 2005-08-10 07:06:17 Setting up signal handlers 2005-08-10 07:06:17 Setting up hobbitd channels 2005-08-10 07:06:17 Could not attach shm Too many open files 2005-08-10 07:06:17 Cannot setup client channel
I was afraid something like that might happen - the latest snapshots increase the max. size of messages that Hobbit can handle to acommodate some of the larger messages that clients may send.
You need to tweak a kernel tuning parameter for your Mac OS X / Darwin kernel. From a bit of googling it seems this is done very much like the way you'd do it on FreeBSD - i.e. using the "sysctl" tool.
Could you try running (as "root" or whatever that's called on Darwin):
for P in shmall shmmni shmmax; do sysctl kern.ipc.$P; done
and also the "ipcs -m" command to list the current shared memory segments.
Regards, Henrik
On Wed, Aug 10, 2005 at 09:34:42AM +0200, Henrik Stoerner wrote:
Could you try running (as "root" or whatever that's called on Darwin):
for P in shmall shmmni shmmax; do sysctl kern.ipc.$P; done
That apparently doesn't work on FreeBSD's ksh .. if it fails, use this instead:
sysctl kern.ipc.shmmni sysctl kern.ipc.shmall sysctl kern.ipc.shmmax
Henrik
I have used BB for 5 years now, but am building a new hoBBit server currently. I am just trying to get the pre-reqs in place and am having problems with RRDtool because of a dependency it has on Freetype 2. I have posted a question to the freetype mailing list but maybe someone knows here as well. I am running Solaris 8 and trying to compile freetype 2.1.9. I am getting this error doing the configure:
checking for egrep... configure: error: no acceptable egrep could be found in $PATH make: *** [builds/unix/unix-def.mk] Error 1
There are are two egrep commands in $PATH, I am not sure why it is complaining unless by default neither of them do what it wants. I don't know of a newer or better egrep though to get.
Anyone got any ideas?
Thanks Wes
Wes Neal wrote:
I have used BB for 5 years now, but am building a new hoBBit server currently. I am just trying to get the pre-reqs in place and am having problems with RRDtool because of a dependency it has on Freetype 2. I have posted a question to the freetype mailing list but maybe someone knows here as well. I am running Solaris 8 and trying to compile freetype 2.1.9. I am getting this error doing the configure:
checking for egrep... configure: error: no acceptable egrep could be found in $PATH make: *** [builds/unix/unix-def.mk] Error 1
There are are two egrep commands in $PATH, I am not sure why it is complaining unless by default neither of them do what it wants. I don't know of a newer or better egrep though to get.
Anyone got any ideas?
Thanks Wes
Have you thought about just getting the pecompiled packages? It may be easier. I only compile when I have to.
http://sunfreeware.com/indexsparc8.html
freetype is available.
Regardless, perhaps your configure cannot find 'egrep' because it's not in your PATH?
~David
On Wed, Aug 10, 2005 at 07:32:34AM -0400, Wes Neal wrote:
I have used BB for 5 years now, but am building a new hoBBit server currently. I am just trying to get the pre-reqs in place and am having problems with RRDtool because of a dependency it has on Freetype 2. I have posted a question to the freetype mailing list but maybe someone knows here as well. I am running Solaris 8 and trying to compile freetype 2.1.9. I am getting this error doing the configure:
checking for egrep... configure: error: no acceptable egrep could be found in $PATH make: *** [builds/unix/unix-def.mk] Error 1
There are are two egrep commands in $PATH, I am not sure why it is complaining unless by default neither of them do what it wants. I don't know of a newer or better egrep though to get.
Anyone got any ideas?
I must admit I took the easy way out and just installed a load of packages from the sunfreeware.com site a couple of months ago when I had to setup a Hobbit server on Solaris 8.
Here's the list of packages I used (not all of them needed for Hobbit, but I sure do prefer bash to ksh...):
autoconf-2.59 automake-1.9 bash-3.0 binutils-2.11.2 bison-1.875d coreutils-4.5.4 cpio-2.4.2 curl-7.12.2 daemontools-0.70 diffutils-2.8.1 djbdns-1.03 expat-1.95.5 findutils-4.1.20 flex-2.5.31 fontconfig-2.2.98 fping-2.4b2 freetype-2.1.9 gawk-3.1.4 gcc-3.3.2 gd-2.0.33 gdb-6.0 gettext-0.14.1 giflib-4.1.0 glib-1.2.10 grep-2.5 groff-1.19.1 gtk+-1.2.10 gzip-1.3.5 imlib-1.9.14 jpeg-6b less-381 libiconv-1.8 libpng-1.2.8 libungif-4.1.0 logrotate-3.6.9 lsof-4.74 make-3.80 mtr-0.42 mutt-1.4.2.1 ncftp-3.0.1 ncurses-5.4 netsnmp-5.1.1 ntp-4.2.0 openldap-1.2.11 openssh-4.1p1 openssl-0.9.7g patch-2.5.4 pcre-4.5 popt-1.7 pstree-2.17 rcs-5.7 readline-5.0 rrdtool-1.0.49 rsync-2.6.5 sed-4.1.1 sudo-1.6.8p4 tar-1.15.1 tiff-3.7.1 top-3.5.1 ucspitcp-0.88 vim-6.3 wget-1.9.1 xpm-3.4k zlib-1.2.2
Regards, Henrik
Ok I have everything installed and my bb-hosts file migrated over. Everything seems to be working except for one thing. I can not get any of the scripts in cgi-bin to run.
Hobbitserver.cfg says
BBSERVERCGIURL="/hobbit-cgi"
BBSERVERSECURECGIURL="/hobbit-cgi"
The cgi directory is /export/home/bb/cgi-bin and this was added to my httpd.conf file:
ScriptAlias /hobbit-cgi/ "/export/home/bb/cgi-bin/" <Directory "/export/home/bb/cgi-bin"> AllowOverride None Options ExecCGI Includes Order allow,deny Allow from all </Directory>
If I try to just browse to that directory I get permission denied and any scripts I try and call I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
The web page comes up fine with the alias I used for it. Any ideas what would be causing the CGI stuff to not work?
Oh yeah Solaris 2.8 and Apache 2.0.54
Thanks Wes
Ok I worked the other issue out, it seems user nobody was not picking up the libraries for libpcre and a couple of other things. Now I can get the cgi stuff to work, but when I click on specific things for a host I get status not available on a white page for all of them. I did a search for this error and didn't find anything.
Wes
On Wed, Aug 10, 2005 at 01:22:26PM -0400, Wes Neal wrote:
Ok I worked the other issue out, it seems user nobody was not picking up the libraries for libpcre and a couple of other things. Now I can get the cgi stuff to work, but when I click on specific things for a host I get status not available on a white page for all of them. I did a search for this error and didn't find anything.
What's in your webserver error-logs ? While you're at it, see if there are any ominous-sounding messages in the Hobbit logfiles in /var/log/hobbit/ .
What happens if you run
QUERY_STRING="HOSTSVC=some,server,name.conn" REQUEST_URI="" ~hobbit/cgi-bin/bb-hostsvc.sh
Regards, Henrik
I am running this command which I am sure I am doing wrong somehow:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URL="" /export/home/bb/cgi-bin/bb-hostsvc.sh
I get a coredump, if that SHOULD be URI like you had I thought it was a typo I get this:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URI="" /export/home/bb/cgi-bin/bb-hostsvc.sh
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>Status not available </body></html>
There is now a cigerror.log file and it contains these lines which only occurred from my testing it didn't exist before:
2005-08-10 16:03:49 hobbitsvc xgetenv: Cannot find value for variable REQUEST_URI 2005-08-10 16:08:05 hobbitsvc xgetenv: Cannot find value for variable QUERY_STRING 2005-08-10 16:08:15 hobbitsvc xgetenv: Cannot find value for variable REQUEST_URI 2005-08-10 16:08:21 hobbitsvc xgetenv: Cannot find value for variable REQUEST_URI 2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
The other log files have nothing new in them for the last 6 hours.
error_log for apache just has the following in it:
[Wed Aug 10 12:19:27 2005] [error] [client 131.146.38.100] File does not exist: /usr/local/apache2/htdocs/favicon.ico [Wed Aug 10 12:26:31 2005] [error] [client 131.146.38.100] File does not exist: /usr/local/apache2/htdocs/favicon.ico [Wed Aug 10 15:10:10 2005] [error] [client 131.146.38.100] File does not exist: /usr/local/apache2/htdocs/favicon.ico
Hopefully this will shed some light on it. The only thing I see is that connection failed to bbd.
Thanks much Wes
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, August 10, 2005 4:01 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Status not available?
On Wed, Aug 10, 2005 at 01:22:26PM -0400, Wes Neal wrote:
Ok I worked the other issue out, it seems user nobody was not picking up the libraries for libpcre and a couple of other things. Now I can get the cgi stuff to work, but when I click on specific things for a host I get status not available on a white page for all of them. I did a search for this error and didn't find anything.
What's in your webserver error-logs ? While you're at it, see if there are any ominous-sounding messages in the Hobbit logfiles in /var/log/hobbit/ .
What happens if you run
QUERY_STRING="HOSTSVC=some,server,name.conn" REQUEST_URI="" ~hobbit/cgi-bin/bb-hostsvc.sh
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Aug 10, 2005 at 05:13:36PM -0400, Wes Neal wrote:
I am running this command which I am sure I am doing wrong somehow:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URL="" /export/home/bb/cgi-bin/bb-hostsvc.sh
I get a coredump, if that SHOULD be URI like you had I thought it was a typo
It's not a typo :-)
I get this:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URI=""
The last part of the HOSTSVC value is the column-name. Do you have a "comm" column ? Or should it be "conn" - with an 'n' ? I think so.
There is now a cigerror.log file and it contains these lines which only occurred from my testing it didn't exist before:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
It looks like the CGI script fails to pick up the Hobbit environment setting that defines the IP of the Hobbit server. This is taken from the BBDISP setting in the hobbitserver.cfg.
Try making the cgierror.log file writable by your webserver user-id, that should make any errors from the real requests show up in that file.
Regards, Henrik
Yes it should have been conn, but it generates the same error either way. Not that my webserver uid can write to the error log when I click a button on the webpage I get this as before:
2005-08-10 17:03:01 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 17:03:01 hobbitsvc Whoops ! bb failed to send message - Connection failed
So that seems to be the given error, but I have no idea the cause.
Thanks Wes
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, August 10, 2005 5:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Status not available?
On Wed, Aug 10, 2005 at 05:13:36PM -0400, Wes Neal wrote:
I am running this command which I am sure I am doing wrong somehow:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URL="" /export/home/bb/cgi-bin/bb-hostsvc.sh
I get a coredump, if that SHOULD be URI like you had I thought it was a typo
It's not a typo :-)
I get this:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URI=""
The last part of the HOSTSVC value is the column-name. Do you have a "comm" column ? Or should it be "conn" - with an 'n' ? I think so.
There is now a cigerror.log file and it contains these lines which only occurred from my testing it didn't exist before:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
It looks like the CGI script fails to pick up the Hobbit environment setting that defines the IP of the Hobbit server. This is taken from the BBDISP setting in the hobbitserver.cfg.
Try making the cgierror.log file writable by your webserver user-id, that should make any errors from the real requests show up in that file.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Henrik you said the following error:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
Is caused by the CGI script failing to pickup the environment variable from hobbitserver.cfg. My cfg file has:
BBSERVERIP="IP.OCTETS.here" and BBDISP="$BBSERVERIP"
So why would it not be picking it up?
Thanks Wes
-----Original Message----- From: Wes Neal [mailto:wes.neal at mci.com] Sent: Wednesday, August 10, 2005 6:05 PM To: hobbit at hswn.dk Subject: RE: [hobbit] Status not available?
Yes it should have been conn, but it generates the same error either way. Not that my webserver uid can write to the error log when I click a button on the webpage I get this as before:
2005-08-10 17:03:01 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 17:03:01 hobbitsvc Whoops ! bb failed to send message - Connection failed
So that seems to be the given error, but I have no idea the cause.
Thanks Wes
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, August 10, 2005 5:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Status not available?
On Wed, Aug 10, 2005 at 05:13:36PM -0400, Wes Neal wrote:
I am running this command which I am sure I am doing wrong somehow:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URL="" /export/home/bb/cgi-bin/bb-hostsvc.sh
I get a coredump, if that SHOULD be URI like you had I thought it was a typo
It's not a typo :-)
I get this:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URI=""
The last part of the HOSTSVC value is the column-name. Do you have a "comm" column ? Or should it be "conn" - with an 'n' ? I think so.
There is now a cigerror.log file and it contains these lines which only occurred from my testing it didn't exist before:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
It looks like the CGI script fails to pick up the Hobbit environment setting that defines the IP of the Hobbit server. This is taken from the BBDISP setting in the hobbitserver.cfg.
Try making the cgierror.log file writable by your webserver user-id, that should make any errors from the real requests show up in that file.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Well it cleared up on a server reboot somehow. Maybe I had the ENV wrong at some point when I started hobbit.
Henrik I found emails in the mail archive about there being no hardware groups anymore. Your code so you do it like you want. :) You mentioned a script that would convert your bbwarnsetup.cfg file, but I do not see that in archive you can resend it or repost it or is there are repository for this kind of stuff like deadcat?
Thanks Wes
-----Original Message----- From: Wes Neal [mailto:wes.neal at mci.com] Sent: Thursday, August 11, 2005 8:56 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Status not available?
Henrik you said the following error:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
Is caused by the CGI script failing to pickup the environment variable from hobbitserver.cfg. My cfg file has:
BBSERVERIP="IP.OCTETS.here" and BBDISP="$BBSERVERIP"
So why would it not be picking it up?
Thanks Wes
-----Original Message----- From: Wes Neal [mailto:wes.neal at mci.com] Sent: Wednesday, August 10, 2005 6:05 PM To: hobbit at hswn.dk Subject: RE: [hobbit] Status not available?
Yes it should have been conn, but it generates the same error either way. Not that my webserver uid can write to the error log when I click a button on the webpage I get this as before:
2005-08-10 17:03:01 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 17:03:01 hobbitsvc Whoops ! bb failed to send message - Connection failed
So that seems to be the given error, but I have no idea the cause.
Thanks Wes
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Wednesday, August 10, 2005 5:56 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Status not available?
On Wed, Aug 10, 2005 at 05:13:36PM -0400, Wes Neal wrote:
I am running this command which I am sure I am doing wrong somehow:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URL="" /export/home/bb/cgi-bin/bb-hostsvc.sh
I get a coredump, if that SHOULD be URI like you had I thought it was a typo
It's not a typo :-)
I get this:
QUERY_STRING="HOSTSVC=dabwtx01,mcilink,com.comm" REQUEST_URI=""
The last part of the HOSTSVC value is the column-name. Do you have a "comm" column ? Or should it be "conn" - with an 'n' ? I think so.
There is now a cigerror.log file and it contains these lines which only occurred from my testing it didn't exist before:
2005-08-10 16:09:05 hobbitsvc connect to bbd failed - Connection refused 2005-08-10 16:09:05 hobbitsvc Whoops ! bb failed to send message - Connection failed
It looks like the CGI script fails to pick up the Hobbit environment setting that defines the IP of the Hobbit server. This is taken from the BBDISP setting in the hobbitserver.cfg.
Try making the cgierror.log file writable by your webserver user-id, that should make any errors from the real requests show up in that file.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, Aug 11, 2005 at 09:33:20AM -0400, Wes Neal wrote:
Well it cleared up on a server reboot somehow. Maybe I had the ENV wrong at some point when I started hobbit.
Possibly. Still weird though.
Henrik I found emails in the mail archive about there being no hardware groups anymore. Your code so you do it like you want. :) You mentioned a script that would convert your bbwarnsetup.cfg file, but I do not see that in archive you can resend it or repost it or is there are repository for this kind of stuff like deadcat?
"hardware groups" ? Perhaps you mean "host groups" - the "hg-something" in BB's bbwarnsetup.cfg ?
I dug around my mail-archive and found it - attached. This is actually a more advanced version than the one I mentioned in the archived mail, but I dont think I ever really did test it, so beware ... in the end it just turned out to be easier to rewrite a new hobbit-alerts config from scratch.
Henrik
What if you want to just send one alert after waiting 10 minutes and no more? Can you have two durations on one rule? Such as DURATION > 10 DURATION < 15. When I tried that it did not seem to work.
Also, this is working correctly but I am trying to find the setting for this. I get an alert on a purple and red, and by alert I mean an email I have setup in the alerts file. I do NOT get one on a yellow, though the webpage is updated for the yellow alarm. Where is this setting. I thought to find it in hobbitserver.cfg but all I see there are PAGELEVELS and all 3 colors are listed in it.
Thanks again Wes
On Thu, Aug 11, 2005 at 11:56:59AM -0400, Wes Neal wrote:
What if you want to just send one alert after waiting 10 minutes and no more? Can you have two durations on one rule? Such as DURATION > 10 DURATION < 15. When I tried that it did not seem to work.
Leave out the spaces - it should work.
Also, this is working correctly but I am trying to find the setting for this. I get an alert on a purple and red, and by alert I mean an email I have setup in the alerts file. I do NOT get one on a yellow, though the webpage is updated for the yellow alarm. Where is this setting. I thought to find it in hobbitserver.cfg but all I see there are PAGELEVELS and all 3 colors are listed in it.
It is the PAGELEVELS setting that defines which colors can trigger an alert, combined with the rules in hobbit-alerts.cfg.
I'll try it out and see if something's broken.
Henrik
participants (4)
-
David.Gore@mci.com
-
henrik@hswn.dk
-
rgordonjr@gmail.com
-
wes.neal@mci.com