Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Proper way to edit a plugin configuration?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Proper way to edit a plugin configuration? (Read 981 times)
ml35
Newbie
Posts: 2
Karma: 0
Proper way to edit a plugin configuration?
«
on:
August 17, 2023, 03:02:40 pm »
Hi,
I'd like to reduce os-netdata update frequency from default to 5 seconds, in order to
relax the load
on the resources.
On a regular distro setup I usually do this by cd'ing into the netdata configuration directory, then sudo ./edit-config netdata.conf and add/modify the "update_every" parameter.
Can I do this in opnsense as well, and if I do it, will I lose the configuration on a future opnsense/netdata upgrade?
Thanks
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Proper way to edit a plugin configuration?
«
Reply #1 on:
August 17, 2023, 03:05:19 pm »
You can do this via CLI if netdata UI itself doesnt offer it
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Proper way to edit a plugin configuration?
«
Reply #2 on:
August 17, 2023, 03:06:46 pm »
Looks like the update_every is never set by our plugin. The best would be a feature request or better yet a PR for plugin inclusion.
You can't edit the config with the plugin because the plugin will overwrite it again. You could use the netdata package without the plugin, but then it won't try to start it automatically and config changes are all manual.
Cheers,
Franco
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: Proper way to edit a plugin configuration?
«
Reply #3 on:
August 17, 2023, 07:49:14 pm »
Oh, I totally forgot that we added config templating .. thought there was only the enable button
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Proper way to edit a plugin configuration?
«
Reply #4 on:
August 17, 2023, 08:40:31 pm »
Mostly just enable as you said, but it does rewrite netadata.conf in relation to that setting
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Proper way to edit a plugin configuration?