Page 1 of 1
global configuration has unusual sequence of actions
Posted: Tue Jun 28, 2016 1:44 pm
by ananke
Under global configuration we have three main actions:
- Save
- Save & Apply
- Verify
That's already different from the documentation at
https://assets.nagios.com/downloads/nag ... Inputs.pdf which lists these actions (in order):
- Save
- Verify
- Apply
Here are some issues:
1) Documentation and UI do not match
2) Recommended order is to first save, then to verify. Ideally, one would first verify if syntax is correct, then save. Otherwise, you can easily end up with broken configuration.
3) When one uses 'Save' then there is no option to Apply. There's no single 'Apply' function, and 'Save & Apply' button becomes grayed out.
Re: global configuration has unusual sequence of actions
Posted: Tue Jun 28, 2016 4:23 pm
by mcapra
I am unsure if this is a bug strictly speaking, but I've filed a bug report for the issue since the behavior is confusing (Internal TASK ID 8937).
You're still able to apply the configuration from the "Apply Configuration" section of the side menu, but including the option to do it from the same screen that you modify/save the configuration on makes more sense in my mind.
Re: global configuration has unusual sequence of actions
Posted: Thu Jun 30, 2016 10:11 am
by ananke
Honestly, I have not noticed the top left link 'Apply configuration' until you pointed it out, thank you. I've been focused on the prominent buttons, that I associate with actions, and I typically assume that the links on the navigation bar would lead me to different sections.
I wonder if there are any plans to streamline the configuration and remove the ambiguity of the config change process. Right now it seems I can easily shoot myself in the foot by saving a broken config without verifying it afterwards, and restarting logstash at some point later. Snapshots seem to be saved only during the 'Apply' phase, but never during the save stage.
Ideally, I'd see the config process as a simple:
A) Adjust filters
B) Validate the syntax
C) Save & Apply in one step, triggering generation of a previous config snapshot.
Re: global configuration has unusual sequence of actions
Posted: Thu Jun 30, 2016 10:27 am
by mcapra
ananke wrote:
Ideally, I'd see the config process as a simple:
A) Adjust filters
B) Validate the syntax
C) Save & Apply in one step, triggering generation of a previous config snapshot.
I generally agree; The current workflow could be improved. The aforementioned bug report will include everything in this thread
Since a bug report was submit, is it alright if we lock this thread?
Re: global configuration has unusual sequence of actions
Posted: Thu Jun 30, 2016 10:30 am
by ananke
mcapra wrote:Since a bug report was submit, is it alright if we lock this thread?
Certainly, thank you for your help.
Cheers!