Help (Getting the icons to work on the Map)
Potter, G M (Greg)
GPotter at MarathonOil.com
Wed Nov 20 23:23:15 CET 2002
> -----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:
Battle your brains against the best in the Thawte Crypto
Challenge. Be the first to crack the code - register now:
http://www.gothawte.com/rd521.html
More information about the Users
mailing list