<?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[How to discover SNMP OID information for Home Assistant]]></title><description><![CDATA[<p dir="auto">Is their any way to obtain or discover PfSense OID's for things like:</p>
<p dir="auto">cpuLoad<br />
users<br />
processes<br />
disk-size<br />
disk-usage</p>
<p dir="auto">Or any others that are useful or worth monitoring and displaying in Home Assistant setup?</p>
<p dir="auto">I've followed the Home Assistant notes and have entered some code like it suggested to add in to the /config/configuration.yaml file on my Home Assistant server. (code is below).</p>
<p dir="auto">I did that and it appears to at the very least now detected or formed some form of communication between Home Assistant and Pfsense, which is cool:</p>
<p dir="auto"><em><strong>The code below was what I entered.</strong></em></p>
<pre><code># Example configuration.yaml entry for SNMP version 1 or 2c
device_tracker:
  - platform: snmp
    host: 192.168.1.1
    community: public
    baseoid: 1.3.6.1.2.1.4.22.1.2
</code></pre>
<p dir="auto">So far all that basically pulls in though is my network device status, showing whether it detects my mac addresses online or offline status.</p>
<p dir="auto">I'm now trying to work out how to pull in the other information like:</p>
<p dir="auto">cpuLoad<br />
users<br />
processes<br />
disk-size<br />
disk-usage</p>
<p dir="auto">But to do that I need to discover all the OID's used I guess.  So my primary question is, is their any commands i can run in pfsense to obtain OID details or are their any websites i can visit to establish them?</p>
]]></description><link>https://forum.netgate.com/topic/173942/how-to-discover-snmp-oid-information-for-home-assistant</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 10:37:07 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/173942.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Aug 2022 10:51:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to discover SNMP OID information for Home Assistant on Sat, 02 Nov 2024 11:29:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/souk">@<bdi>SOUK</bdi></a> Home Assistant has an active Integration for pfSense via HACS.<br />
https://github.com/travisghansen/hass-pfsense</p>
<p dir="auto">It gives CPU, Memory, Leases, Disk etc.<br />
<img src="/assets/uploads/files/1730546406567-ha_pfsense.png" alt="HA_pfsense.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What it doesn't give is in/out on an interface. I get this via snmp:</p>
<p dir="auto">in OiD<br />
1.3.6.1.2.1.2.2.1.10.6 where .6 is the interface number<br />
out OiD<br />
1.3.6.1.2.1.2.2.1.16.6 where .6 is the interface number</p>
<pre><code>sensor:
# read the Bytes in/out on an interface in an interval
  - platform: snmp
    name: asa5512x1_wan6_in
    host: 10.10.10.1
    community: dom
    baseoid: 1.3.6.1.2.1.2.2.1.10.6
    accept_errors: true
    version: 2c
    scan_interval: 20
  - platform: snmp
    name: asa5512x1_wan6_out
    host: 10.10.10.1
    community: dom
    baseoid: 1.3.6.1.2.1.2.2.1.16.6
    accept_errors: true
    version: 2c
    scan_interval: 20
# calculate the gradiant of the bandwith of the asa5512x
  - platform: derivative
    source: sensor.asa5512x1_wan6_in
    unit_time: s
    unit: B
    name: asa5512x1_wan6_in_der 
  - platform: derivative
    source: sensor.asa5512x1_wan6_out
    unit_time: s
    unit: B
    name: asa5512x1_wan6_out_der 
# calculate MBps and MiB between intervals of the asa5512x
  - platform: template
    sensors:
      asa5512x1_wan6_in_mbps:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_in_der')|float*8/1000000)|round(2) }}"
        unit_of_measurement: 'Mbps'
        friendly_name: Internet in Mbps
      asa5512x1_wan6_out_mbps:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_out_der')|float*8/1000000)|round(2) }}"
        unit_of_measurement: 'Mbps'
        friendly_name: Internet out Mbps
      asa5512x1_wan6_in_mib:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_in')|float/1000000)|round(2) }}"
        unit_of_measurement: 'MiB'
        friendly_name: Internet in MiB
      asa5512x1_wan6_out_mib:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_out')|float/1000000)|round(2) }}"
        unit_of_measurement: 'MiB'
        friendly_name: Internet out MiB
      asa5512x1_wan6_in_gib:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_in')|float/1000000000)|round(2) }}"
        unit_of_measurement: 'GiB'
        friendly_name: Internet in GiB
      asa5512x1_wan6_out_gib:
        value_template:  "{{ (states('sensor.asa5512x1_wan6_out')|float/1000000000)|round(2) }}"
        unit_of_measurement: 'GiB'
        friendly_name: Internet out GiB
</code></pre>
<p dir="auto">And for the totals (day/month):</p>
<pre><code>utility_meter:
# asa5512x1 wan usage
  asa5512x1_wan6_in_gib_monthly:
    source: sensor.asa5512x1_wan6_in_gib
    cycle: monthly
    name: Internet in monthly
  asa5512x1_wan6_in_gib_daily:
    source: sensor.asa5512x1_wan6_in_gib
    cycle: daily
    name: Internet in daily
  asa5512x1_wan6_out_gib_monthly:
    source: sensor.asa5512x1_wan6_out_gib
    cycle: monthly
    name: Internet out monthly
  asa5512x1_wan6_out_gib_daily:
    source: sensor.asa5512x1_wan6_out_gib
    cycle: daily
    name: Internet out daily
</code></pre>
]]></description><link>https://forum.netgate.com/post/1189922</link><guid isPermaLink="true">https://forum.netgate.com/post/1189922</guid><dc:creator><![CDATA[disi1]]></dc:creator><pubDate>Sat, 02 Nov 2024 11:29:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to discover SNMP OID information for Home Assistant on Sat, 06 Aug 2022 11:06:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/souk">@<bdi>souk</bdi></a> said in <a href="/post/1055729">How to discover SNMP OID information for Home Assistant</a>:</p>
<blockquote>
<p dir="auto">is their any commands i can run in pfsense to obtain OID details</p>
</blockquote>
<p dir="auto">You could just do a snmpwalk this would list out everything..</p>
<p dir="auto">This might be helpful<br />
<a href="https://www.youtube.com/watch?v=CKPbIeiJ2AQ" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=CKPbIeiJ2AQ</a><br />
Monitoring pfSense 2.4 with SNMP</p>
]]></description><link>https://forum.netgate.com/post/1055731</link><guid isPermaLink="true">https://forum.netgate.com/post/1055731</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Sat, 06 Aug 2022 11:06:08 GMT</pubDate></item></channel></rss>