Installing the monitoring script
Instructions for installation of the monitoring script on the Netscaler
Install nsgrid.pl script on the netscaler
- Download the script located at this URL: https://www.syferlock.com//files/products/utils/nsgrid.pl
- Copy the file to the netscaler appliance to the directory /nsconfig/monitors
- Ensure that the permissions on the file are set to 555 (chmod 555 nsgrid.pl)
Create Monitor - Standard Parameters
- Connect to the Netscaler Administration Console and choose the Monitors menu option under Load Balancing
- Click Add to add a new monitor. Create Monitor dialog will be displayed
Monitor Setup
- Set Name to nsgrid
- Set Type to USER
- Standard Parameters: Suggested value for Interval is 60 seconds (execute check once per minute)
- Standard Parameters: Suggested value for Response Time-out is 15 seconds
- Standard Parameters: Suggested value for Retries is 2 times
- Special Parameters: Script Name should be set to nsgrid.pl
- Special Parameters: Script Arguments should be formatted as httpsport=<port>;ldapport=<port>;username=<username>;realm=<realm>;pin=<pin>;corner=<corner>;basedn=<base-dn>
- Click Create & Save All Changes
Sample script argument: httpsport=443;ldapport=389;username=test00001;realm=ArrayRealm;pin=11111;corner=1;basedn=ou=test,dc=gridguard,dc=syferlock,dc=com
Assign monitor to VIP
- Identify the service group associated with the VIP
- Add the nsgrid monitor to the list of configured monitors
- Save all changes
Test Script
To test the script, execute the following steps:
> log onto the Netscaler box via SSH
> shell
> cd /nsconfig/monitors
> ./nsumon-debug.pl nsgrid.pl <server-ip> 80 15 "httpsport=<port>;ldapport=<port>;username=<username>;realm=<realm>;pin=<pin>;corner=<corner>;basedn=<base-dn>"
If everything is setup correctly, you will get the following response back:
nsgrid.pl syntax OK
0,Operation completed without error