<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SNMP - LibreNMS Monitor Temperature Option (NET-SNMP)]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">Just thought I would give back to the community to monitor your pfSense for temperature through SNMP. Find this useful please leave a comment.</p>
<p dir="auto">Prerequisites:<br />
NET-SNMP package from pfSense<br />
LibreNMS<br />
SSH access to pfSense with basic VI editing skills<br />
Linux skills</p>
<p dir="auto">Log into pfSense to Shell (8):<br />
Create a file called gettemps.sh through VI:<br />
vi /root/gettemps.sh</p>
<p dir="auto">File content:<br />
#!/bin/sh<br />
/sbin/sysctl dev.cpu | /usr/bin/awk '/temperature/ {print $2;}' | sed 's/[F]//g'</p>
<p dir="auto">Save and quit the file.</p>
<p dir="auto">Make it executable:<br />
chmod the file to make it executable<br />
chmod +x /root/gettemps.sh</p>
<p dir="auto">Go to pfSense &gt; Services &gt; NET-SNMP &gt; Host Information<br />
Add into the Extended Commands<br />
Name: gettemps<br />
Program: /root/gettemps.sh<br />
Save<br />
(note: the Name in the screenshot has been chopped off - it is gettemps)</p>
<p dir="auto">Go to pfSense SSH<br />
If running SNMP v3 use (replace variables):<br />
snmpget -v 3 -l authPriv -a SHA -A [password] -u snmp -x AES -X [password] [fw-hostip] nsExtendOutputFull."gettemps"</p>
<p dir="auto">If running SNMP v2c use (replace variables):<br />
snmpwalk -c public -v 2c [fw-hostip] nsExtendOutLine."gettemps"<br />
Output should look like this below:<br />
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."gettemps" = STRING:<br />
44.0C<br />
48.0C<br />
44.0C<br />
47.0C</p>
<p dir="auto">Take the MIB after the two colons(::) nsExtendOutputFull."gettemps" that you get (my example is above) and add it to the LibreNMS Custom OID field. Set limits etc. Save it off.</p>
<p dir="auto">Wait about 15 minutes and there will be a chart drawn up.</p>
<p dir="auto">To view the data now go to:<br />
You can now monitor your temperature of the pfSense through LibreNMS.</p>
<p dir="auto">Any issues let me know. Thanks.<br />
M.</p>
<p dir="auto">References:<br />
https://forum.netgate.com/topic/107545/reading-out-the-temperature/4<br />
https://www.reddit.com/r/PFSENSE/comments/cnjddc/howto_retrieve_cpu_temp_and_other_data_over_snmp/</p>
]]></description><link>https://forum.netgate.com/topic/183844/snmp-librenms-monitor-temperature-option-net-snmp</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 15:08:13 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/183844.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Nov 2023 04:54:21 GMT</pubDate><ttl>60</ttl></channel></rss>