Help (Getting the icons to work on the Map)

emily zhou zhoue at algonquincollege.com
Thu Nov 21 15:24:51 CET 2002


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
> > >
> > >
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zhoue.vcf
Type: text/x-vcard
Size: 344 bytes
Desc: Card for emily zhou
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021121/6f203bef/attachment.vcf>


More information about the Users mailing list