<div dir="ltr">Hello, I am a student and for my thesis work I would need to monitor several machines cpu and memory usage.<div><br></div><div>I found collectd very user friendly and efficient, anyway I don't know where to start to achieve what I am about to explain you.</div>
<div><br></div><div>I have a web server, written in java, which will have to display each machine's status (% usage cpu and free memory) in order to determine which machines are stressed.</div><div><br></div><div>I would not need to store this data on the disk (by the way isn't there a way to set the maximum data size? My csv log file keep increasing in size...), but I would periodically send these values to the server. The server is a custom one, not a collectd server, and DOES NOT have to store anything, just refresh these values and display them to the clients.</div>
<div><br></div><div>The pseudocode for a single monitore machine woudl be:</div><div>var current_cpu_usage;</div><div>var current_mem_free;</div><div><br></div><div>function update_from_collected_process_in_that_machine(){</div>
<div>   update current_cpu_usage with new value</div><div>   do the same for memusage</div><div>}</div><div><br></div><div>function client_request(){</div><div>     display the two var contents, easy.</div><div>}</div><div>
<br></div><div><br></div><div>Any ideas?</div></div>