<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Net-snmp</id>
	<title>Net-snmp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hurlster.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Net-snmp"/>
	<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Net-snmp&amp;action=history"/>
	<updated>2026-08-26T22:48:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://hurlster.com/wiki/index.php?title=Net-snmp&amp;diff=2387&amp;oldid=prev</id>
		<title>Gqwill69: /* Sensors */</title>
		<link rel="alternate" type="text/html" href="https://hurlster.com/wiki/index.php?title=Net-snmp&amp;diff=2387&amp;oldid=prev"/>
		<updated>2011-06-06T17:53:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sensors&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;How to compile net-snmp on Ubuntu Lucid with diskio and lmsensors&lt;br /&gt;
&lt;br /&gt;
== Install Steps ==&lt;br /&gt;
=== Configure ===&lt;br /&gt;
 ./configure --enable-ucd-snmp-compatibility --with-mib-modules=&amp;quot;ucd-snmp/diskio &amp;#039;&amp;#039;ucd-snmp/lmSensors&amp;#039;&amp;#039;&amp;quot; \&lt;br /&gt;
 --with-default-snmp-version=2 --with-sys-location=Unknown --with-logfile=/var/log/snmpd.log&lt;br /&gt;
&lt;br /&gt;
=== Make ===&lt;br /&gt;
 make&lt;br /&gt;
=== Checkinstall ===&lt;br /&gt;
 checkinstall -D --install=no --fstrans=no&lt;br /&gt;
&lt;br /&gt;
=== Install Package ===&lt;br /&gt;
 dpkg -i net-snmp...&lt;br /&gt;
&lt;br /&gt;
== snmpd.conf ==&lt;br /&gt;
 ###########################################################################&lt;br /&gt;
 #&lt;br /&gt;
 # snmpd.conf&lt;br /&gt;
 #&lt;br /&gt;
 #   - created by the snmpconf configuration program&lt;br /&gt;
 #&lt;br /&gt;
 ###########################################################################&lt;br /&gt;
 # SECTION: Monitor Various Aspects of the Running Host&lt;br /&gt;
 #&lt;br /&gt;
 #   The following check up on various aspects of a host. &lt;br /&gt;
 &lt;br /&gt;
 # disk: Check for disk space usage of a partition.&lt;br /&gt;
 #   The agent can check the amount of available disk space, and make&lt;br /&gt;
 #   sure it is above a set limit.  &lt;br /&gt;
 #   &lt;br /&gt;
 #    disk PATH [MIN=100000]&lt;br /&gt;
 #   &lt;br /&gt;
 #    PATH:  mount path to the disk in question.&lt;br /&gt;
 #    MIN:   Disks with space below this value will have the Mib&amp;#039;s errorFlag set.&lt;br /&gt;
 #           Can be a raw integer value (units of kB) or a percentage followed by the %&lt;br /&gt;
 #           symbol.  Default value = 100000.&lt;br /&gt;
 #   &lt;br /&gt;
 #   The results are reported in the dskTable section of the UCD-SNMP-MIB tree&lt;br /&gt;
 &lt;br /&gt;
 disk  / 10000&lt;br /&gt;
 disk  /var/local/storage 10000&lt;br /&gt;
 disk /var/local/backup 10000&lt;br /&gt;
 &lt;br /&gt;
 # load: Check for unreasonable load average values.&lt;br /&gt;
 #   Watch the load average levels on the machine.&lt;br /&gt;
 #   &lt;br /&gt;
 #    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]&lt;br /&gt;
 #   &lt;br /&gt;
 #    1MAX:   If the 1 minute load average is above this limit at query&lt;br /&gt;
 #            time, the errorFlag will be set.&lt;br /&gt;
 #    5MAX:   Similar, but for 5 min average.&lt;br /&gt;
 #    15MAX:  Similar, but for 15 min average.&lt;br /&gt;
 #   &lt;br /&gt;
 #   The results are reported in the laTable section of the UCD-SNMP-MIB tree&lt;br /&gt;
 &lt;br /&gt;
 load  12 12 12&lt;br /&gt;
 &lt;br /&gt;
 ###########################################################################&lt;br /&gt;
 # SECTION: Access Control Setup&lt;br /&gt;
 #&lt;br /&gt;
 #   This section defines who is allowed to talk to your running&lt;br /&gt;
 #   snmp agent.&lt;br /&gt;
 &lt;br /&gt;
 # rocommunity: a SNMPv1/SNMPv2c read-only access community name&lt;br /&gt;
 #   arguments:  community [default|hostname|network/bits] [oid]&lt;br /&gt;
 &lt;br /&gt;
 rocommunity  AnthraX  &lt;br /&gt;
 &lt;br /&gt;
 ########################################################## #####################&lt;br /&gt;
 # Executables/scripts&lt;br /&gt;
 #&lt;br /&gt;
 # Monitoring exec scripts&lt;br /&gt;
 # mbmon -r&lt;br /&gt;
 # mbmon -f -I -c1 -T2&lt;br /&gt;
 &lt;br /&gt;
 # TEMP0 &amp;amp;&amp;amp; TEMP1&lt;br /&gt;
 exec temp0 /usr/bin/mbmon -f -I -c1 -T1&lt;br /&gt;
 exec temp1 /usr/bin/mbmon -f -I -c1 -T2 &lt;br /&gt;
 &lt;br /&gt;
 # FAN0 &amp;amp;&amp;amp; FAN1&lt;br /&gt;
 exec fan0 /usr/bin/mbmon -I -c1 -F1&lt;br /&gt;
 exec fan1 /usr/bin/mbmon -I -c1 -F2&lt;br /&gt;
