Adapts to Marvell AQC113C-B1-C 10GbE network controller.

Started by jacker, July 25, 2025, 01:51:31 AM

Previous topic - Next topic
Quote from: Seimus on Today at 01:03:00 PMWould it be possible to add this function to the driver?

These NIC have DOM, they can measure Temps directly on them.
Linux drivers have these temp measurements.

Thanks for testing it!

I hope I understood your question correctly.
Temperature sensor measurements are exposed through sysctl,
I haven't figured out how these can be wired to OPNsense dashboard though.

Quoteroot@usb:~ # sysctl -a | grep aq | grep phy_temperature
dev.aq.1.phy_temperature: 46
dev.aq.0.phy_temperature: 42

Quote from: albb0920 on Today at 03:33:44 PMI hope I understood your question correctly.
Temperature sensor measurements are exposed through sysctl,
I haven't figured out how these can be wired to OPNsense dashboard though.

Quoteroot@usb:~ # sysctl -a | grep aq | grep phy_temperature
dev.aq.1.phy_temperature: 46
dev.aq.0.phy_temperature: 42

Oh shoot! I totally forgot to check via sysctl. So its already there and working! Awesome <3

To show it on the GUI there are several ways but both of them need manual intervention.
1. Widget - but this would have to be created
2. RRD graphs, you can add custom graphs but you will need to manually configure them

Have a look at already created ones for RRD
https://github.com/opnsense/core/blob/master/src/opnsense/scripts/health/library/OPNsense/RRD/Types/Temperature.php
https://github.com/opnsense/core/blob/master/src/opnsense/scripts/health/library/OPNsense/RRD/Stats/Temperature.php

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD