<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<title>zonestat.sh</title>
<style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"MS Sans Serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Dave,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I haven’t taken a close look at zonestat.sh so don’t know much about it, but if you want graphs then I think you have to put a bit more work in.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I am still on 4.2.0 so the configuration is slightly different but take a look at this page, which I have used on many occasions when creating my own graphs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://www.xymon.com/xymon/help/howtograph.html">http://www.xymon.com/xymon/help/howtograph.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">|\/|<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Dave.Munro@rwe.com<br>
<b>Sent:</b> 13 December 2011 11:19<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] zonestat.sh<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi Folks,</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I'm running Xymon 4.3.3 on Solaris 10 and have now rolled it out on all the servers/LDOMs/zones that I have and all the basics are working well.</span><o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">For the past hour or so I have been trying to get zonestat working;</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">On the Client I have put the zonestat.sh script in /opt/xymon/client/ext and have modified the clientlaunch.cfg with</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:Courier"># Zone Monitoring Script.</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:Courier">[zonestat]</span> <br>
<span style="font-size:10.0pt;font-family:Courier">        ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        CMD $XYMONCLIENTHOME/ext/zonestat.sh</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        LOGFILE $XYMONCLIENTLOGS/xymonclient.log</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        INTERVAL 5m</span> <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">On the server side I have modified the /opt/xymon/server/etc/tasks.cfg with</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:Courier">[zonestat]</span> <br>
<span style="font-size:10.0pt;font-family:Courier">        ENVFILE /opt/xymon/client/etc/xymonclient.cfg</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        NEEDS xymond</span> <br>
<span style="font-size:10.0pt;font-family:Courier">        CMD /opt/xymon/client/ext/zonestat.sh</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        LOGFILE $XYMONSERVERLOGS/xymonclient.log</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">        INTERVAL 5m</span> <o:p>
</o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">In the /opt/xymon/client/tmp I see the file being created with the prstat information in it.</span>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:10.0pt;font-family:Courier">/opt/xymon/client/etc</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-bash-3.00$ cd ../tmp</span> <br>
<span style="font-size:10.0pt;font-family:Courier">-bash-3.00$ ls -l</span> <br>
<span style="font-size:10.0pt;font-family:Courier">total 576</span> <br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon       1082 Dec 13 12:02 hobbit_zonestat.su01sa000.26814</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         71 Dec 13 12:02 logfetch.su01sa000.cfg</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         60 Dec 13 12:02 logfetch.su01sa000.status</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         29 Nov 28 20:37 logfetch.su12sl001.cfg</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         53 Nov 28 20:37 logfetch.su12sl001.status</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon     172781 Dec 13 12:02 msg.su01sa000.txt</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         35 Dec 13 12:02 xymon_iostatcpu.su01sa000.26819</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         36 Nov 28 20:37 xymon_iostatcpu.su12sl001.21068</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon         36 Nov 28 20:37 xymon_iostatcpu.su12sl001.21124</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon      14979 Dec 13 12:02 xymon_iostatdisk.su01sa000.26819</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon        187 Nov 28 20:37 xymon_iostatdisk.su12sl001.21068</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon        187 Nov 28 20:37 xymon_iostatdisk.su12sl001.21124</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon        233 Dec 13 12:02 xymon_vmstat.su01sa000.26819</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon        234 Nov 28 20:37 xymon_vmstat.su12sl001.21068</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-rw-r--r--   1 xymon    xymon        234 Nov 28 20:37 xymon_vmstat.su12sl001.21124</span>
<br>
<span style="font-size:10.0pt;font-family:Courier">-bash-3.00$</span> <o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I see the hobbit_zonestat file there but have no graph data visible, what have I missed, ihave modified the /opt/xymon/server/etc/hosts.cfg file with</span><o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:Courier">10.182.46.10    su01sa000 # ssh TRENDS:*,vmstat:vmstat3|vmstat6|vmstat7|vmstat8|vmstat0,zonestat:zonestatcpu|zonestatmem|zonestatnproc|zonestatsize|zonersssize</span><o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I know I've probably done some thing dumb - just not sure what!</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Regards</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Dave Munro</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">RWE Systems, Rainton House.</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Midrange Systems Admin</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Tel 01661814210</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Mobile 07788710306</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Email <a href="mailto:dave.munro@rwe.com">
dave.munro@rwe.com</a></span> <br>
<b><i><span style="font-family:"Arial","sans-serif";color:blue">RWE IT International Solaris Team.</span></i></b>
<o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"MS Sans Serif","serif"">****************************************************************************
</span><o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"MS Sans Serif","serif"">The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an
 intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact
 the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to
 scan attachments (if any). </span><o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"MS Sans Serif","serif""> </span><o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"MS Sans Serif","serif"">*****************************************************************************
</span><o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"MS Sans Serif","serif""> </span><o:p></o:p></p>
</div>
[Colt Disclaimer]
The message is intended for the named addressee only and may not be disclosed
to or used by anyone else, nor may it be copied in any way. The contents of
this message and its attachments are confidential and may also be subject to
legal privilege. If you are not the named addressee and/or have received this
message in error, please advise us by e-mailing abuse@colt.net and delete the
message and any attachments without retaining any copies. Internet
communications are not secure and Colt does not accept responsibility for this
message, its contents nor responsibility for any viruses. No contracts can be
created or varied on behalf of Colt Technology Services, its subsidiaries,
group companies or affiliates ("Colt") and any other party by email
communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate
potential viruses and unsolicited promotional emails. For more information
refer to www.colt.net or contact us on +44(0)20 7390 3900
</body>
</html>