statusmap.cgi: overlapped hosts on circular drawing
Stefano Coletta
creator at mindcreations.com
Thu Jul 3 14:32:27 CEST 2003
Hi all,
I've noticed that in a big environment (like 500 hosts) the
statusmap.cgi draws hosts too close each other in circular representations.
Unable to fix this annoying "overlapping" problem using normal nagios
command/parameters I've decided to modify the source file statumap.c.
As result I've modified this line only:
#define CIRCULAR_DRAWING_RADIUS 100
raising the value to:
#define CIRCULAR_DRAWING_RADIUS 175
that, for me, it is an acceptable value.
The effect on the graph is that hosts are more far each other starting
from the center of the circle outwards.
I was wondering why this useful parameter has not been added to the web
interface instead of being hardcoded.
I have no time to build a patch to both web interface and statusmap.cgi
to implement this so I've modified the value in a permanent way.
Maybe this can be considered a useful feature (in fact simple!) to add
to next versions.
However this change does not solve completely the overlapping problem.
So I'm trying to modify the algorithm to make Nagios put more space
between hosts even in the "horizontal" line, increasing the degrees
occupied by hosts .
Bye all
--
Stefano Coletta
http://www.mindcreations.com
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list