Setting up detail monitoring for Netlsnr

For Netlsnr agent, the detail monitoring is enabled by default to monitor the listener process.

You can disable detail monitoring by setting the value of the attribute MonScript to an empty string.

You can enable detail monitoring for Netlsnr by specifying a value for the MonScript attribute. The example to set up detail monitoring uses the supplied monitor script for Netlsnr, /opt/VRTSagents/ha/bin/Netlsnr/LsnrTest.pl. The detail monitoring script for the Netlsnr resource uses the Listener command lsnrctl status $Listener to test the Listener process.

To disable detail monitoring for Netlsnr

To set up detail monitoring for Netlsnr

  1. Make the VCS configuration writable:

    haconf -makerw
    
  2. Freeze the service group to avoid automated actions by VCS caused by an incomplete reconfiguration:

    hagrp -freeze service_group
    
  3. Enable detail monitoring by entering the following commands:

    hares -modify LsnrResource MonScript "./bin/Netlsnr/LsnrTest.pl"
    haconf -dump -makero
    
    hagrp -unfreeze service_group