(imported comment written by menke123491)
I decided to play around with the relevance - not the action - to see if that impacted the success/failure. It looks like it does. I ran through 3 or 4 of each and the results were consistent each time. Following is (a) the original relevance and resultant log
failure
and (b) alternate relevance and resultant log
success
.
The original relevance checks for (a) certain OS, (b) presence of the “SAMPatrol” package, © absence of the “SAMPAgtBF” package or package less than a certain version. Note that relevance reports false (via qna) within seconds of the fixlet running.
The alternate relevance just checks for (a) certain OS and (b) absence of a log file created by the fixlet script. The action is the same. Note the log now reports “Fixed”.
Is anything wrong with the original relevance? Does the BESClient check “pkgdb” before “pkgdb” registers the package has actually been installed?
original relevance - failure
if (name of operating system contains “SunOS”) then ((exists pkginfo “SAMPatrol” of pkgdb) and (not exists ((pkginfo “SAMPAgtBF” of pkgdb) whose (version of it >= “2.0”)))) else if (name of operating system contains “Linux”) then ((exists package “SAMPatrol” of rpm) and (not exists ((package “SAMPAgtBF” of rpm) whose (version of it >= “2.2-2.2”)))) else (false)
At 15:44:20 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Relevant - BMC Patrol Agent Patch-mje (fixlet:2883)
Start monitoring action - Status of Action 2883 (fixlet:2147486531)
At 15:44:20 -0500 -
ActionLogMessage: (action 2883 ) action signature verified
ActionLogMessage: (action 2883 ) starting action
At 15:44:21 -0500 -
Report posted successfully.
At 15:44:23 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Not Relevant - BMC Patrol Agent Patch-mje (fixlet:2883)
At 15:44:32 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
End monitoring action - Status of Action 2883 (fixlet:2147486531)
At 15:44:34 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
At 15:44:34 -0500 -
ActionLogMessage: (action 2883 ) ending action
At 15:44:38 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Start monitoring action - Status of Action 2883 (fixlet:2147486531)
At 15:44:49 -0500 -
Report posted successfully.
At 15:45:01 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
End monitoring action - Status of Action 2883 (fixlet:2147486531)
bash-3.00# date ; /opt/BESClient/bin/qna.sh /opt/BESClient/bin/qnainput.txt
Tue Jan 20 15:44:39 EST 2009
BESClientConfigPath must be set
BESClientActionMastheadPath not set, using /etc/opt/BESClient/actionsite.afxm
Q: if (name of operating system contains “SunOS”) then ((exists pkginfo “SAMPatrol” of pkgdb) and (not exists ((pkginfo “SAMPAgtBF” of pkgdb) whose (version of it >= “2.0”)))) else if (name of operating system contains “Linux”) then ((exists package “SAMPatrol” of rpm) and (not exists ((package “SAMPAgtBF” of rpm) whose (version of it >= “2.2-2.2”)))) else (false)
A: False
================================
alternate relevance - success
if name of operating system contains “SunOS” then (not exists file “/tmp/SAMPAgtBF-2.bf.debug”) else (false)
At 15:37:40 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Relevant - BMC Patrol Agent Patch-mje (fixlet:2882)
Start monitoring action - Status of Action 2882 (fixlet:2147486530)
At 15:37:40 -0500 -
ActionLogMessage: (action 2882 ) action signature verified
ActionLogMessage: (action 2882 ) starting action
At 15:37:40 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Fixed - BMC Patrol Agent Patch-mje (fixlet:2872)
At 15:37:41 -0500 -
Report posted successfully.
At 15:37:43 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
Not Relevant - BMC Patrol Agent Patch-mje (fixlet:2882)
At 15:37:53 -0500 - actionsite (http://bigfixservername:52311/cgi-bin/bfgather.exe/actionsite)
At 15:37:53 -0500 -
ActionLogMessage: (action 2882 ) ending action
At 15:38:09 -0500 -
Report posted successfully.