Hi all!

I have issues with my driver health configurations.

What I am trying to accomplish is:
Green state when the driver is running and has less than 10 minutes
queue.
Yellow state when the driver is running and has between 10 and 30
minutes queue.
Red state if the driver is stopped or has more than 30 minutes queue.

I use e-mails to notify when the state changes.

When I test this, it works great, one email after 10 minutes queue, one
after 30 minutes and one when I clear the queue.

The problem I have is when the driver is idle (like in the middle of
the night) the state changes from green directly to red and then to
green the next minute (Health Job configured to run every minute). I've
also checked the driver trace, and it is really idle, only heartbeats at
the time for the false emails.

I have checked the trace, and on both these times the trace says that
the state is green. I donít understand why it goes to red and back to
green.

Is this a bug? Does anyone else have a similar health configuration?
Have I configured it completely wrong?

IDM version: 4.0.1 patch 2a

Health Configuration (Driver Manifest):
<?xml version="1.0" encoding="UTF-8"?><manifest name="eDirectory">
<capability name="password-subscribe"/>
<capability name="password-publish"/>
<capability name="password-check"/>
<health-config>
<green>
<or>
<and>
<driver-state state="running"/>
<in-cache-overflow state="false"/>
<transactions op="not-lt" transaction="total" value="1"/>
<oldest ms="600000" op="newer"/>
</and>
<and>
<driver-state state="running"/>
<in-cache-overflow state="false"/>
<transactions op="lt" transaction="total" value="1"/>
</and>
</or>
<actions>
<generate-event id="1230" level="log-info">
<event-arguments>
<event-argument name="value" value="0"/>
<event-argument name="value3" value="1"/>
</event-arguments>
</generate-event>
<send-email template-dn="Driver Health Green.Default Notification
Collection.Security">
<to>me@domain.com</to>
<bcc/>
<cc/>
<reply-to>from@domain.com</reply-to>
</send-email>
</actions>
</green>
<yellow>
<or>
<and>
<driver-state state="running"/>
<in-cache-overflow state="false"/>
<transactions op="not-lt" transaction="total" value="1"/>
<oldest ms="1800000" op="newer"/>
</and>
</or>
<actions>
<generate-event id="1230" level="log-info">
<event-arguments>
<event-argument name="value" value="1"/>
<event-argument name="value3" value="1"/>
</event-arguments>
</generate-event>
<send-email template-dn="Driver Health Yellow.Default Notification
Collection.Security">
<to>me@domain.com </to>
<bcc/>
<cc/>
<reply-to>from@domain.com</reply-to>
</send-email>
</actions>
</yellow>
<red>
<actions>
<generate-event id="1230" level="log-info">
<event-arguments>
<event-argument name="value" value="3"/>
<event-argument name="value3" value="1"/>
</event-arguments>
</generate-event>
<send-email template-dn="Driver Health Red.Default Notification
Collection.Security">
<to>me@domain.com</to>
<bcc/>
<cc/>
<reply-to>from@domain.com</reply-to>
</send-email>
</actions>
</red>
</health-config>
</manifest>

Here's the trace. I got an red email at 04:11 and two green emails at
04:12. As you can see the Health Job evaluates to green both times, so I
dont get it at all. I also searched the entire trace for "red" and got
no matches. Trace level is at 5.

Trace:
[07/18/12 04:11:57.416]:Health Job JT:: Processing object
'\TREE\ORG\System\Driver Set\eDirDriver'
[07/18/12 04:11:57.417]:Health Job JT:: Checking driver health for
'\TREE\ORG\System\Driver Set\eDirDriver' on server
'ORG\System\SERVER01'
[07/18/12 04:11:57.420]:Health Job JT:: evaluating state: green
[07/18/12 04:11:57.421]:Health Job JT:: current health state:
green
[07/18/12 04:11:57.423]:Health Job JT:
Job Intermediate Result -------------------
Job: \TREE\ORG\System\Driver Set\Health Job
Status: Success
Object: \TREE\ORG\System\Driver Set\eDirDriver
[07/18/12 04:12:57.462]:Health Job JT:: Processing object
'\TREE\ORG\System\Driver Set\eDirDriver'
[07/18/12 04:12:57.463]:Health Job JT:: Checking driver health for
'\TREE\ORG\System\Driver Set\eDirDriver' on server
'ORG\System\SERVER01'
[07/18/12 04:12:57.466]:Health Job JT:: evaluating state: green
[07/18/12 04:12:57.468]:Health Job JT:: current health state:
green
[07/18/12 04:12:57.468]:Health Job JT:: Trying to execute
generate event action
[07/18/12 04:12:57.468]:Health Job JT:: Trying to execute
send-email
[07/18/12 04:12:57.483]:Health Job JT:
Job Intermediate Result -------------------
Job: \TREE\ORG\System\Driver Set\Health Job
Status: Success
Object: \TREE\ORG\System\Driver Set\eDirDriver
[07/18/12 04:12:57.484]:Health Job JT:
Job Intermediate Result -------------------
Job: \TREE\ORG\System\Driver Set\Health Job
Status: Success
Object: \TREE\ORG\System\Driver Set\eDirDriver
[07/18/12 04:12:57.488]:Health Job JT:

Best Regards
Marcus


--
marcus_jonsson
------------------------------------------------------------------------
marcus_jonsson's Profile: http://forums.novell.com/member.php?userid=15518
View this thread: http://forums.novell.com/showthread.php?t=458026