updated statusmap CGI compiling tip

Ethan Galstad nagios at nagios.org
Wed Oct 23 02:13:46 CEST 2002


I am reviewing the patch and will post it to CVS soon.  The statusmap 
CGI only gets added to the Makefile if the gd libraries are detected 
when you run the configure script.



On  22 Oct 2002 at 10:22, Sergio Freire wrote:

> The makefile that i have from CVS doesn't compile statusmap.c!
> Someone took it off of the makefile.
> Anwyay, here goes an updated Makefile for the CGI directory.
> However, i compile it from the command line due to an issue that i have
> with the GD libraries, so i include the full path of this library in the
> command line...
> I use:
> 
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statusmap.c getcgi.o cgiutils.o
> auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c
> ../common/statusdata.c ../xdata/xsddefault.c /usr/lib/libgd.so edata.o
> ../xdata/xedtemplate.c -o statusmap.cgi
> 
> I ask again, if anyone could update this statusmap.c and Makefile in the
> CVS? Thanks in advance.
> Any more questions feel free to contact me.
> Regards,
> Sergio
> 
> 
> On Mon, 2002-10-21 at 22:30, Pulyankote, Gopinath wrote:
> > Hi,
> >  How does one compile this?
> > I moved the orig statusmap.c & copied this to the cgi directory, 
> > Did a make clean, ./configure and make cgis. It complied and created all
> > other files except statusmap.cgi
> > Any clues?
> > Thanks
> > -G 
> > 
> > -----Original Message-----
> > From: Sergio Freire [mailto:sergio-s-freire at ptinovacao.pt] 
> > Sent: Monday, October 21, 2002 7:50 AM
> > To: nagios-users at lists.sourceforge.net
> > Cc: nagios at nagios.org
> > Subject: [Nagios-users] updated statusmap CGI source file
> > 
> > 
> > Hi everyone.
> > Please find attached an updated contribution on statusmap.cgi source
> > file.
> > Major changes:
> > 	- the size of the image created is the maximum of (2d coordinates of
> > all hosts, background image). Until now the background was not taken in
> > account in this calculation so you could have a cropped image...
> > 	- the user supplied layout was changed to take in account the size
> > of
> > the statusmap image (until now it had DEFAULT_NODE_WIDTH and
> > DEFAULT_NODE_HEIGHT in account for the calculation of the target's,
> > circular arc's, map area, and text drawing). This is now a more
> > realistic situation  because the actual size of the statusmap image of
> > the hosts are used to calculate the positioning of the target, highlight
> > selection and map shape area of the html.
> > 	- Also, the draw_host_text() now is called with the correct
> > coordinates
> > so the text is centered vertically and horizontally in the host image
> > (whatever size it has!)
> > 	- The highlighted host with circular drawings is now correclty
> > displayed! Until now, other hosts could be drawn on top of these
> > drawings. Now, the circular drawings are displayed after all hosts are
> > drawn.
> > 
> > Could anyone update this file (if you agree...) in the CVS?
> > Please feel free to comment any aspect.
> > Regards,
> > Sergio Freire
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote




More information about the Users mailing list