[hobbit] Hobbit Installation Issue

sladewig sladewig at bankinfo.com
Tue Nov 18 21:38:56 CET 2008


Hosch, Katherine CONT (SSC LANT) said the following, On 11/18/2008 01:10 PM:
> You need to change the system library run path so it looks in
> /usr/local/lib.  If this was solaris you would do it like this:
> 
>  crle -l /usr/lib:/usr/secure/lib:/usr/local/lib

Or compile it with -L/usr/local/lib -R/usr/local/lib (assuming that is 
where libcpre is).

> Sadly, I don't know how to do this in Linux.

Usually /etc/ld.so.conf and some distro have /etc/ld.so.conf.d where you 
can add a file that contains /usr/local/lib. Then run ldconfig to 
rebuild the /etc/ld.so.cache.

> Alternatively, you might be able to recompile hobbit with a configure
> flag telling it where the pcre library is. 

This is the best way.

--
steve

> -----Original Message-----
> From: Tanveer Siddiqui [mailto:tanveers at yahoo.com] 
> Sent: Tuesday, November 18, 2008 12:59
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Hobbit Installation Issue
> 
> I already have libpcre.so installed.
> 
> 
> # ls -al /usr/local/lib/libpcre.so*
> lrwxrwxrwx 1 root root     16 2008-11-13 14:15 /usr/local/lib/libpcre.so
> -> libpcre.so.0.0.1
> lrwxrwxrwx 1 root root     16 2008-11-13 14:15
> /usr/local/lib/libpcre.so.0 -> libpcre.so.0.0.1
> -rwxr-xr-x 1 root root 158684 2008-11-13 14:15
> /usr/local/lib/libpcre.so.0.0.1
> 
> Do I need to update any hobbit configuration file to get rid of this
> "Internal Server Error" ?
> 
> Thanks,
> 
> 
> 
> ________________________________
> 
> From: Josh Luthman <josh at imaginenetworksllc.com>
> To: hobbit at hswn.dk
> Sent: Tuesday, November 18, 2008 12:36:00 PM
> Subject: Re: [hobbit] Hobbit Installation Issue
> 
> Try this...
> 
> sudo apt-get install pcre-dev
> 
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
> 
> Those who don't understand UNIX are condemned to reinvent it, poorly.
> --- Henry Spencer
> 
> 
> 
> On Tue, Nov 18, 2008 at 1:31 PM, Tanveer Siddiqui <tanveers at yahoo.com>
> wrote:
> 
> 
> 	In the /var/log/apache2/error.log file I see the following
> error:
> 	
> 	[Tue Nov 18 12:30:32 2008] [error] [client X.X.X.X] Premature
> end of script headers: bb-hostsvc.sh, referer: http://X.X.X.X/hobbit/
> 	/home/hobbit/server/bin/hobbitsvc.cgi: error while loading
> shared libraries: libpcre.so.0: cannot open shared object file: No such
> file or directory
> 	
> 	
> 	How can I fix this?
> 	Thanks.
> 	
> 	
> 	
> 
> 	
> ________________________________
> 
> 	From: Ralph Mitchell <ralphmitchell at gmail.com>
> 	To: hobbit at hswn.dk
> 	Sent: Tuesday, November 18, 2008 12:15:12 PM
> 
> 	Subject: Re: [hobbit] Hobbit Installation Issue
> 	
> 
> 	Take a look in your Apache log directory.  There should be an
> error_log file there with some useful information about what broke.
> 	
> 	Ralph Mitchell
> 	
> 	
> 	
> 	On Tue, Nov 18, 2008 at 11:39 AM, Tanveer Siddiqui
> <tanveers at yahoo.com> wrote:
> 	
> 
> 		I got it working :)
> 		
> 		Here's what I did, I checked
> /var/log/hobbit/bb-display.log file and there I saw the following error
> message repeating over and over:
> 		
> 		bbgen: error while loading shared libraries:
> libpcre.so.0: cannot open shared object file: No such file or directory
> 		
> 		
> 		
> 		Did google on this error, and found that I needed to
> add:
> 		 
> 		   LD_LIBRARY_PATH=/usr/local/lib
> 		
> 		to hobbitserver.cfg, and then restart Hobbit.
> 		
> 		Which fixed my issue.
> 		
> 		But I have another question: 
> 		
> 		
> 		When I click on the status icons. I get the following
> error. Is this normal?
> 		
> 		
> 
> 		Internal Server Error
> 
> 
> 		The server encountered an internal error or
> misconfiguration and was unable to complete your request.
> 
> 		Please contact the server administrator,
> webmaster at localhost and inform them of the time the error occurred, and
> anything you might have done that may have caused the error.
> 
> 		More information about this error may be available in
> the server error log.
> 
> 		
> 
> 
> 		
> ________________________________
> 
> 		From: Josh Luthman <josh at imaginenetworksllc.com>
> 		To: hobbit at hswn.dk
> 		
> 		Sent: Tuesday, November 18, 2008 10:48:11 AM
> 
> 		Subject: Re: [hobbit] Hobbit Installation Issue
> 		
> 
> 		Note when I did a grep server\/www * in the server/etc/
> directory I only got the hobbit-apache.conf.  My output is definitely in
> server/www.
> 		
> 		Josh Luthman
> 		Office: 937-552-2340
> 		Direct: 937-552-2343
> 		1100 Wayne St
> 		Suite 1337
> 		Troy, OH 45373
> 		
> 		Those who don't understand UNIX are condemned to
> reinvent it, poorly.
> 		--- Henry Spencer
> 		
> 		
> 		
> 		On Tue, Nov 18, 2008 at 11:38 AM, Larry Barber
> <lebarber at gmail.com> wrote:
> 		
> 
> 			Since you changed the home directory from
> /usr/local/hobbit to /home/hobbit, I suspect that there may still be
> something pointing to /usr/local/hobbit. Grep through the configuration
> files in the Xymon etc directory looking for anything pointing to
> /usr/local. You might also check the scripts in bin. 
> 			
> 			Thanks,
> 			Larry Barber
> 
> 
> 			On Tue, Nov 18, 2008 at 9:55 AM, Josh Luthman
> <josh at imaginenetworksllc.com> wrote:
> 			
> 
> 				Apache is fine in this case.  For
> whatever reason Xymon isn't outputting html content in server/www
> 				
> 				I grep'ed through my config and I don't
> see where that is configurable.  It may be compiled in for all I know.
> Would you have the capability to recompile the source?
> 
> 
> 				Josh Luthman
> 				Office: 937-552-2340
> 				Direct: 937-552-2343
> 				1100 Wayne St
> 				Suite 1337
> 				Troy, OH 45373
> 				
> 				Those who don't understand UNIX are
> condemned to reinvent it, poorly.
> 				--- Henry Spencer
> 				
> 				
> 				
> 				On Tue, Nov 18, 2008 at 10:34 AM,
> Tanveer Siddiqui <tanveers at yahoo.com> wrote:
> 				
> 
> 					I don't have any .html files in
> ~/server/www directory.
> 					
> 					Here's the 'ls -al' of the
> directory:
> 					
> 					
> 	
> hobbit at tidings:home/hobbit/server/www$ ls -al
> 					total 40
> 					drwxr-xr-x 10 hobbit hobbit 4096
> 2008-11-13 14:22 .
> 					drwxr-xr-x  9 hobbit hobbit 4096
> 2008-11-13 14:22 ..
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 gifs
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 help
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 html
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 menu
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 notes
> 					drwxrwxr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 rep
> 					drwxrwxr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 snap
> 					drwxr-xr-x  2 hobbit hobbit 4096
> 2008-11-13 14:22 wml
> 					
> 					
> 					Contents (related to hobbit) of
> my /etc/apache2/apache2.conf files are:
> 					
> 					######################## H O B B
> I T ########################
> 					# Add this to your Apache
> configuration, it makes
> 					# the Hobbit webpages and
> cgi-scripts available in the
> 					# "/hobbit" and "/hobbit-cgi"
> URLs.
> 					
> 					
> 					# NB: The "Alias" line below
> must NOT be used if you have
> 					#     the Hobbit webfiles as the
> root URL. In that case,
> 					#     you should instead set
> this:
> 					#
> 					#          DocumentRoot
> /home/hobbit/server/www
> 					
> 					Alias /hobbit/
> "/home/hobbit/server/www/"
> 					<Directory
> "/home/hobbit/server/www">
> 					    Options Indexes
> FollowSymLinks Includes MultiViews
> 					    Order allow,deny
> 					    Allow from all
> 					</Directory>
> 					
> 					ScriptAlias /hobbit-cgi/
> "/home/hobbit/cgi-bin/"
> 					<Directory
> "/home/hobbit/cgi-bin">
> 					    AllowOverride None
> 					    Options ExecCGI Includes
> 					    Order allow,deny
> 					    Allow from all
> 					</Directory>
> 					
> 					ScriptAlias /hobbit-seccgi/
> "/home/hobbit/cgi-secure/"
> 					<Directory
> "/home/hobbit/cgi-secure">
> 					    AllowOverride None
> 					    Options ExecCGI Includes
> 					    Order allow,deny
> 					    Allow from all
> 					
> 					    # Password file where users
> with access to these scripts are kept.
> 					    # Create it with "htpasswd
> -c /home/hobbit/server/etc/hobbitpasswd USERNAME"
> 					    # Add more users / change
> passwords with "htpasswd /home/hobbit/server/etc/hobbitpasswd USERNAME"
> 					    #
> 					    # You can also use a group
> file to restrict admin access to members of a
> 					    # group, instead of anyone
> who is logged in. In that case you must setup
> 					    # the "hobbitgroups" file,
> and change the "Require" settings to require
> 					    # a specific group
> membership. See the Apache docs for more details.
> 					
> 					    AuthUserFile
> /home/hobbit/server/etc/hobbitpasswd
> 					    AuthGroupFile
> /home/hobbit/server/etc/hobbitgroups
> 					    AuthType Basic
> 					    AuthName "Hobbit
> Administration"
> 					
> 					    # "valid-user" restricts
> access to anyone who is logged in.
> 					    Require valid-user
> 					
> 					    # "group admins" restricts
> access to users who have logged in, AND
> 					    # are members of the
> "admins" group in hobbitgroups.
> 					    # Require group admins
> 					
> 					</Directory>
> 					
> 					
> 					
> 					
> 					
> 
> 					
> ________________________________
> 
> 					From: Josh Luthman
> <josh at imaginenetworksllc.com>
> 					To: hobbit at hswn.dk
> 					
> 					Sent: Monday, November 17, 2008
> 7:40:54 PM
> 
> 					Subject: Re: [hobbit] Hobbit
> Installation Issue
> 					
> 
> 					index.html will be created - it
> is a softlink to bb.html
> 					
> 					Josh Luthman
> 					Office: 937-552-2340
> 					Direct: 937-552-2343
> 					1100 Wayne St
> 					Suite 1337
> 					Troy, OH 45373
> 					
> 					Those who don't understand UNIX
> are condemned to reinvent it, poorly.
> 					--- Henry Spencer
> 					
> 					
> 					
> 					On Mon, Nov 17, 2008 at 8:31 PM,
> Jason Hand <jason at hands4christ.org> wrote:
> 					
> 
> 						Are you doing
> \hobbit\bb.html ?
> 						 
> 						That is what mine is.
> 						 
> 						Try that and see if it
> works for you.
> 						 
> 						Thanks,
> 						Jason
> 
> ________________________________
> 
> 						From: Josh Luthman
> [mailto:josh at imaginenetworksllc.com] 
> 						Sent: Monday, November
> 17, 2008 6:08 PM
> 						To: hobbit at hswn.dk
> 
> 						Subject: Re: [hobbit]
> Hobbit Installation Issue
> 						
> 
> 						If the processes are
> running and you're not filling that directory with index/bb/bb2.html
> files then you probably have the output directory set to another
> directory then where that Alias (or Vhost) is pointing.
> 						 
> 						As was mentioned you do
> have to wait a good minute or two before that directory is populated.
> In my experience I never have that wait as I wait between every step to
> accomplish something else.
> 
> 						Josh Luthman
> 						Office: 937-552-2340
> 						Direct: 937-552-2343
> 						1100 Wayne St
> 						Suite 1337
> 						Troy, OH 45373
> 						
> 						Those who don't
> understand UNIX are condemned to reinvent it, poorly.
> 						--- Henry Spencer
> 						
> 						
> 						
> 						On Mon, Nov 17, 2008 at
> 5:32 PM, Ralph Mitchell <ralphmitchell at gmail.com> wrote:
> 						
> 
> 							It can take a
> minute or two for the page generator to produce that first page.  Are
> you still getting that directory listing??
> 							
> 							Ralph Mitchell 
> 
> 
> 
> 							On Mon, Nov 17,
> 2008 at 4:27 PM, Tanveer Siddiqui <tanveers at yahoo.com> wrote:
> 							
> 
> 								Yes,
> Hobbit is running. I have the following processes running.
> 								
> 								hobbit
> 4727     1  0 13:58 ?        00:00:00
> /home/hobbit/server/bin/hobbitlaunch
> --config=/home/hobbit/server/etc/hobbitlaunch.cfg
> --env=/home/hobbit/server/etc/hobbitserver.cfg
> --log=/var/log/hobbit/hobbitlaunch.log
> --pidfile=/var/log/hobbit/hobbitlaunch.pid
> 								hobbit
> 4728  4727  0 13:58 ?        00:00:00 hobbitd
> --pidfile=/var/log/hobbit/hobbitd.pid
> --restart=/home/hobbit/server/tmp/hobbitd.chk
> --checkpoint-file=/home/hobbit/server/tmp/hobbitd.chk
> --checkpoint-interval=600 --log=/var/log/hobbit/hobbitd.log
> --admin-senders=127.0.0.1 <http://127.0.0.1/>  155.17.120.87
> <http://155.17.120.87/>  --store-clientlogs=!msgs
> 								hobbit
> 4729  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=stachg
> --log=/var/log/hobbit/history.log hobbitd_history
> 								hobbit
> 4730  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=clichg
> --log=/var/log/hobbit/hostdata.log hobbitd_hostdata
> 								hobbit
> 4731  4729  0 13:58 ?        00:00:00 hobbitd_history
> 								hobbit
> 4732  4730  0 13:58 ?        00:00:00 hobbitd_hostdata
> 								hobbit
> 4733  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=page
> --log=/var/log/hobbit/page.log hobbitd_alert
> --checkpoint-file=/home/hobbit/server/tmp/alert.chk
> --checkpoint-interval=600
> 								hobbit
> 4734  4733  0 13:58 ?        00:00:00 hobbitd_alert
> --checkpoint-file=/home/hobbit/server/tmp/alert.chk
> --checkpoint-interval=600
> 								hobbit
> 4735  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=status
> --log=/var/log/hobbit/rrd-status.log hobbitd_rrd
> --rrddir=/home/hobbit/data/rrd
> 								hobbit
> 4736  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=data
> --log=/var/log/hobbit/rrd-data.log hobbitd_rrd
> --rrddir=/home/hobbit/data/rrd
> 								hobbit
> 4737  4735  0 13:58 ?        00:00:00 hobbitd_rrd
> --rrddir=/home/hobbit/data/rrd
> 								hobbit
> 4738  4736  0 13:58 ?        00:00:00 hobbitd_rrd
> --rrddir=/home/hobbit/data/rrd
> 								hobbit
> 4739  4727  0 13:58 ?        00:00:00 hobbitd_channel --channel=client
> --log=/var/log/hobbit/clientdata.log hobbitd_client
> 								hobbit
> 4741  4739  0 13:58 ?        00:00:00 hobbitd_client
> 								
> 								
> 								
> 
> 								
> ________________________________
> 
> 								From:
> Josh Luthman <josh at imaginenetworksllc.com>
> 								To:
> hobbit at hswn.dk
> 								Sent:
> Monday, November 17, 2008 2:30:55 PM
> 								Subject:
> Re: [hobbit] Hobbit Installation Issue
> 								
> 
> 								Is xymon
> running?  Look for ps named "hobbit"
> 								
> 								ps
> aux|grep hobb
> 								
> 								Josh
> Luthman
> 								Office:
> 937-552-2340
> 								Direct:
> 937-552-2343
> 								1100
> Wayne St
> 								Suite
> 1337
> 								Troy, OH
> 45373
> 								
> 								Those
> who don't understand UNIX are condemned to reinvent it, poorly.
> 								---
> Henry Spencer
> 								
> 								
> 								
> 								On Mon,
> Nov 17, 2008 at 3:26 PM, Tanveer Siddiqui <tanveers at yahoo.com> wrote:
> 								
> 
> 	
> Hello everyone,
> 									
> 	
> For the first time, I am trying to install Hobbit on my Ubuntu Linux
> Server. I followed the installation instructions provided on
> http://hobbitmon.sourceforge.net/
> 									
> 	
> Every step went fine but when I started hobbit and typed in the hobbit
> address [ http://server-ip/hobbit/ ] in the browser, instead of getting
> the main page, I get the directory structure (see below)? What am I
> missing here?
> 	
> Please assist. Thank you!
> 									
> 									
> 									
> 									
> 
> 	
> Index of /hobbit
> 
> [ICO]	 Name <http://155.17.120.87/hobbit/?C=N;O=D> 	 Last modified
> <http://155.17.120.87/hobbit/?C=M;O=A> 	 Size
> <http://155.17.120.87/hobbit/?C=S;O=A> 	 Description
> <http://155.17.120.87/hobbit/?C=D;O=A> 	
> ________________________________
> 
> [DIR]	 Parent Directory <http://155.17.120.87/> 	  	 - 	
> [DIR]	 gifs/ <http://155.17.120.87/hobbit/gifs/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 help/ <http://155.17.120.87/hobbit/help/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 html/ <http://155.17.120.87/hobbit/html/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 menu/ <http://155.17.120.87/hobbit/menu/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 notes/ <http://155.17.120.87/hobbit/notes/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 rep/ <http://155.17.120.87/hobbit/rep/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 snap/ <http://155.17.120.87/hobbit/snap/> 	 13-Nov-2008
> 14:22 	- 	
> [DIR]	 wml/ <http://155.17.120.87/hobbit/wml/> 	 13-Nov-2008
> 14:22 	- 	
> ________________________________
> 
> 	
> Apache/2.2.8 (Ubuntu) Server at x.x.x.x Port 80
> 
> 
> 
> 
> 
> 
> 
> 						No virus found in this
> incoming message.
> 						Checked by AVG -
> http://www.avg.com
> 						Version: 8.0.175 / Virus
> Database: 270.9.4/1795 - Release Date: 11/17/2008 5:24 PM
> 						
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
> 



More information about the Xymon mailing list