<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
h3
{mso-style-priority:9;
mso-style-link:"Heading 3 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:13.5pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas","serif";
mso-fareast-language:FR-CA;}
span.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-priority:9;
mso-style-link:"Heading 3";
font-family:"Calibri Light","sans-serif";
color:#1F4D78;
mso-fareast-language:FR-CA;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Hi Mario,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Did you find a way to graph mount points ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">I have same issue over here but for Microsoft Exchange DAG mount point.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">If someone have a clue, share please
</span><span lang="EN-US" style="font-size:11.0pt;font-family:Wingdings;color:#1F497D;mso-fareast-language:EN-US">J</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">David Raymond
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Mario<br>
<b>Sent:</b> Wednesday, January 8, 2014 2:15 PM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] BBwin 0.13 and Mountpoints<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I think my message title "BBwin 0.13 and mountpoints" sent to the Xymon list don´t reflect exactly what I was thinking.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">What I really want is to modify the do_disk.c and not bbwin 0.13.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">From one side if we change the bbwin output maybe we could have the graphs working without changing the do_disk.c file on xymon.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">But, I think that the easier way is to change the do_disk.c to read correctly the output data when we have a mountpoint on a windows server disk monitoring.<o:p></o:p></p>
</div>
<p class="MsoNormal">So, my question is how we can grab correctly the value and description on do_disk.c to create the correspondent rrd file on xymon.
<br>
I´ve made some attempts and modififcations without success on do_disk.c, they don´t create the rrds files I want.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">The column[11] on the current line works when it has the "N/A" but don´t when it has a
<span style="font-size:7.5pt;font-family:"Arial","sans-serif"">"J:\Tempdb\" mount point , for example.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Sample output:<br>
<span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Filesystem 1K-blocks Used Avail Capacity Total Size Free Space Type Status Mount Point<br>
C 62811132 50331028 12480104 80% 59.90 GB 11.90 GB FIXED green N/A<br>
D 116043772 1106160 114937612 0% 110.67 GB 109.61 GB FIXED green N/A<br>
E 943848444 533077660 410770784 56% 900.12 GB 391.74 GB FIXED green N/A<br>
H 10487804 232568 10255236 2% 10.00 GB 9.78 GB FIXED green N/A<br>
Tephra 94379004 35080592 59298412 37% 90.01 GB 56.55 GB FIXED green H:\Tephra\<br>
J 20970492 14819908 6150584 70% 20.00 GB 5.87 GB FIXED green N/A<br>
Tempdb 104869884 45310732 59559152 43% 100.01 GB 56.80 GB FIXED green J:\Tempdb\<br>
Log_Local 199235580 142506088 56729492 71% 190.01 GB 54.10 GB FIXED green J:\Log_Local\<br>
AnalysisServices 125834236 62594172 63240064 49% 120.00 GB 60.31 GB FIXED green J:\AnalysisServices\<br>
Integration 125834236 84555080 41279156 67% 120.00 GB 39.37 GB FIXED green J:\Integration\<br>
M 253948 126556 127392 49% 248.00 MB 124.41 MB FIXED green N/A<br>
N 15732732 1145888 14586844 7% 15.00 GB 13.91 GB FIXED green N/A<br>
Dados 718359548 140812328 577547220 19% 685.08 GB 550.79 GB FIXED green N:\Dados\<br>
Tempdb 52433916 781132 51652784 1% 50.00 GB 49.26 GB FIXED green N:\Tempdb\</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Henrik, any hint?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks and Regards,<br>
Mario <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jan 8, 2014 at 11:15 AM, Mario <<a href="mailto:rower.master@gmail.com" target="_blank">rower.master@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have 2 cases here. <br>
The first one is a SQL Server Cluster design.<br>
And the second one is a Oracle Server with 6 database instances. <br>
Each database has a separated mount point and this is used to make possible a restore in production for a single db using a recovery point tool.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<br>
Mario <o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Jan 6, 2014 at 6:14 PM, Malcolm Hunter <<a href="mailto:malcolm.hunter@gmx.com" target="_blank">malcolm.hunter@gmx.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p><span style="font-family:"Arial","sans-serif"">That seems like a really unusual filesystem structure. What's the reasoning behind that design?<o:p></o:p></span></p>
<p><span style="font-family:"Arial","sans-serif"">Sent with AquaMail for Android<br>
<a href="http://www.aqua-mail.com" target="_blank">http://www.aqua-mail.com</a><o:p></o:p></span></p>
<div>
<div>
<div>
<p style="mso-margin-top-alt:10.0pt;margin-right:0in;margin-bottom:10.0pt;margin-left:0in">
<span style="font-family:"Arial","sans-serif"">On 6 January 2014 19:23:04 Mario <<a href="mailto:rower.master@gmail.com" target="_blank">rower.master@gmail.com</a>> wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid gray 1.0pt;padding:0in 0in 0in 5.0pt;margin-left:4.5pt;margin-right:0in">
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">Hi All,<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">I´m trying to fix the issue with the graphs creation for windows mountpoints and bbwin 0.13.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">The issue is that we only have graphs for the single drive letters and not for the mountpoints using the bbwin 0.13.
<br>
Another problem is even if the graphs were working we could not have duplicated names for different drive letters.<o:p></o:p></span></p>
<pre>Filesystem <o:p></o:p></pre>
<pre> 1K-blocks Used Avail Capacity Total Size Free Space <o:p></o:p></pre>
<pre>Type Status Mount Point<br><br><o:p></o:p></pre>
<pre>C 62811132 49966236 12844896 79% <o:p></o:p></pre>
<pre>59.90 GB 12.25 GB FIXED green N/A<br>D <o:p></o:p></pre>
<pre>116043772 1100880 114942892 0% 110.67 GB 109.62 GB <o:p></o:p></pre>
<pre>FIXED green N/A<br><br><o:p></o:p></pre>
<pre>E 943848444 533077788 410770656 56% <o:p></o:p></pre>
<pre>900.12 GB 391.74 GB FIXED green N/A<br>F <o:p></o:p></pre>
<pre> 943848444 495800916 448047528 52% 900.12 GB 427.29 GB <o:p></o:p></pre>
<pre>FIXED green N/A<br><br><o:p></o:p></pre>
<pre>J 20970492 14764648 6205844 70% <o:p></o:p></pre>
<pre>20.00 GB 5.92 GB FIXED green N/A<br>DadosLocal_Diversos_A <o:p></o:p></pre>
<pre>1237451772 928809832 308641940 75% 1.15 TB 294.34 GB <o:p></o:p></pre>
<pre>FIXED green J:\DadosLocal_Diversos_A\<br><br><o:p></o:p></pre>
<pre>DadosLocal_Diversos_B 1782825980 1216555488 566270492 68% <o:p></o:p></pre>
<pre>1.66 TB 540.04 GB FIXED green <o:p></o:p></pre>
<pre>J:\DadosLocal_Diversos_B\<br>Tempdb 104869884 54526796 <o:p></o:p></pre>
<pre>50343088 51% 100.01 GB 48.01 GB FIXED green <o:p></o:p></pre>
<pre>J:\Tempdb\<br><br><o:p></o:p></pre>
<pre>Log_Local 199235580 135337320 63898260 67% <o:p></o:p></pre>
<pre>190.01 GB 60.94 GB FIXED green <o:p></o:p></pre>
<pre>J:\Log_Local\<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">I´ve already modified the winPSclient to consider the mountpoints and If I use this client I have all the graphs created without any problem.
<br>
But I don´t want to continue changing or adding a server agent everytime a server administrator configure a mountpoint in a server.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">WinPSCLient output example where I have all graphs created:<o:p></o:p></span></p>
<h3><span style="font-family:"Arial","sans-serif"">Mon 06 Jan 16:44:55 2014 - Filesystems OK<o:p></o:p></span></h3>
<pre>Filesystem 1K-blocks Used Avail Capacity Mounted<o:p></o:p></pre>
<pre>Summary(Total\Avail GB)<o:p></o:p></pre>
<pre>C 52377596 39455096 12922500 75% /FIXED/C<o:p></o:p></pre>
<pre>49.95gb\12.32gb<o:p></o:p></pre>
<pre>D 90254332 82510624 7743708 91% /FIXED/D<o:p></o:p></pre>
<pre>86.07gb\7.38gb<o:p></o:p></pre>
<pre>F 10482684 91992 10390692 1% /FIXED/F<o:p></o:p></pre>
<pre>10.00gb\9.91gb<o:p></o:p></pre>
<pre>F:\ORAARCHIVE 10482684 85608 10397076 1%<o:p></o:p></pre>
<pre>/FIXED/F:\ORAARCHIVE 10.00gb\9.92gb<o:p></o:p></pre>
<pre>F:\ORABACKUP01 10482684 1638116 8844568 16%<o:p></o:p></pre>
<pre>/FIXED/F:\ORABACKUP01 10.00gb\8.43gb<o:p></o:p></pre>
<pre>F:\ORADATA01 41939964 31552684 10387280 75% /FIXED/F:\ORADATA01<o:p></o:p></pre>
<pre>40.00gb\9.91gb<o:p></o:p></pre>
<pre>I 10482684 84468 10398216 1% /FIXED/I<o:p></o:p></pre>
<pre>10.00gb\9.92gb<o:p></o:p></pre>
<pre>I:\ORAARCHIVE 5239804 54772 5185032 1%<o:p></o:p></pre>
<pre>/FIXED/I:\ORAARCHIVE 5.00gb\4.94gb<o:p></o:p></pre>
<pre>I:\ORABACKUP01 52425724 93492 52332232 0%<o:p></o:p></pre>
<pre>/FIXED/I:\ORABACKUP01 50.00gb\49.91gb<o:p></o:p></pre>
<pre>I:\ORADATA01 209712124 98292 209613832 0% /FIXED/I:\ORADATA01<o:p></o:p></pre>
<pre>200.00gb\199.90gb<o:p></o:p></pre>
<pre>J 10482684 96676 10386008 1% /FIXED/J<o:p></o:p></pre>
<pre>10.00gb\9.90gb<o:p></o:p></pre>
<pre>J:\OraArchive 5239804 125628 5114176 2%<o:p></o:p></pre>
<pre>/FIXED/J:\OraArchive 5.00gb\4.88gb<o:p></o:p></pre>
<pre>J:\ORADATA01 207614972 136793092 70821880 66% /FIXED/J:\ORADATA01<o:p></o:p></pre>
<pre>198.00gb\67.54gb<o:p></o:p></pre>
<pre>J:\ORATEMP 41939964 33645564 8294400 80% /FIXED/J:\ORATEMP<o:p></o:p></pre>
<pre>40.00gb\7.91gb<o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">I´ve tried some modifications on do_disk.c but without sucess.
<br>
I´ve created a new dsystype called DT_MOUNTPOINT:<br>
<br>
<i>else if (strstr(msg, "Mount Point")) dsystype = DT_MOUNTPOINT;<br>
...<br>
if ( (dsystype == DT_MOUNTPOINT) && (*(columns[9])) && (strchr(columns[11], '/')) )<br>
dsystype = DT_MOUNTPOINT;<br>
if ( (dsystype == DT_MOUNTPOINT) && (*(columns[9])) && (strchr(columns[11], ':')) )<br>
dsystype = DT_MOUNTPOINT;</i><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">And here at the "case DT_MOUNTPOINT" is where the things are not good.
<br>
I´ve tried to get the the column[11] but unfortunately we have backslashes. <br>
I´ve tried several ways, but I´m not good in c as I would like to and after many many tests I´m asking for a help or if you can put this on Xymon todo list.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">I´m using xymon 4.3.0-beta2 , sorry if this was already solved in the last version. I´ve checked the do_disk.c file on the last stable but couldn´t see this solution.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif""><br>
<i>case DT_MOUNTPOINT:<br>
diskname = xstrdup(columns[11]);<br>
if (strstr(diskname, "N/A")) {<br>
diskname = xstrdup(columns[0]);<br>
}<br>
else {<br>
diskname = xstrdup(columns[11]);<br>
}<br>
/*sprintf(diskname, "/%s", columns[11]);*/<br>
p = strchr(columns[4], '%'); if (p) *p = ' ';<br>
pused = atoi(columns[4]);<br>
aused = str2ll(columns[2], NULL);<br>
break;</i><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">I´ve tried to use the diskname as columns[0] but doesn´t work for the mountpoints too.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">The case DT_BBWin format that works for the winPSclient doesn´t work if I use the diskname as columns[0] or columns[11].<br>
<br>
case DT_BBWIN:<br>
<i>diskname = xmalloc(strlen(columns[0])+2);<br>
sprintf(diskname, "/%s", columns[0]);</i><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif""><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Thanks in advance,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Mario<o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>