<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 12 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I recently got some new terminal servers from Tripplite, and I want to monitor them. Since I can’t really build the client on it, I thought I would use the xymon-rclient.sh script from Jeremy Laidman. It seems to work pretty well, more
 or less it ssh’s to the client in question, transfers over the proper xymonclient script, and populates the results.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The script runs from tasks.cfg. The tripplite is some form of minimal linux, so I copied xymonclient-linux.sh to xymonclient-tripplite.sh, and started editing. This didn’t work. Rclient happily ran the script and gave good output I can
 see from debugging. It seems that xymon ignores it, I’m guessing because it doesn’t recognize ‘tripplite’ as a valid os type. Is there a way to add ‘tripplite’ as an os type? Would that be client-local.cfg?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So instead, I modified xymonclient-linux.sh and have it run. The tripplite doesn’t have uptime, so I get that from /proc/uptime and /proc/loadaverage and do a bunch of manipulations with dc. Also, top won’t run without a terminal, and you
 can’t set a terminal, so the ‘cpu’ output is a bit sparse.  Ps doesn’t have any options, and says COMMAND instead of CMD, so I fix that. Also, df needed some frobbing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The last thing really, is vmstat, it doesn’t have one. So I was thinking again to using /proc/vmstat, and manipulate that, but I’m not really sure how to start there, and there isn’t a whole lot in /proc/vmstat. Any ideas there?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">nr_free_pages 2651<o:p></o:p></p>
<p class="MsoNormal">nr_inactive_anon 0<o:p></o:p></p>
<p class="MsoNormal">nr_active_anon 1573<o:p></o:p></p>
<p class="MsoNormal">nr_inactive_file 3249<o:p></o:p></p>
<p class="MsoNormal">nr_active_file 3114<o:p></o:p></p>
<p class="MsoNormal">nr_anon_pages 1535<o:p></o:p></p>
<p class="MsoNormal">nr_mapped 1051<o:p></o:p></p>
<p class="MsoNormal">nr_file_pages 6407<o:p></o:p></p>
<p class="MsoNormal">nr_dirty 0<o:p></o:p></p>
<p class="MsoNormal">nr_writeback 0<o:p></o:p></p>
<p class="MsoNormal">nr_slab_reclaimable 1334<o:p></o:p></p>
<p class="MsoNormal">nr_slab_unreclaimable 699<o:p></o:p></p>
<p class="MsoNormal">nr_page_table_pages 96<o:p></o:p></p>
<p class="MsoNormal">nr_unstable 0<o:p></o:p></p>
<p class="MsoNormal">nr_bounce 0<o:p></o:p></p>
<p class="MsoNormal">nr_vmscan_write 0<o:p></o:p></p>
<p class="MsoNormal">nr_writeback_temp 0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anybody use rclient.sh and/or have any advice?  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<br>
Paul.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif";color:green">Paul Root<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Senior Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">CenturyLink Network Reliability Operations Center<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">600 Stinson Blvd, N.E.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Flr 2N<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Minneapolis, MN 55413<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Direct: (651)312-5207<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Paul.Root@centurylink.com<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>