[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] Darwin clients: empty memory graph



Has this been resolved?   I'm having the same problem (reporting one
item, in my case Virtual).

Thanks,
Frank

-----Original Message-----
From: Dominique Frise [mailto:Dominique.Frise (at) unil.ch] 
Sent: Wednesday, May 17, 2006 3:47 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] Darwin clients: empty memory graph

Dominique Frise wrote:
> Hi,
> 
> With today's snapshot the memory graph is still empty :-(
> Memory/Used/Total/Percentage info is reported correctly (only one line

> for Physical)
> 
> Same issue with Darwin 8.6.0 (OSX 10.4.6) or 7.9.0 (OSX 10.3.9)
> 
> 
> Dominique
> UNIL - University of Lausanne
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
> 
> 

We had to ack hobbitd/rrd/do_memory.c to make this work:


[super (at) iris rrd]# diff -u do_memory.c.dist do_memory.c
--- do_memory.c.dist	Thu May  4 17:30:37 2006
+++ do_memory.c	Wed May 17 09:44:35 2006
@@ -118,7 +118,7 @@
  		swap = strstr(msg, "Swap"); if (swap == NULL) swap =
strstr(msg, "Page");
  		actual = strstr(msg, "Actual"); if (actual == NULL)
actual = strstr(msg, 
"Virtual");

-		if (phys && swap) {
+		if (phys) {
  			char *eoln;
  			int physval = -1, swapval = -1, actval = -1;

@@ -125,11 +125,13 @@
  			eoln = strchr(phys, '\n'); if (eoln) *eoln =
'\0';
  			physval = get_mem_percent(phys);
  			if (eoln) *eoln = '\n';
+			
+			if (swap) {
+				eoln = strchr(swap, '\n'); if (eoln)
*eoln = '\0';
+				swapval = get_mem_percent(swap);
+				if (eoln) *eoln = '\n';
+			}

-			eoln = strchr(swap, '\n'); if (eoln) *eoln =
'\0';
-			swapval = get_mem_percent(swap);
-			if (eoln) *eoln = '\n';
-
  			if (actual) {
  				eoln = strchr(actual, '\n'); if (eoln)
*eoln = '\0';
  				actval = get_mem_percent(actual);



Henrik, thanks to notice this for next snapshot.

Dominique
UNIL - University of Lausanne

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk



----------------------------------------
This message contains information which is privileged and confidential and is solely for the use of the intended recipient.  If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct (at) ailife.com.