You are going to want to just recompile snmpd.  I've never tried
rewritting mibs, but in my opinion, someone else smarter than me wrote
them to begin with and I probably shouldn't go messing with them.<br><br><div><span class="gmail_quote">On 6/20/05, <b class="gmail_sendername">Jonathan Bailey</b> &lt;<a href="mailto:jcbailey@code0.net">jcbailey@code0.net
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">I'm using the value for doing graphing with Cacti... Is 
there any way to edit the MIB object, or is it just worth it to go compile SNMPd 
with lmsensors support?</font></span></div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">Jon</font></span></div><br>
<div align="left" dir="ltr" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:cialug-bounces@cialug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cialug-bounces@cialug.org</a> 
[mailto:<a href="mailto:cialug-bounces@cialug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cialug-bounces@cialug.org</a>] <b>On Behalf Of </b>Jerry 
Weida<br><b>Sent:</b> Monday, June 20, 2005 2:43 PM<br><b>To:</b> Central Iowa 
Linux Users Group<br><b>Subject:</b> Re: [Cialug] SNMP &amp; lmsensors, oh 
my!<br></font><br></div><div><span class="e" id="q_1049b5614d3772bd_1">
<div></div>This value is defined in the MIB object.&nbsp; You could always 
rewrite the MIB, but if you are using the value in a shell script, why not just 
force your variable to a typeset of integer?<br><br>
<div><span class="gmail_quote">On 6/20/05, <b class="gmail_sendername">Jonathan 
Bailey</b> &lt;<a href="mailto:jcbailey@code0.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jcbailey@code0.net</a>&gt; 
wrote:</span> 
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok, 
  maybe the subject was a bit strange...<br><br><br>I'm looking to integrate 
  sensors monitoring into SNMP without having to <br>recompile SNMPd. I figure 
  that using an external script might work, but the<br>results come back as NaN 
  rather than a number. When I do an snmpget, it<br>shows the data type as 
  string. Is there any way to force this to integer or 
  <br>double?<br><br><br>root@dilithium:~ # snmpget -v 1 -c public 
  localhost<br>enterprises.ucdavis.extTable.extEntry.extOutput.1<br>UCD-SNMP-MIB::extOutput.1 
  = STRING: 71.0<br><br><br><br><br>root@dilithium:~ # cat cputemp.sh <br>#! 
  /bin/sh<br>sensors | awk '/CPU/ {print 
  substr($3,2,length($2)-1)}'<br><br><br><br><br>--------------------<br>Jonathan 
  C Bailey<br>Code0 Networks<br><a href="mailto:jcbailey@code0.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jcbailey@code0.net</a><br>(515) 957-0579 
  <br><br>_______________________________________________<br>Cialug mailing 
  list<br><a href="mailto:Cialug@cialug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://cialug.org/mailman/listinfo/cialug 
  </a><br></blockquote></div><br>

</span></div><br>_______________________________________________<br>Cialug mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://cialug.org/mailman/listinfo/cialug" target="_blank">
http://cialug.org/mailman/listinfo/cialug</a><br><br><br></blockquote></div><br>