Absent Member.. Absent Member..
Absent Member..
69 views

[ST OMU] Inconsistency between policy status (enabled/disabled) and its execution

PROBLEM:

On a Operations Manager for Unix (OMU) agent that has policy configured using script dynamically to return the log path, it causes sometimes inconsistencies when certain policy is in status enabled/disabled, but actually the policy isn't functioning/is functioning.

The issue can be reproduced by following steps:
Note:
template "DFT-Win-PerfMon-Monitor" dynamically return logpath c:\osit\log\perf_mon.log
template "DFT-W2K-Certificate-Monitor" dynamically return logpath c:\osit\log\cert_mon.log


1.       Pick up any two or more WINMON templates for the observation, here suppose use template "DFT-Win-PerfMon-Monitor" and "DFT-W2K-Certificate-Monitor"
2.       Check the policy status to make sure they are in enabled status and are actually functioning/polled by OA, namely will see perf_mon.log & cert_mon.log are updated by their regular poll by check their modified time
3.       Manually stop the policy "DFT-Win-PerfMon-Monitor" using below command:
#opctemplate -d "DFT-Win-PerfMon-Monitor"
4.       Right after above command , manually stop the policy "DFT-Win-PerfMon-Monitor" using below command:
#opctemplate -d "DFT-W2K-Certificate-Monitor"
5.       Observe perf_mon.log and cert_mon.log to see if they are still updated?
-from observation, perf_mon.log is no longer updated as expected, but cert_mon.log is still getting updated although the cert policy is in status of disabled
6.       Enable cert policy:
#opctemplate -e "DFT-W2K-Certificate-Monitor"
7.       Observe further the log, from testing cert_mon.log is still getting updated, perf_mon.log as expected is not updated
8.       Disable cert policy:
#opctemplate -d "DFT-W2K-Certificate-Monitor"
9.       Observer further the logs, from testing cert_mon.log is no longer updated as expected, perf_mon.log as expected is not updated (at this point both template are in disabled status and the logs are not updated)
10.   Enable perfmon policy:
#opctemplate -e "DFT-Win-PerfMon-Monitor"
11.   Right after above command , manually enable cert policy "DFT-W2K-Certificate-Monitor" using below command:
#opctemplate -e "DFT-W2K-Certificate-Monitor"
12.   Observe perf_mon.log and cert_mon.log to see if they are still updated?
-from observation, perf_mon.log is getting updated as expected, but cert_mon.log is no longer getting updated although the cert policy is in status of enabled



CAUSE:

When you try to enable and disable templates in quick succession the agent does enable the first template, but the second template does not get disabled as expected.
This is because the agent is not able to perform the tasks in quick succession.

SOLUTION:
There has to be a delay in between. Make sure you leave 30 seconds delay in between two actions.

This is documented in the following KCS article:

http://support.openview.hp.com/selfsolve/document/KM00771977


HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.