Setting up detail monitoring for Netlsnr

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

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"

    # hares -override LsnrResource LevelTwoMonitorFreq
    # hares -modify LsnrResource LevelTwoMonitorFreq 1
    # haconf -dump -makero
    # hagrp -unfreeze service_group