Configure a custom user monitor

To configure a custom user monitor, you must first write the script that performs the action that the monitor will use to check the service that is bound to it, and upload the script to the /nsconfig/monitors directory on the NetScaler appliance. Then you create the monitor on the appliance, as described below.

Note: Monitor probes originate from the NSIP address.

To configure a user monitor by using the command line interface

At the command prompt, type:

add lb monitor <monitorName> USER -scriptname <NameOfScript> -scriptargs <Arguments>

Example:

add monitor Monitor-User-1 USER -scriptname nsftp.pl -scriptargs "file=/home/user/
sample.txt;user=root;password=passwd"

Configure a custom user monitor