OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: Stephan on September 13, 2017, 06:33:22 pm

Title: [solved] monit: changed settings don't get updated in monitrc
Post by: Stephan on September 13, 2017, 06:33:22 pm
Hi,

there seems to be a bug with updating the config file.
Although I've finally removed (unchecked & tested & saved) all servicechecks - they still are active in the monitrc file.

Everything I add gets inserted correctly, but won't be removed if unchecked...
Title: Re: monit: changed settings don't get updated in monitrc
Post by: franco on September 14, 2017, 07:36:25 am
Hi Stephan,

This is including hitting apply and the file still not being updated? Just making sure before taking a closer look. :)


Cheers,
Franco
Title: Re: monit: changed settings don't get updated in monitrc
Post by: Stephan on September 14, 2017, 09:25:12 am
Yes,

as mentioned before, I can add servicechecks but not remove them.

Cheers, Stephan
Title: Re: monit: changed settings don't get updated in monitrc
Post by: franco on September 14, 2017, 09:52:54 am
Ok, I tested this, it works as expected, but maybe there is a UX / workflow issue here that gets lost in communication.

I can toggle the "enabled" flag of "Service Settings". Pushing "Reload Configuration" renders the correct /usr/local/etc/monitrc file according to the enabled state of the settings.

What am I missing? :)


Cheers,
Franco
Title: Re: monit: changed settings don't get updated in monitrc
Post by: Stephan on September 14, 2017, 12:13:49 pm
 ;D
ok, probably I don't understand these configuration settings...

Enabling/disabling "Service settings" is working as You mentioned.
Well, but what for is the 4th tab "Dienstüberprüfungseinstellungen" (sry - dunno the english name) ??
Nothing seems to happen when disabeling any here - though it seems, that when enabling things here they get added to the "Service Settings"?
And any changes here (en/disabling) are not reflected by the UI - next time I open this page nothing is selected - maybe it's because I don't get the meaning of this tab and this is the expected behaviour? :D

Thanx & cheers, Stephan
Title: Re: monit: changed settings don't get updated in monitrc
Post by: Stephan on September 17, 2017, 01:37:33 pm
Finally I got it - well I'm getting older...  8)

Everything is working, like it should, I think - "Service Settings" for generally en/diable services and the 4th tab for configuring the services itself.

Thanx & cheers, Stephan
Title: Re: [solved] monit: changed settings don't get updated in monitrc
Post by: franco on September 18, 2017, 09:14:31 am
Hi Stephan,

Alright, glad this got cleared up. :)


Cheers,
Franco