Hello!
I use a cronjob to read the load average and the memory usage from
/proc/loadavg and /proc/meminfo of each node every minute and write the
data into a round robin database (rrdtool). The graphs are generated
from the database by a cgi-script when I open the monitoring webpage.
Markus
+++loadavg.sh+++
#!/bin/sh
LOAD=$(awk '{print $1":"$2":"$3}' < /proc/loadavg)
rrdtool update loadavg.$HOSTNAME.rrd N:$LOAD
+++memory.sh+++
#!/bin/sh
MEMF=`grep MemFree: /proc/meminfo|tr -s [:blank:]|cut -f2 -d" "`
SWAPF=`grep SwapFree: /proc/meminfo|tr -s [:blank:]|cut -f2 -d" "`
MEMFREE=$(expr $MEMF \* 1024)
SWAPFREE=$(expr $SWAPF \* 1024)
rrdtool update memory.$HOSTNAME.rrd N:$MEMFREE:$SWAPFREE
A Lenzo wrote:
Hello Cluster Colleagues,
I would like to begin monitoring my cluster in order to see what the
usage is at different times of day. A simple method would work - I am
looking for advice on this. The mosmon utility is enticing since it
shows the usage on all nodes at once, but of course, I can't pipe the
output to a text file. If I can find the right tool for the job, I am
sure I can keep it running every hour or so with Cron. Ideally, I'd
love to measure memory usage and also CPU usage.
Suggestions?
Thanks!
Tony
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org
To change your subscription (digest mode or unsubscribe) visit
http://www.beowulf.org/mailman/listinfo/beowulf