Hi all.

A few weks ago, I wrote about a problem with all the RRDs generated by ntop which were empty of data although with RRD_DEBUG > 0 it seemed that the plugin was actually doing the updates. As far as I know now, it was a problem with a lack of memory (ntop is hosted on a bi-pro with 2 Gbytes of memory). I think so because everything seem to work now with the use of the -x argument. I used it with the value 400. Ntop is stable, using 34 Mbytes of real memory.

It also solved a problem a stability of ntop on my FC3 Linux.

I used -x 400 in conjonction with -g.

By the way, with this combination of arguments, wich value seem smart for -x  ? The total number of hosts connected to my local network ?

Regards,

Burton Strauss wrote:
Copy line lines from 1114:
 
#if RRD_DEBUG > 0
    traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: rrd_create(%s, %s, %u)=%d",
               hostPath, key, (unsigned long)value, rc);
#endif
 
And modify/ put them after 1216, so you get an rrd_update() log just like the rrd_create() - gives this:
 

      rrd_clear_error();
    } else {
#if RRD_DEBUG > 0
      traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: rrd_update(%s, %s, %s)=%d",
                 hostPath, key, cmd, rc);
#endif
    }
  }
 
That way there will be a log message for each update... but it seems like the updates SHOULD be working - there's the time stamp and the fact that there's no errors...
 
-----Burton
 
patch:
 
--- plugins/rrdPlugin.c 27 Feb 2005 22:17:12 -0000      2.175
+++ plugins/rrdPlugin.c 4 Mar 2005 13:01:13 -0000
@@ -1112,8 +1112,8 @@
 #endif
 
 #if RRD_DEBUG > 0
-    traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: rrd_create(%s, %s, %u)=%d",
-              hostPath, key, (unsigned long)value, rc);
+    traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: rrd_create(%s, %s)=%d",
+              hostPath, key, rc);
 #endif
     createdCounter = 1;
   }
@@ -1214,6 +1214,11 @@
       }
 
       rrd_clear_error();
+    } else {
+#if RRD_DEBUG > 0
+      traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: rrd_update(%s, %s, %s)=%d",
+                 hostPath, key, cmd, rc);
+#endif
     }
   }
 
-- 
Didier Benza                            [EMAIL PROTECTED]
Tel : +33 492 38 7167 /  Fax : +33 492 38 7602 
INRIA 2004, Route des Lucioles, BP  93, 06902 Sophia Antipolis Cedex


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to