[Cialug] SNMP & lmsensors, oh my!
Jonathan Bailey
jcbailey at code0.net
Mon Jun 20 14:59:56 CDT 2005
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?
Jon
_____
From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On Behalf
Of Jerry Weida
Sent: Monday, June 20, 2005 2:43 PM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] SNMP & lmsensors, oh my!
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?
On 6/20/05, Jonathan Bailey <jcbailey at code0.net> wrote:
Ok, maybe the subject was a bit strange...
I'm looking to integrate sensors monitoring into SNMP without having to
recompile SNMPd. I figure that using an external script might work, but the
results come back as NaN rather than a number. When I do an snmpget, it
shows the data type as string. Is there any way to force this to integer or
double?
root at dilithium:~ # snmpget -v 1 -c public localhost
enterprises.ucdavis.extTable.extEntry.extOutput.1
UCD-SNMP-MIB::extOutput.1 = STRING: 71.0
root at dilithium:~ # cat cputemp.sh
#! /bin/sh
sensors | awk '/CPU/ {print substr($3,2,length($2)-1)}'
--------------------
Jonathan C Bailey
Code0 Networks
jcbailey at code0.net
(515) 957-0579
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
<http://cialug.org/mailman/listinfo/cialug>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20050620/99e33e8b/attachment.html
More information about the Cialug
mailing list