Hello @Giacomo Maisano ,
welcome to this moderated Azure community forum.
As mentioned in the comments, you need to write some logic to run on the local network, reading the SNMP messages and turning them into Azure IoT Hub messages.
This can be done with a simple application programmed with eg. Python or C#.
I'm not sure what the frequency of the output is but if the messages are quite small and a slow delay is not a problem, it could be interesting to batch the messages and send the messages in one go.
A more enterprise like solution is making use of Azure IoT Edge where the logic is encapsulated in Docker containers that can be updated from the cloud. It also offers local persisted storage of messages in case the internet connection drops.
I recommend starting programming with the examples seen above regarding the IoT Hub connectivity. Regarding SNMP, chose a solid Nuget package or library to cover that complexity.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.