<div dir="ltr"><div><div><div><div><div><div>Hi Roger<br><br></div>I think you are looking at 2 separate issues here.<br><br></div>The "n/a" in the memory cap is probably showing up because you have no memory cap on that zone.<br>
</div>Check this bit of the code.<br><pre class=""><span style="color:rgb(255,0,0)"><b>if [ -z $MEMCAP ]</b></span>
   then
      MEMFREE=$MEMFREE_GLOBK
      PCT_USED=$PCT_USEDG
      <span style="color:rgb(255,0,0)"><b>CAP="n/a"</b></span>
      MEMFREEL=$MEMFREE_GLOBK
      PCT_USED=$PCT_USEDG
      # No cap, we look at the total free.
   else</pre>The zone name getting truncated has got to do with the string definition, which is important to ensure correct formatting of the displayed output.<br></div>Check this bit of code.<br><pre class=""><b><span style="color:rgb(255,0,0)">typeset -L10 ZONE</span></b>
typeset -R5 MEMCAP SWAPCAP CAP
typeset -R6 PCT_USED PCTSWAP
typeset -R8 MEMUSED MEMFREE TOTMEMFREE GLOBUSED RSS PCT_USEDG SWAP</pre>As you can see, the ZONE(name) is a string, 10 characters long, left justified.<br></div>Change the L10 to whatever fits for your zone names. L15 will probably work fine.<br>
<br></div>Regards<br>Vernon<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 May 2014 04:01, Roger Jerdez <span dir="ltr"><<a href="mailto:rjerdez@gmail.com" target="_blank">rjerdez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><h1>zonemem.ksh</h1>
<div>
<div>
<table>
<tbody>
<tr>
<th>
<div>Author </div></th>
<td>
<div><a title="everett.vernon@gmail.com" href="mailto:everett.vernon@gmail.com" target="_blank">Vernon Everett </a></div></td></tr>
<tr>
<th>
<div>Compatibility </div></th>
<td>
<div>Xymon 4.2 </div></td></tr>
<tr>
<th>
<div>Requirements </div></th>
<td>
<div>It monitors zones, so I guess Solaris is pretty important. </div></td></tr>
<tr>
<th>
<div>Download </div></th>
<td>
<div>None </div></td></tr>
<tr>
<th>
<div>Last Update </div></th>
<td>
<div>2013-08-02 </div></td></tr></tbody></table></div></div>
<p> </p>
<div>Hi </div>
<div> </div>
<div>Everett, I found a Little issue with the script when it is graphicating the values for my zones, if the zone has a name more long that 10 characteres it is showing N/A for the MEMCAP value. Do u have any idea why is happening in order to modify the script and fix this</div>


<div> </div>
<div>zarespp1    8G     84.14%    1299M    6893M       5.26%  |    32G      71.88%       23G <img alt="yellow" src="http://149.194.61.239/xymon/gifs/yellow.gif" border="0" height="16" width="16"><br>zprdaresw   n/a      4.77%        G    6249M       4.77%  |    n/a      30.21%       18G <br>

</div>
<div> </div>
<div>zprdaresweb1 the name of the last zone that is not alarmed is zprdaresweb1 and only is showing zprdaresw and it is not showing the MEMCAP, any idea</div>
<div> </div>
<div>Regards</div><span class="HOEnZb"><font color="#888888">
<div>Roger Jerdez</div>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>
</div>