&lt;br /&gt;
== Sensors ==&lt;br /&gt;
lm_sensors package &amp;lt;br &amp;gt;&lt;br /&gt;
The following is needed on IT8712 board to make &amp;quot;sensors&amp;quot; work:&amp;lt;br /&amp;gt;&lt;br /&gt;
 /etc/default/grub&lt;br /&gt;
 &lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_enforce_resources=lax&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Also need to compile custom module for IT8728F&lt;br /&gt;
1.Download kernel source&lt;br /&gt;
 $ apt-get source linux-image-2.6.38-8-generic&lt;br /&gt;
&lt;br /&gt;
2.Create test directory:&lt;br /&gt;
 $ mkdir ~/test&lt;br /&gt;
 $ cd ~/test&lt;br /&gt;
&lt;br /&gt;
3.Copy over it87.c &lt;br /&gt;
 $ cp /home/willh/linux-2.6.38/drivers/hwmon/it87.c ./&lt;br /&gt;
&lt;br /&gt;
4.Create Makefile&lt;br /&gt;
 obj-m += it87.o&lt;br /&gt;
  &lt;br /&gt;
 all:&lt;br /&gt;
 	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules&lt;br /&gt;
 &lt;br /&gt;
 clean:&lt;br /&gt;
 	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean&lt;br /&gt;
&lt;br /&gt;
5.To build kernel module enter:&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
6.(HACK)Copy new module to current kernel directory&lt;br /&gt;
 $ cd /lib/modules/2.6.38-8-generic/kernel/drivers/hwmon&lt;br /&gt;
 $ mv it87.ko it87.ko.orig&lt;br /&gt;
 $ cp ~/test/it87.ko ./&lt;br /&gt;
&lt;br /&gt;
7.Load the new module&lt;br /&gt;
 $ modprobe -v it87&lt;br /&gt;
  insmod /lib/modules/2.6.38-8-generic/kernel/drivers/hwmon/it87.ko &lt;br /&gt;
&lt;br /&gt;
8.Test it&lt;br /&gt;
&amp;lt;pre&amp;gt; $ sensors&lt;br /&gt;
acpitz-virtual-0&lt;br /&gt;
Adapter: Virtual device&lt;br /&gt;
temp1:        +37.0Â°C  (crit = +127.0Â°C)&lt;br /&gt;
&lt;br /&gt;
k10temp-pci-00c3&lt;br /&gt;
Adapter: PCI adapter&lt;br /&gt;
temp1:        +32.8Â°C  (high = +70.0Â°C)&lt;br /&gt;
&lt;br /&gt;
it8728-isa-0e80&lt;br /&gt;
Adapter: ISA adapter&lt;br /&gt;
in0:          +0.91 V  (min =  +3.00 V, max =  +1.38 V)  ALARM&lt;br /&gt;
in1:          +1.61 V  (min =  +2.22 V, max =  +2.54 V)  ALARM&lt;br /&gt;
in2:          +2.83 V  (min =  +0.95 V, max =  +2.80 V)  ALARM&lt;br /&gt;
in3:          +2.82 V  (min =  +0.05 V, max =  +2.17 V)  ALARM&lt;br /&gt;
in4:          +1.22 V  (min =  +1.52 V, max =  +1.70 V)  ALARM&lt;br /&gt;
in5:          +1.24 V  (min =  +0.00 V, max =  +1.98 V)  ALARM&lt;br /&gt;
in6:          +1.21 V  (min =  +0.65 V, max =  +0.11 V)  ALARM&lt;br /&gt;
3VSB:         +3.31 V  (min =  +2.62 V, max =  +4.90 V)&lt;br /&gt;
Vbat:         +3.41 V  &lt;br /&gt;
fan1:         670 RPM  (min =   14 RPM)  ALARM&lt;br /&gt;
fan2:           0 RPM  (min =   14 RPM)  ALARM&lt;br /&gt;
fan3:        2142 RPM  (min =   16 RPM)&lt;br /&gt;
temp1:        +37.0Â°C  (low  = +47.0Â°C, high = +127.0Â°C)  sensor = thermal diode&lt;br /&gt;
temp2:        -56.0Â°C  (low  = +34.0Â°C, high = +106.0Â°C)  sensor = thermal diode&lt;br /&gt;
temp3:        +37.0Â°C  (low  =  +6.0Â°C, high = +43.0Â°C)  sensor = thermal diode&lt;br /&gt;
cpu0_vid:    +1.550 V&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Gqwill69</name></author>
	</entry>
</feed>