Is there a way in xymon-4.3.0.beta3 to drop the DESCR field appearing next to the hostname on the Critical Systems view?
There is not much room for test columns if the hostname + DESCR are long. Can it not behave like the --tooltips option on xymongen?
Regards, Chris
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any).
In <0362AE866EBF9B4B964BD6C9652E8D9104FBC466 at kfmex22p.ud1.utility> <Chris.Morris at rwe.com> writes:
Is there a way in xymon-4.3.0.beta3 to drop the DESCR field appearing next to the hostname on the Critical Systems view?
No, but there will be in the final 4.3.0. Patch below - just add "--tooltips" to the CGI_CRITVIEW_OPTS setting to enable it. Regards, Henrik Index: web/criticalview.cgi.1 =================================================================== --- web/criticalview.cgi.1 (revision 6590) +++ web/criticalview.cgi.1 (working copy) @@ -25,6 +25,11 @@ page. Note that this may be overridden by the configuration of the ackinfo.cgi utility. +.IP "--tooltips" +Hide the host description in a "tooltip", i.e. it will be shown when your +mouse hovers over the hostname on the webpage. This saves space on the +display so there is more room for the status columns. + .IP "--env=FILENAME" Loads the environment defined in FILENAME before executing the CGI script. Index: web/criticalview.c =================================================================== --- web/criticalview.c (revision 6590) +++ web/criticalview.c (working copy) @@ -32,6 +32,7 @@ static RbtHandle rbstate; static time_t oldlimit = 3600; static int critacklevel = 1; +static int usetooltips = 0; void errormsg(char *s) { @@ -203,7 +204,7 @@ fprintf(output, "</TD>\n"); /* Print the hostname with a link to the critical systems info page */ - fprintf(output, "<TD ALIGN=LEFT>%s</TD>\n", hostnamehtml(itm->hostname, NULL, 0)); + fprintf(output, "<TD ALIGN=LEFT>%s</TD>\n", hostnamehtml(itm->hostname, NULL, usetooltips)); key = (char *)malloc(strlen(itm->hostname) + 1024); for (colhandle = rbtBegin(columns); (colhandle != rbtEnd(columns)); colhandle = rbtNext(columns, colhandle)) { @@ -413,6 +414,9 @@ else if (strcmp(argv[argi], "--debug") == 0) { debug = 1; } + else if (strcmp(argv[argi], "--tooltips") == 0) { + usetooltips = 1; + } else if (argnmatch(argv[argi], "--acklevel=")) { char *p = strchr(argv[argi], '='); critacklevel = atoi(p+1);
participants (2)
-
Chris.Morris@rwe.com
-
henrik@hswn.dk