Page 1 of 1

statusmap circle size

Posted: Thu Apr 18, 2013 5:23 am
by mrninni
Hi all,

It is possible to change the size of the green (or red during a fault) circles?

Thanks,
Regards

Re: statusmap circle size

Posted: Thu Apr 18, 2013 9:42 am
by slansing
This is not a normal feature, though you may be able to track this piece of core back to it's source with a browser plugin such as firebug. There you may be able to change the values, otherwise you could submit a feature request at:

http://tracker.nagios.org/

Re: statusmap circle size

Posted: Thu Apr 18, 2013 1:02 pm
by mrninni
Hi,

solved,

I modified the file statusmap.c.
I replaced the function gdImageArc with gdImageFilledArc.

The result is a very nice and visible filled circle

Code: Select all

/* draw a target around root hosts (hosts with no parents) */
if(temp_host!=NULL && use_highlights==TRUE){
if(temp_host->parent_hosts==NULL){
gdImageFilledArc(map_image,x1+(DEFAULT_NODE_WIDTH/2),y1+(DEFAULT_NODE_WIDTH/2),(DEFAULT_NODE_WIDTH*2),(DEFAULT_NODE_WIDTH*2),0,360,status_color,4);
Bye