OPNsense Forum

English Forums => General Discussion => Topic started by: Headless1919 on February 02, 2022, 11:31:46 AM

Title: Unbound-control and SNMP extend
Post by: Headless1919 on February 02, 2022, 11:31:46 AM
Hello team,

I have a somewhat left-field use case. I am making use of LibreNMS and their application monitoring for Unbound (https://docs.librenms.org/Extensions/Applications/#unbound) which requires unbound-control to be running as well as an SNMP extend for their script to pull the stats via SNMP.

My questions are as follows:

Everything works under normal circumstances but a reboot for whatever reason necessitates logging in and starting the process, followed by adding the extend back into the SNMP file again.
Title: Re: Unbound-control and SNMP extend
Post by: heyheyheyhey on February 11, 2022, 08:26:32 PM
Same problem.  My search brought me here.

unbound-control isnt a service to run, but is enabled with unbound configuration in opnsense.

I learned you have to specify the unbound configuration.

unbound-control -c /var/unbound/unbound.conf stats

Returns results.  Just need to figure out how to get the extend configuration to persist through a reboot in the snmp configuration.
Title: Re: Unbound-control and SNMP extend
Post by: Headless1919 on February 14, 2022, 04:57:13 PM
Thanks for your post, after some digging I agree with you. If I log in now and issue unbound-controls status, the service is not running - but my polling is still working correctly. It would seem that it is not something I manually need to start at boot to make things work.

Persistence, as you mention, is now the problem. Does anyone else have any ideas, or can we get some insight from the development team?
Title: Re: Unbound-control and SNMP extend
Post by: Headless1919 on February 28, 2022, 04:04:03 PM
Bump - still looking for an elegant solution to this. Any solution or input from anyone else?
Title: Re: Unbound-control and SNMP extend
Post by: Headless1919 on March 15, 2022, 11:53:56 AM
Bump - still no closer to a solution, any help will be appreciated.