Il giorno lunedì 15 ottobre 2018 11:54:50 UTC+2, Oliver Kraitschy ha 
scritto:
>
> On Mon, Oct 15, 2018 at 02:34:17AM -0700, Edoardo Putti wrote: 
>
> > 
> > This can be achieved easily by configuring the agent on the device 
> > 
> > Change the `interval` value in `/etc/config/openwisp` 
> > to 43200 and you are done 
>
> Hello Edoardo, 
>
> I would prefer that the interval of the agent is changed automatically 
> by some logic in the agent or in the controller. 
>
> Would you want to change the interval of the agent on hundreds or 
> thousands 
> of devices by hand? ;-) 
>
> Greetings, 
> Oliver 
>

As long as it is not representable as NetJSON you will not be able to add 
this feature easily
without modifying the openwisp-config daemon. Maybe you can get away with a 
post
configuration update hook but I don't have experience in that.

To really make it simple (1h top) you just have to package your 
configuration for openwisp
and distribute that as a feed. Once you install the daemon also install 
your package
and you are done, you have both the agent and the configuration for the 
agent.

Also when the system boot the agent will always check for updates so 
everything is just
a reboot away.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to