statusmap.cgi: overlapped hosts on circular drawing

Stefano Coletta creator at mindcreations.com
Thu Jul 10 11:06:44 CEST 2003


Hi Chris,

have you tried to reduce the Zoom level on the top of the graph?

I'm not experiencing the cut off as you stated.

At which resolution the image is being generated?

Actually I have 4212x2424 pixels.

Chris Stankaitis wrote:

> Hi There Quick Questions if you have a moment,
>
> I to have been plagued with the issue of having more servers then the 
> default circle graph can handle, and upon reading your e-mail went 
> about patching the statusmap.c as well, I pumped my Radius to 175 to 
> start as you suggested and it seems to have done the trick for the 
> most part however I am now experiencing a new issue which I am hoping 
> you may have a moment to help me with.
>
> to put it simply, the circle (graph) is to big for the Square (the box 
> which it draws the circle graph in) and some of my hostnames and such 
> are getting chopped at the edges of the box.  I looked at the code and 
> didn't see any ovious "picture height, picture width" settings
>
> Any insite how I can expand the total space the image tries to render 
> in so its not cutting off the circle?
>
> Chris
>
> Stefano Coletta wrote:
>
>> 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: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
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