OPNsense
  • 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 995 times)

ml35

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
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: 6767
  • Karma: 494
    • View Profile
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: 17747
  • Karma: 1620
    • View Profile
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: 6767
  • Karma: 494
    • View Profile
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: 17747
  • Karma: 1620
    • View Profile
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?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2