<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have a Windows cluster that hosts various file shares on cluster
disks. I realized today that I can report on usage of the cluster
disk and the node it is running on in a single graph. In my case it
works because I have 2 nodes in the cluster, and a graph has 4 lines
so a given graph has 2 x 2 disk lines appearing on it.<br>
<br>
So I have the cluster IP and the 2 nodes in my hosts.cfg file. I
then went into the cluster directory in the RRD storage area and
created some symlinks. Due to the FNPATTERN matching of the [disk]
graph I then see [disk] graphs in my trends report for the cluster.
A given daily graph may only show one colour, but by clicking on the
graph, the longer timescales show the data lines from each node as
the resource moves between them over time.<br>
<br>
[disk]<br>
FNPATTERN disk(.*).rrd<br>
TITLE Disk Utilization<br>
YAXIS % Full<br>
DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>
LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>
-u 100<br>
-l 0<br>
GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)<br>
GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)<br>
GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)<br>
GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n<br>
<br>
So my symlink hack was just this:<br>
<br>
% cd <RRDpath>/fs1clusv.ausport.gov.au<br>
% for d in M N O Q R S ; do for h in 1 2 ; do ln -s
../fs1n${h}sv.ausport.gov.au/disk,${d}.rrd disk,${d},fs1n${h}sv.rrd;
done; done<br>
<br>
If you had more nodes in your cluster you could create extra dummy
files to make it up to 4 graphs for 1 drive, or tweak the number of
graphs that appear on a graph, maybe with a custom graph definition.<br>
<br>
This trick could be used for other similar HA scenarios - e.g. load
balancer, etc.<br>
<br>
Sample graphs below.<br>
<br>
<img src="cid:part1.04090104.02070906@ausport.gov.au" alt="monthly
graph"><br>
<img src="cid:part2.04080405.07070203@ausport.gov.au" alt="monthly
graph"><br>
<br>
David.<br>
<pre class="moz-signature" cols="72">--
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a> 1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
</pre>
<br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>