updated statusmap CGI source file

Sergio Freire sergio-s-freire at ptinovacao.pt
Mon Oct 21 16:49:38 CEST 2002


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: statusmap.c
Type: text/x-c
Size: 98316 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021021/d8be65c9/attachment.bin>


More information about the Users mailing list