/
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

C:\Program Files\Dbvisit\standbymp\bin>dbvcli.exe -d mine observer show Connecting to the Control Center at localhost:4433 ✓ Main Settings Enable/Disable the Observer Disabled Emergency action Notifications Only Check interval (seconds) 60 Number of failed checks before action is taken 3 Optional Alerts Check time gap does not exceed set value Disabled Time gap threshold (seconds) 0 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

--enable-timegap

Y or N

enable time gap check

--timegap-threshold

number

maximum allowed time gap before notification, in seconds

--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

C:\Program Files\Dbvisit\standbymp\bin>dbvcli.exe -d mine observer edit 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 Optional Alerts Check time gap does not exceed set value Enabled Time gap threshold (seconds) 600 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 Save Changes Select whether to save the entered settings or to cancel without saving. Save Changes: (•) Save ( ) Cancel Observer settings successfully saved

Related content