Citrix NetScaler / ADC Service Down Playbook
Services bound to vservers going DOWN, health monitor failures, SNIP reachability issues, and SSL certificate problems. NetScaler services transitioning to DOWN state cause the vserver to stop distributing traffic to affected backends.
Operator's Field Notes
Jeremy Martinez · Incident Commander | Principal Site Reliability Engineer
"NetScaler service DOWN events are almost always about monitors. The service itself might be fine, but the monitor probe is failing. Check show servicefirst - it tells you which monitor is failing and the last response. Then check SNIP reachability - the NetScaler sends monitor probes from its SNIP (Subnet IP), not the VIP. If routing or firewall rules don't allow the SNIP to reach the backend, monitors fail."
"The other common issue: nsconmsg is your best friend for packet-level debugging. It captures traffic on the NetScaler and shows you exactly what the monitor is sending and receiving. When the monitor says 'probe failed' but the backend looks healthy, nsconmsg shows you the actual TCP/HTTP exchange."
First 5 Minutes - Triage
1. Check Service and vServer Status
# Check specific service status show service my-app-svc # Key fields: # State: DOWN / UP / OUT OF SERVICE # Last state change: (timestamp) # Monitor: my-http-monitor (DOWN) # Last response: (shows what monitor received) # Check the parent vserver show lb vserver my-app-vs # Key fields: # State: UP / DOWN # Effective state: (considers all bound services) # Current server connections # Health: X/Y services UP # List all services bound to a vserver show lb vserver my-app-vs -bind
2. Check Monitor Details
# View monitor configuration show lb monitor my-http-monitor # Key settings: # Type: HTTP / HTTPS / TCP / PING # HTTP request: "GET /health" # Response code: 200 # LRTM (Learned Response Time Multiplier) # Interval: 5 seconds # Response timeout: 2 seconds # Down time: 30 seconds # Retries: 3 # Check monitor bindings show lb monitor bindings my-http-monitor # View recent monitor probe results stat lb monitor my-http-monitor
3. Check SNIP Reachability
# NetScaler sends monitors from SNIP - verify it can reach the backend show ns ip # List all IPs including SNIPs # Ping backend from NetScaler ping -S SNIP_IP BACKEND_IP # Test HTTP from NetScaler CLI curl -v --interface SNIP_IP http://BACKEND_IP:PORT/health # Check routing show route | grep BACKEND_SUBNET # Check ARP show arp | grep BACKEND_IP
Packet-Level Debugging with nsconmsg
Capture Monitor Traffic
# Start packet capture filtered to backend IP shell nsconmsg -d current -s ConLb=3 -s ConTCP=3 -K /tmp/nstrace.log & # Or use nstrace (more detailed) start nstrace -filter "CONNECTION.IP.EQ(BACKEND_IP)" -size 0 # Wait for a few monitor intervals, then stop stop nstrace # Download trace and open in Wireshark # Traces are in /var/nstrace/ # Quick analysis from CLI nsconmsg -K /var/nslog/newnslog -d event -T
Common Monitor Failure Causes
TCP RST on Connect
Backend port not listening, firewall rejecting
HTTP 503/502 Response
Backend overloaded or in maintenance mode
Timeout (No Response)
Network issue, firewall drop, or backend too slow
SSL Handshake Failure
Certificate mismatch, cipher mismatch, or expired cert
Recovery Procedures
Force Service UP
# Enable service (overrides monitor) enable service my-app-svc # If service is OOS (Out of Service), bring it back enable server my-backend-server # Disable monitor temporarily unbind service my-app-svc -monitorName my-http-monitor # Re-bind a simple TCP monitor as fallback bind service my-app-svc -monitorName tcp # Save config (otherwise lost on reboot) save config
Fix Monitor Configuration
# Update HTTP monitor set lb monitor my-http-monitor HTTP \ -httpRequest "GET /health" \ -respCode 200 \ -interval 10 \ -resptimeout 5 \ -retries 3 \ -downTime 30 \ -secure YES # for HTTPS backends # Add custom headers if needed set lb monitor my-http-monitor HTTP \ -customHeaders "Host: myapp.example.com\r\n" # Save config save config
Prevention
Monitor Best Practices
- • Use dedicated health check endpoints
- • Set response timeout < interval
- • At least 3 retries before marking DOWN
- • Test monitors from SNIP before deploying
- • Use LRTM to adapt to response times
Monitoring & Alerting
- • SNMP traps for service state changes
- • Syslog alerts for vserver DOWN events
- • Dashboard for all vserver health
- • Regular SNIP connectivity verification
- • Config audit for monitor consistency