<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=936385422-01082007> <FONT face="Times New Roman" color=#000000 
size=3>Ralph Mitchell,</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT><SPAN class=936385422-01082007>At client side I 
installed hobbit side, At servers side already so many client are connected, 
when I am trying to such for this client at hobbit server web page , host not 
found, could u please tell me am I need to update any file about new Linux 
client.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT><SPAN 
class=936385422-01082007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=936385422-01082007>Thanks </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=936385422-01082007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=936385422-01082007>Uma Maheswar</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Charles Jones [mailto:jonescr@cisco.com] 
<BR><B>Sent:</B> Wednesday, August 01, 2007 6:34 PM<BR><B>To:</B> 
hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] temperature script compatible 
with Hobbit<BR></FONT><BR></DIV>
<DIV></DIV>I figured I would share the script and setup that I am now 
using,  Note that the script is for use with lm_sensors on linux machines, 
and tailored for my particular setup (different servers have different sensors 
and thus the temperature parsing section may have to be changed).<BR><BR>Here is 
the script itself:<BR><TT>#!/bin/sh<BR><BR># THRESHOLD VALUES FOR TEMPERATURE 
<BR>YTMP=72<BR>RTMP=80<BR>#<BR>SENSORS="/usr/bin/sensors 
-f"<BR>STMP=${BBTMP}/SENSE.$$<BR>COLOR=green<BR>MSG=default<BR>#<BR>${SENSORS} 
> ${STMP}<BR># PARSE TEMPERATURE INFORMATION.<BR>TMP=`${GREP} -i temp 
${STMP}|cut -d"(" -f1|cut -d"�" -f1|cut -d"+" -f2|cut -d"." 
-f1`<BR>    if [ ${TMP} -lt ${YTMP} ];<BR>    
then<BR>        
COLOR=green<BR>        MSG="The Temperature 
is currently ${TMP}F, which does not exceed the Warning level 
(${YTMP}F)"<BR>    fi<BR>    if [ ${TMP} -gt 
${YTMP} ] && [ ${TMP} -lt ${RTMP} ];<BR>    
then<BR>        
COLOR=yellow<BR>        MSG="The Temperature 
is currently ${TMP}F, which is exceeds the  Warning level 
(${YTMP}F)"<BR>    fi<BR>    if [ ${TMP} -gt 
${RTMP} ]; <BR>    
then<BR>        
COLOR=red<BR>        MSG="The Temperature is 
currently ${TMP}F, which exceeds the Panic level 
(${RTMP}F!)"<BR>    fi<BR>rm ${STMP}<BR><BR>$BB $BBDISP "status 
$MACHINE.temp $COLOR `date` <BR>$MSG<BR>temp : $TMP<BR>"</TT><BR><BR>The script 
is launched via this addition to clientlaunch.cfg on the remote 
machine:<BR><TT>[temp]<BR>        ENVFILE 
$HOBBITCLIENTHOME/etc/hobbitclient.cfg<BR>        
CMD $HOBBITCLIENTHOME/ext/temp.sh<BR>        
INTERVAL 5m</TT><BR><BR>On the server, here is the addition to 
hobbitgraph.cfg:<BR><TT>[temp]<BR>        
TITLE Temperature<BR>        YAXIS Degrees 
Farenheit<BR>        
DEF:t=temp.rrd:temp:AVERAGE<BR>        
LINE2:t#@COLOR@:Ambient Temp<BR>        
GPRINT:t:LAST: \: %5.1lf (cur)<BR>        
GPRINT:t:MAX: \: %5.1lf (max)<BR>        
GPRINT:t:MIN: \: %5.1lf (min)<BR>        
GPRINT:t:AVERAGE: \: %5.1lf (avg)\n</TT><BR><BR>Let's not forget the additions 
to 
hobbitserver.cfg:<BR><TT>TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbit,hobbitd,files,procs=processes,ports,clock,lines<B>,temp=ncv</B>"<BR>GRAPHS="la,disk,inode,qtree,files,processes,memory,users,vmstat,iostat,tcp.http,tcp,ncv,netstat,ifstat,mrtg::1,ports,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbit,hobbitd,clock,lines<B>,temp</B>"<BR><B>NCV_temp="temp:GAUGE"</B></TT><BR><BR>I 
also put a custom rules in hobbit-alerts.cfg:<BR><TT># Temp 
alerts<BR>HOST=myhost.mydomain.com 
SERVICE=temp<BR>        MAIL $SYSADMINS 
color=yellow REPEAT=60 RECOVERED 
NOTICE<BR>        MAIL 
$SYSADMINS,$SYSADMINS-PAGERS color=red RECOVERED 
NOTICE<BR>        MAIL $BOSS color=red 
DURATION>60 RECOVERED format=sms<BR></TT><BR>-Charles<BR><BR><BR><BR>Ralph 
Mitchell wrote: 
<BLOCKQUOTE cite=mid:997a524e0707252120o5ef57cbdhb369288bc6640958@mail.gmail.com 
type="cite">On 7/25/07, Charles Jones <A class=moz-txt-link-rfc2396E 
  href="mailto:jonescr@cisco.com"><jonescr@cisco.com></A> wrote: <BR>
  <BLOCKQUOTE type="cite">I'm looking for a temperature script suitable for 
    linux machines (using <BR>lm_sensors). I found a couple on deadcat but none 
    of them seemed to work <BR>very well.  I hacked on one and got basic 
    temperature monitoring <BR>working, but no graphs because the output is not 
    in whatever format <BR>Hobbits do_temp rrd module is expecting. <BR><BR>Does 
    anyone have an lm_sensors script that both alerts on temp <BR>thresholds and 
    is compatible with Hobbits rrd graphing? I tried seaching <BR>TheShire with 
    no luck. <BR></BLOCKQUOTE><BR><BR>Found this in old email (Dec 06): <BR>Jerry 
  Yu <A class=moz-txt-link-rfc2396E 
  href="mailto:jjj863@gmail.com"><jjj863@gmail.com></A>     
  <BR>never mind, I found the answers in the source code, 
  <BR>rrd/do_temperature.c. [[ All hail goes to Open Source & Henrik! ]] 
  <BR>1. a lump-all status command will do. Format of the data portion is 
  <BR>somewhat restrictive '&green BMCambient 17 62\n&yellow 
  BMCriserCard 32 <BR>93'. It'd be nice to have such format documented elsewhere 
  other than <BR>the source code. <BR>2. if  'temperature' is used as 'test 
  name', nothing needs to be done. <BR>3. the check can be done locally on the 
  client and the overall $status <BR>is reported by 'status server1.temperature 
  $status'. <BR><BR>So, if the script you hacked up can be persuaded to send a 
  status <BR>message that looks something like: <BR><BR>    $BB 
  $BBDISP status "server,domain,com.temperature `date` 
  <BR>       &<color>  
  <variable_name> <temp_in_celsius>  
  <temp_in_fahrenheit>" <BR><BR>you could get graphs.  I'm away from 
  my work machines right now, so <BR>the above may be a little lacking. 
  <BR><BR>Alternatively, try the NCV option.  Once a status message is set 
  up to <BR>be pushed through the ncv module, all you need in the status message 
  <BR>is: <BR><BR>    <variable name> : <value> 
  <BR><BR>Anything on the line before the colon becomes the variable name, 
  <BR>anything after the colon is the value that gets stored. <BR><BR>Ralph 
  Mitchell <BR><BR>To unsubscribe from the hobbit list, send an e-mail to <BR><A 
  class=moz-txt-link-abbreviated 
  href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</A> 
<BR></BLOCKQUOTE><BR></BODY></HTML>