<!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.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=978085919-20062005><FONT face=Arial
color=#0000ff 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 dir=ltr align=left><SPAN class=978085919-20062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=978085919-20062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=978085919-20062005><FONT face=Arial
color=#0000ff size=2>Jon</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> cialug-bounces@cialug.org
[mailto:cialug-bounces@cialug.org] <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 & lmsensors, oh
my!<BR></FONT><BR></DIV>
<DIV></DIV>This value is defined in the MIB object. 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> <<A href="mailto:jcbailey@code0.net">jcbailey@code0.net</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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">jcbailey@code0.net</A><BR>(515) 957-0579
<BR><BR>_______________________________________________<BR>Cialug mailing
list<BR><A href="mailto:Cialug@cialug.org">Cialug@cialug.org</A><BR><A
href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug
</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>