Registering traphandler to snmptraps.php

Hi,

According to documentation , after I created a new handler under /opt/librenms/LibreNMS/Snmptrap/Handlers it says:

Register the mapping in the config/snmptraps.php

But the beginning of the file snmptraps.php it says:

!!! DO NOT EDIT THIS FILE !!!
You can change settings by setting them in the environment or .env
If there is something you need to change, but is not available as an environment setting,
request an environment variable to be created upstream or send a pull request.

So what’s is true? The handle I created works when I added it to the file.

Br,
Mattias

Its the correct file, but because changing those files will stop the auto updater from working, that’s why it says “send a pull request”.

Thanks for confirming that’s the correct file.
I understand the issue that auto update. But is there another solution to this?
Don’t understand request an environment variable to be created upstream

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