Hi All,
first at all this is my first contribution on this list, so please be gentle to me if I did anything wrong.
As you might have read in the mail subject, I created support for the knot-resolver. IPFire changed from Unbound to Knot so this support is necessary for us to keep track of the performance of the DNS resolver.
I am unsure in which way I have to provides files/patches to get them integrated into Observium, so I attached all necessary files to this email. I hope I havn't missed any.
If unclear, I added a comment section on the beginning of a file that points to which location/path the file belongs.
To be clear, I did the most work by myself, but on some lines, especially the collection of data from "kresctl metrics", I was assisted by claude. As Unbound was the precessor of knot, I have oriented myself on the support of Unbound and it's file structure. The script belongs to kresctl which is available since knot 6.0.0, the 5.x version doesn't have it.
For the following file only one line has to be added, so I havn't attached it:
- includes/definitions/apps.inc.php
''' $config['app']['knot_resolver']['top'] = [ 'queries', 'answers', 'cache', 'latency' ]; '''
If this is correct for knot-resolver, I have also already created support for Suricata, as Suricata is also a very important in IPFire and network surveillance.
Let me know if I you need anything else!
I would be thankful if this could please be merged in upstream!
Best,
Peer