Help (Getting the icons to work on the Map)
Potter, G M (Greg)
GPotter at MarathonOil.com
Thu Nov 21 16:41:07 CET 2002
Emily,
I tried to make notes as I installed. Here is the list of things I did. I don't know how complete it is
as I may not have written everything down. But you are welcome to it. The libz compression library was already
loaded on my machine as a result of being included in my jumpstart image, but I am using version 1.1.4. It is
installed using the following package: zlib-1.1.4-sol8-sparc-local.gz
Hope this helps!
Here is what I had to do to get nagios running on Solaris.
- Add /usr/ccs/bin to PATH
- mkdir /usr/local/jpeg
- cd /usr/local/jpeg
- tar xvf /moc/okc/home/tc8/sun/jpegsrc.v6b.tar
- cd /usr/local/jpeg-6b
- ./configure
- make
- make test
- make install
- make install-lib
- make install-headers
- untar libpng-1.2.5 to /usr/local/png/
- cd /usr/local/png/libpng-1.2.5
- cp scripts/makefile.solaris Makefile
- make
- make test
- make install
- untar gd to /usr/local/perl/build/gd-2.0.4
- cd /usr/local/gd/gd-2.0.4
- vi configure # add /usr/openwin/lib /usr/openwin/include to Include and
- # link variables
- ./configure
- make
- make install
- Add user and group nagios
- mkdir /usr/local/nagios
- cd /usr/local/nagios
- tar xvf /moc/okc/home/tc8/sun/nagios-1.0b6.tar
- cd nagios-1.0b6
- ./configure
- make all
- make install
- make install-commandmode
- make install-init
- create link to apache htdocs for nagios documentation
- ln -s /usr/local/nagios/nag*/html/docs nagiosdocs
- Documentation on web page, find setting up the web interface under
installing Nagios
- follow the instructions for configuring the httpd.conf files.
- Add SetENV LD_LIBRARY_PATH /usr/local/lib to httpd.conf file.
- To get the status map, histograms, etc ... working you need to have
installed the gd, png, jpeg, and zlib libraries on your system.
> -----Original Message-----
> From: emily zhou [mailto:zhoue at algonquincollege.com]
> Sent: Thursday, November 21, 2002 8:25 AM
> To: Potter, G M (Greg)
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Help (Getting the icons to work
> on the Map)
>
>
> Hi Greg,
> It's very surprising, maybe I should redo it from compiling,
> I want to fully
> follow your instructions. Now what I have on my machine as following:
> gd-1.8.3-sol8-sparc-local
> jpeg-6b-sol8-sparc-local
> zlib-1.1.3-sol8-sparc-local
> libpng-1.0.6
> nagios-1.0b6
> If you don't mind, just tell me what I should do, which
> version for library I
> should download and should be source code or binary, etc. ?
> when I compile, which
> parameters I should use? Before, I didn't put any parameter,
> all use default, one
> time I used the --with-gd-lib and --with-gd-inc options, got
> lots of warning mesg.
>
> I'm sorry for taking your lots of time for me.
> Thanks a million,
> Emily
>
> "Potter, G M (Greg)" wrote:
>
> > > -----Original Message-----
> > > From: emily zhou [mailto:zhoue at algonquincollege.com]
> > > Sent: Wednesday, November 20, 2002 3:52 PM
> > > To: Potter, G M (Greg)
> > > Subject: Re: [Nagios-users] Help (Getting the icons to work
> > > on the Map)
> > >
> > >
> > > Hi Greg,
> > > What happened on my machine was that when I installed the
> > > libpng1.2.0, the statusmap.cgi didn't show anything except
> > > for those text. I checked the apache error log file, and said
> > > [Wed Nov 13 15:23:05 2002] [error] Premature end of script
> > > headers: /usr/local/nagios/sbin/statusmap.cgi
> > > libpng warning: Application was compiled with png.h from
> libpng-1.0.6
> > > libpng warning: Application is running with png.c from
> libpng-1.2.0
> > > gd-png: fatal libpng error: Incompatible libpng version in
> > > application and library
> > >
> > > After that, I installed the libpng-1.0.6 back, and the map
> > > shows up (no any error messages in apache error log), only
> > > thing is logos (from hostextinfo.cfg associated with every
> > > hosts) didn't display so that all the logos shown by
> > > unknown.*(which is ?), I already changed it to another icon
> > > as unix-workstation.gd2, but I don't like all the hosts look
> > > same, I want to make the graph
> > > looks better, only for that purpose.
> > >
> > > I was wondering, did you have any problems when you compiled,
> >
> > No mine compiled without problems. I am on Solaris 8 using
> gcc 2.95.3
> >
> > > actually I had problems in compiling time, everytime showing
> > > this messages:
> > > gdImagePng in -lgd(order 1) ...... no
> > > gdImagePng in -lgd(order 2) ...... no
> > > gdImagePng in -lgd(order 3) ...... no
> > > I searched lots of infomation from website, finially I got it
> > > work, manually did some change in cgi/Makefile, add the lib
> > > and inc path to it. I remember last year when I installed the
> > > netsaint, it's same problem but I forgot how to fix that. But
> > > I believe this issue shouldn't affect the logos shown up.
> > > Could you tell me little bit about your experience when you
> > > installed the nagios? I don't think anybody got installed
> >
> > My experience was that Nagios compiled and installed very smoothly.
> > My difficulty was in learning how the configuration templates worked
> > and interacted. Once I understood the syntax for those it
> worked very
> > well. I am still working on the notification escalation though.
> >
> > Here is what I used to make my icons work:
> >
> > define hostextinfo{
> > name bladetemplate
> > icon_image blade.png
> > icon_image_alt Blade 100
> > statusmap_image blade.png
> > register 0
> > }
> >
> > define hostextinfo{
> > use bladetemplate
> > host_name okcu02
> > notes_url
> http://okcu06.okc.moc.com/site-html/okcu02.htm
> > 2d_coords 100,480
> > }
> >
> > I put the png files in
> /usr/local/nagios/share/images/logos/blade.png
> >
> > > very smoothly during the first time, I know that is the
> > > freeware's price.
> > >
> > > Thank you a lot.
> > > Emily
> > >
> > > "Potter, G M (Greg)" wrote:
> > >
> > > > Emily,
> > > >
> > > > I have got the status map working in Solaris 8. The
> > > problem I had was with the gd library. It worked ok for me
> > > in 1.0b5, but when I upgraded to 1.0b6 it stopped working. I
> > > had to recompile libgd, libpng, Nagios and apache to get the
> > > status map to display correctly. To see if you are having
> > > the same problem, look in your web server error log for a
> > > message along the lines of:
> > > >
> > > > [Wed Oct 30 15:35:38 2002] [error] [client 192.168.123.12]
> > > Premature end of script headers:
> /usr/local/nagios/sbin/statusmap.cgi
> > > >
> > > > If you see this then you are likely having a libgd
> > > compatibility problem also.
> > > >
> > > > Hope this helps!
> > > >
> > > > Greg
> > > >
> > > >
> > >
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list