Note: All examples assume environment variables are set:
export NETSCALER_HOST=192.168.1.10 export NETSCALER_USER=nsroot export NETSCALER_PASS=nsrootSee Environment Variables for details.
Check if there are unsaved configuration changes on the NetScaler.
check_netscaler -C nsconfigOutput (OK - No unsaved changes):
OK: config saved
Output (WARNING - Unsaved changes):
WARNING: config not saved
The check queries the NetScaler configuration status to detect if there are pending changes that haven't been saved to disk.
Status values:
- Saved configuration = OK
- Unsaved changes = WARNING
Run after making configuration changes to ensure they've been saved:
check_netscaler -C nsconfigMonitor regularly to detect accidental unsaved changes:
# In cron or monitoring system
*/15 * * * * check_netscaler -C nsconfigEnsure configuration is always saved as part of change control process.
This check does not accept warning/critical thresholds - it's a binary state:
- Saved = OK
- Not saved = WARNING
0(OK) - Configuration is saved1(WARNING) - Configuration has unsaved changes3(UNKNOWN) - Cannot retrieve configuration status
- Run this check after making any NetScaler configuration changes
- Unsaved changes are lost on reboot
- This check helps prevent accidental configuration loss
- No performance data is returned
- Very lightweight check, safe to run frequently
- Consider alerting on WARNING state in production environments