Xymon Mailing List Archive search

Double combo - display &unknown - xymon 4.3.28

list Dominique Delporte
Tue, 3 Sep 2019 16:05:50 +0200
Message-Id: <CAGbmHFC+J76fCA4XGcPzHBo0fd9vFoWSyRi_W=user-23d2f457ba6d@xymon.invalid>

I have the same problem as in the thread
https://lists.xymon.com/archive/2011-September/032469.html
Where a patch was suggested here :
https://lists.xymon.com/archive/2011-September/032481.html

But in fact the problem is always present with combo of combo.

I found the solution : update color value in function getstatus
So I propose this patch, just adding one line to update color : *color =
(walk->result ? COL_GREEN : COL_RED);

--- combostatus.c.orig 2019-09-03 14:46:39.221984375 +0200
+++ combostatus.c 2019-09-03 14:50:42.412165047 +0200
@@ -251,6 +251,7 @@
  for (walk = testhead; (walk && ( (strcmp(walk->reshostname, hostname) !=
0) || (strcmp(walk->restestname, testname) != 0) ) ); walk = walk->next);
  if (walk != NULL) {
  /* It is a combo test they want the result of. */
+ *color = (walk->result ? COL_GREEN : COL_RED);
  return walk->result;
  }


dominique DELPORTE