Xymon Mailing List Archive search

Small bug in history pages

list Henrik Størner
Tue, 5 Apr 2005 18:17:45 +0200
Message-Id: <user-79fc44a03717@xymon.invalid>

On Tue, Apr 05, 2005 at 09:41:33AM -0500, Stuffle, David wrote:
When I click on one of our AIX servers disk test, then the "history" button,
then click on one of the yellow or red buttons in the history, the last line
of the filesystems includes the "Status unchanged in ..." line.  Like this:

/dev/oralv04e     8208384   7802612    405772   96% /u04Status unchanged in
0.00 minutes

As far as I can tell this only happens on unix systems.
Hobbit assumes that the "Status unchanged in ...." begins on a new
line, but it seems that is not always the case. Seems to be some issue
with the sorting that happens (the last line of the disk report ends
up without a final newline).

Trivial fix attached.


Henrik
-------------- next part --------------
--- bbdisplay/bb-hostsvc.c.orig	2005-04-05 18:10:24.861073894 +0200
+++ bbdisplay/bb-hostsvc.c	2005-04-05 18:10:36.497124646 +0200
@@ -216,8 +216,8 @@
 		char logfn[PATH_MAX];
 		struct stat st;
 		int fd;
-		char *receivedfromtext = "\nMessage received from ";
-		char *statusunchangedtext = "\nStatus unchanged in ";
+		char *receivedfromtext = "Message received from ";
+		char *statusunchangedtext = "Status unchanged in ";
 		char *p, *unchangedstr, *receivedfromstr;
 		int n;