[Nagios-devel] patch for statuswrl.c

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
Guest

[Nagios-devel] patch for statuswrl.c

Post by Guest »

Hi,

I found out that if you have a hostname with a dot in there, the 3d status
map fails to render. It seems that the dot is some special character or so
in this vrml language (i dunno).

what i did to fix this is:

statuswrl.c: 943-951:
printf("translation %2.2f %2.2f %2.2f\n",x,y,z);
printf("children [\n");

+ while (temp_host->name!='\0') {
+ if (temp_host->name=='.') temp_host->name='_';
+ i++;
+ }
printf("DEF Host%s Shape{\n",temp_host->name);
printf("appearance Appearance{\n");

Its not in real diff format, but you might be able to read it :o)

please not that i'm not on this list so please include me in the cc if you
reply on this.


With kind regards,

Wim Fournier
wim.fournier@kern.nl







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: wim.fournier@kern.nl
Locked