<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>If the test turns red, it stops logging 
data</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>even with no status message.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>Henrik, if I have my own test using 
NCV,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>and the test goes red, is there a 
reason</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>it would stop putting data current NCV 
data</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>in the RRD database?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>Any help would be appreciated, or is there 
a</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>way that hobbit can alert on cpu usage 
instead</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>of cpu load (or both).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=783224620-10072008><FONT face=Arial 
color=#0000ff size=2>Thanks....James</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> James Wade 
[mailto:jkwade@futurefrontiers.com] <BR><B>Sent:</B> Thursday, July 10, 2008 
10:45 AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Help writing 
test -- sar<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>Hello 
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>I've written my own 
"sar" test to put sar cpu data</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>into the database. 
It's been working fine now for a while.<BR>I don't do any alerting, it's just 
graphing sar data.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>However, a recent 
problem came up. Hobbit uses cpu load</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>for alerting on high 
cpu load. However, using cpu load doesn't</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>take into account 
i/o wait problems. The cpu may have a low</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>load on it, but have 
excessive i/o wait, so as an example, a</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>24 cpu box, with a 
load of 12 on it may actually be at 99% utilization.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>I've seen this on 
database servers where someone writes a</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>bad sql query to 
access the database, or an index file isn't</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>there. So I want to 
alert on cpu utilization in addition to cpu load.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>I want to take my 
sar test, output is below, that I've written and</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>have it check for 
idle time less than 5% for alerting. I've already</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>modified my test for 
this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>However, when I was 
orignally writing the sar test to put into the</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>rrd database, if I 
included any kind of status message, it would not put</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>data into the 
database.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>What's the format so 
that it keeps putting data into the database</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>even if I have a 
status message? or am I wrong on this?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008>Example:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>Here's the output of 
my sar test now:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>Thu Jul 10 
10:35:20  CDT 2008<BR>usr :  3<BR>sys : 1<BR>wio : 1<BR>idle :  
95</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=301163215-10072008><FONT face=Arial size=2>**** 
GRAPH *****</FONT><BR><BR><FONT face=Arial size=2>What I want is something like 
this if idle is less than 5%:<BR><BR>Thu Jul 10 10:40:30 CDT 2008<BR>* CPU usage 
is above 95%<BR>user : 40<BR>sys :  10<BR>wio :   47<BR>idle : 
3</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=301163215-10072008></SPAN><FONT face=Arial size=2>*<SPAN 
class=301163215-10072008>** GRAPH ****</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=301163215-10072008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=301163215-10072008>So, if I add to the 
ouput the CPU usage is above 95%<BR>will I continue to write to the database the 
stats?<BR>Last time I tried adding status messages like above,<BR>it didn't seem 
to put anything in the database.</SPAN></FONT><FONT face=Arial size=2><SPAN 
class=301163215-10072008><BR><BR>THanks....James</SPAN></DIV>
<DIV><BR></DIV></FONT></SPAN></FONT>
<DIV>
<TABLE align=center summary="Detail Status" border=0>
  <TBODY>
  <TR>
    <TD>
      <H3> </H3><PRE>    
</PRE></TD></TR></TBODY></TABLE></DIV></BODY></HTML>