I have the following problem. I have configured a primary load balancer (LB) on my NetScaler at LB level, which switches to a backup LB if the primary LB fails. However, the switchover does not happen automatically, this is intentional and I would like to monitor this. I do not want to create a separate test for this, but would rather have it included in the standard test:
./check_netscaler.pl -H ${IPADDR} -s -C state -o lbvserver -n vs_lb_http_webserver
I have checked the API endpoint, but unfortunately, the /stats endpoint does not have an entry to indicate if a backup server is configured or not. This information is only available in the /config endpoint, similar to service groups. To see if a backup server is configured, you need to check the /config/lbvserver/lb_http_webserver endpoint for the backupvserverstatus entry with the value (Backup Active). If the backup LB is not in use, this entry will not exist. To verify if a backup LB is configured, the backupvserver entry can be checked at the same endpoint.
Description
Hello,
I have the following problem. I have configured a primary load balancer (LB) on my NetScaler at LB level, which switches to a backup LB if the primary LB fails. However, the switchover does not happen automatically, this is intentional and I would like to monitor this. I do not want to create a separate test for this, but would rather have it included in the standard test:
I have checked the API endpoint, but unfortunately, the
/stats
endpoint does not have an entry to indicate if a backup server is configured or not. This information is only available in the/config
endpoint, similar to service groups. To see if a backup server is configured, you need to check the/config/lbvserver/lb_http_webserver
endpoint for thebackupvserverstatus
entry with the value(Backup Active)
. If the backup LB is not in use, this entry will not exist. To verify if a backup LB is configured, thebackupvserver
entry can be checked at the same endpoint.API Outpuut
Entpoint:
https://${IPADDR}/nitro/v1/config/lbvserver/vs_lb_http_webserver
With Backup Configure and Backup active
With Backup Configured and Backup not Aktive
Important entries
"backupvserverstatus": "(Backup Active)"
"backupvserver": "vs_lb_http_webserver_backup"
Expected Outcome
Integrate the monitoring of backup LB status into the standard check to avoid additional separate checks.
Thank you for your support!