/
observer

observer

Manage Observer settings

Subcommands

show Show observer settings
edit Edit observer settings

show

dbvcli observer show {-d|--name} CONFIGURATION_NAME

Show observer settings

[oracle@nzoel19c2 bin]$ ./dbvcli -d orclcdb observer show Connecting to the Control Center at localhost:4433 ✓ Main Settings Enable/Disable the Observer Enabled Emergency action Notifications Only Check interval (seconds) 60 Number of failed checks before action is taken 3 Notifications Send email notifications Disabled Send Slack notifications Disabled Enable heartbeat messages Disabled Heartbeat time 07:00 Custom Observer Scripts Custom Observer scripts Disabled Script on primary Script on standby Fail rule

edit

dbvcli observer edit {-d|--name} CONFIGURATION_NAME [--OPTIONS]

Edit observer settings

Option

Type

Description

Option

Type

Description

--enable

Y or N

enable or disable the observer

--emergency-action

string

action to perform after max failures; "notify" to send notifications only, "activate" to perform automatic activation

--check-interval

number

how frequently the observer checks the configuration's status, in seconds

--max-fail-count

number

maximum number of failed checks before action is taken

--send-email

Y or N

enable email notifications

--send-slack

Y or N

enable slack notifications

--enable-heartbeat

Y or N

enable heartbeat notifications, which are sent daily to indicate that the observer is running

--heartbeat-time

string

time of day to send heartbeat notifications (HH:MM)

--script-rule

string

how to use scripts to increment fail count; "disabled" to use only built-in checks, "custom-only" to use only custom scripts, "either" to increment the fail count if either built-in check or custom script fails, "both" to increment the fail count if both built-in check and custom script fails

--primary-script

string

primary custom script

--standby-script

string

standby custom script

[oracle@nzoel19c2 bin]$ ./dbvcli -d orclcdb observer edit Connecting to the Control Center at localhost:4433 ✓ Main Settings Enable/Disable the Observer Enabled Emergency action Notifications Only Check interval (seconds) 600 Number of failed checks before action is taken 7 Notifications Send email notifications Disabled Send Slack notifications Disabled Enable heartbeat messages Enabled Heartbeat time 07:00 Custom Observer Scripts Custom Observer scripts Disabled Script on primary Script on standby Fail rule Save Changes Select whether to save the entered settings or to cancel without saving. Save Changes: (•) Save ( ) Cancel Observer settings successfully saved

Related content