Page 1 of 1
how do I un-click this?
Posted: Fri Nov 20, 2020 3:16 pm
by SteveBeauchemin
While updating a Template I clicked Up. I did not want to have that clicked for eternity. It was a mistake.
How can I un-click this?
Host Template lifetime commitment.PNG
Thanks
Steve B
Re: how do I un-click this?
Posted: Mon Nov 23, 2020 3:26 pm
by dchurch
Unfortunately the web interface won't allow you to unset it. But... setting it to UP will have the same effect as unsetting it.
It's likely a bug that the control loads up in the "untouched" state and won't let you un-touch it once touched - unless you dig into the developer tools.
Online documentation excerpt:
initial_state wrote:
Host - initial state
By default Nagios will assume that all hosts are in UP states when in starts. You can override the initial state for a host by using this directive. Valid options are:
o = UP,
d = DOWN, and
u = UNREACHABLE.
Parameter name: initial_state
Required: no
If it
really bothers you, you can edit it using an SQL command:
Code: Select all
mysql -unagiosql -pn@gweb nagiosql -e "update tbl_host set initial_state = '' where host_name = 'myhostname.example.com'"