updated statusmap CGI compiling tip
Sergio Freire
sergio-s-freire at ptinovacao.pt
Tue Oct 22 11:22:37 CEST 2002
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 5032 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021022/6de10c00/attachment.bin>
More information about the Users
mailing list