Monitor and graph the CPU's temperature of pfsense firewall

hey guys im trying to monitor and graph the temperature for my pfsense. but seems like im not ablte to get the value , or interpret it in an adequate manner. can someone help??

running the following command :
php discovery.php -h pf1 -d -v -m applications i get :

Applications: SNMP[’/usr/bin/snmpbulkwalk’ ‘-v3’ ‘-l’ ‘authPriv’ ‘-n’ “” ‘-a’ ‘SHA’ ‘-A’ ‘’ ‘-u’ ‘manager’ ‘-x’ ‘AES’ ‘-X’ '**’ ‘-OQUs’ ‘-m’ ‘NET-SNMP-EXTEND-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/pfsense’ ‘-t’ ‘5’ ‘-r’ ‘10’ ‘udp:pf1:161’ ‘nsExtendStatus’]
nsExtendStatus.“cpuTemp0” = active
nsExtendStatus.“cpuTemp1” = active

also running other command : php discovery.php -h pf1 -d -m sensors

Temperature: SNMP[’/usr/bin/snmpbulkwalk’ ‘-v3’ ‘-l’ ‘authPriv’ ‘-n’ “” ‘-a’ ‘SHA’ ‘-A’ ‘PASSWORD’ ‘-u’ ‘USER’ ‘-x’ ‘AES’ ‘-X’ ‘PASSWORD’ ‘-Osqn’ ‘-m’ ‘LM-SENSORS-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/pfsense’ ‘-t’ ‘5’ ‘-r’ ‘10’ ‘udp:HOSTNAME:161’ ‘lmTempSensorsDevice’]
..4.1.2.1.2 No Such Object available on this agent at this OID

Invalid snmp_walk() data = .1.3.6.1.4.1.2021.13.16.2.1.2 No Such Object available on this agent at this OID

$ php validate.php

Component Version
LibreNMS 22.12.0-6-gcf3f69e (2023-01-02T14:47:17+01:00)
DB Schema 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP 8.1.13
Python 3.9.16
Database MariaDB 10.5.16-MariaDB
RRDTool 1.7.2
SNMP 5.9.1

===========================================

[OK] Composer Version: 2.5.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok

i’ve created this small script and set it smpd.config

#!/bin/sh
/sbin/sysctl dev.cpu | /usr/bin/awk ‘/temperature/ {print $2;}’

if executed this is the result :
sh gettemps.sh

46.0C
46.0C
46.0C
46.0C

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.