Hi,
I use the sample you tell
but when I receive the mail I found there is something empty (like
object and channel)

my mail:
alert level - "error" has occurred on object
""
at time: 21.02.13,15:13:18
Error information;
event-id knuidm#20130221071318#99#54
Event message "LDAPException: Invalid DN Syntax (34) Invalid DN Syntax
LDAPException: Server Message: invalid DN
LDAPException: Matched DN: "
on the channel.


In my trace log:
DirXML Log Event -------------------
Driver: \IDM\idm\driver\LDAP
Channel: Subscriber
Object: \IDM\idm\syncou\ad02
Status: Error
Message: LDAPException: Invalid DN Syntax (34) Invalid DN Syntax
LDAPException: Server Message: invalid DN
LDAPException: Matched DN:

thanks for help



jedijeff;41420 Wrote:
> Mark Lamont did a good job modifying an old policy I had:
>
> <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
> "policy-builder-dtd"
> "/home/jeff/designer/eclipse/plugins/com.novell.idm.policybuilder_3.0.1.200901050958/DTD/dirxmlscript3.6.dtd"><policy>
> <rule>
> <description>Email on non success status</description>
> <comment xml:space="preserve">If the status level does not equal
> SUCCESS, send an email alert to IDMAdmin team.</comment>
> <comment name="author" xml:space="preserve">Jeff Johnson and Mark
> Lamont</comment>
> <comment name="version" xml:space="preserve">1.1</comment>
> <comment name="lastchanged" xml:space="preserve">01-05-08</comment>
> <conditions>
> <and>
> <if-operation op="equal">status</if-operation>
> <if-xpath op="true">@level!='success'</if-xpath>
> </and>
> </conditions>
> <actions>
> <do-send-email server="acme.com" type="text">
> <arg-string name="from">
> <token-text xml:space="preserve">CREATOR</token-text>
> </arg-string>
> <arg-string name="to">
> <token-text xml:space="preserve">alert@acme.com</token-text>
> </arg-string>
> <arg-string name="subject">
> <token-text xml:space="preserve">IDM ALERT - Error on
> </token-text>
> <token-global-variable name="ConnectedSystemName"/>
> </arg-string>
> <arg-string name="message">
> <token-text xml:space="preserve">alert level - "</token-text>
> <token-xpath expression="@level"/>
> <token-text xml:space="preserve">" has occurred on object
> "</token-text>
> <token-xpath expression="object-dn"/>
> <token-text xml:space="preserve">"
> at time: </token-text>
> <token-time format="dd.MM.yy,HH:mm:ss" lang="en-GB"/>
> <token-text xml:space="preserve">
> Error information;
> </token-text>
> <token-text xml:space="preserve">event-id </token-text>
> <token-xpath expression="@event-id"/>
> <token-text xml:space="preserve">
> Event message "</token-text>
> <token-xpath expression="text()"/>
> <token-text xml:space="preserve">"
> on the </token-text>
> <token-xpath expression="component"/>
> <token-text xml:space="preserve"> channel.</token-text>
> </arg-string>
> </do-send-email>
> </actions>
> </rule>
> </policy>
>
> pchkits;1721812 Wrote:
> > I would like to receive an e-mail when an error occurs on an event

> (from
> > any drivers). What would be the best way to do this ? Do you have

> an
> > example of the code ?
> >
> > Thanks.

>
>
> --
> jeff@linux1:~> glxgears
> 120308 frames in 5.0 seconds = 24061.553 FPS
> ------------------------------------------------------------------------
> jedijeff's Profile: http://forums.novell.com/member.php?userid=4732
> View this thread: http://forums.novell.com/showthread.php?t=357922



--
freddy_chen
------------------------------------------------------------------------
freddy_chen's Profile: https://forums.netiq.com/member.php?userid=1754
View this thread: https://forums.netiq.com/showthread.php?t=8810