statusmap circle size

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mrninni
Posts: 27
Joined: Tue Sep 27, 2011 8:35 am

statusmap circle size

Post by mrninni »

Hi all,

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

Thanks,
Regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: statusmap circle size

Post 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/
mrninni
Posts: 27
Joined: Tue Sep 27, 2011 8:35 am

Re: statusmap circle size

Post 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
Locked