I am working on snmptrap handling, and I found the following issue:
If I add the new handled trap in /opt/librenms/config/snmptraps.php, nothing happens. Seems that the file is not at all read. And if I grep on snmptraps.php, it is clearly not called manually (could be some kind of autoloader).
If I manually edit /opt/librenms/bootstrap/cache/config.php, everything works perfectly. So my class definition for trap handling is probably good.
And if I delete /opt/librenms/bootstrap/cache/config.php, the file is not recreated and all is working perfectly good.
Does somebody have a tip on why config/snmptraps.php is not read at all in my env when cache file is there? Maybe @TheGreatDoc ?
Any tips on how to force refresh the cache file ?