|
View previous topic :: View next topic |
Author |
Message |
G4meDTP
Joined: 06 Jul 2009 Posts: 11
|
Posted: Thu Jul 09, 2009 1:08 pm Post subject: Email Send in 'Action' - Advanced Mode |
|
|
I am not getting any Email to fire when a condition is met. Might be a syntax issue, or just my understanding of the documentation.
Here is the setup -
ver 8.14
Advanced Host Monnitor (AHM) is running a test (NT Event Log), I get the regular email if something goes 'Bad'. However, on occation the account that AHM runs on will lose permissions, that makes the test give a Status of "Unkown" and a Reply of "System Error. Code: 5.Access denied".
I have setup an Email Action in Advanced Mode and set the "Condition to start action" to this string "('%SimpleStatus%'=='UNKNOWN') and ('%Reply%'=='System Error. Code: 5.Access denied')"
Nothing is happening.
I have set the same thing on both the Good and Bad sides just in case.
"Optional status processing" has "Treat Unknown as Bad" unchecked. and no other entries on that line. The "Warning line is still at default.
This is the first time i have used Advanced Mode, so I may be missing something.
Thanks. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jul 09, 2009 1:17 pm Post subject: |
|
|
Are you sure error message looks exactly like this 'System Error. Code: 5.Access denied'?
I think it should looks like "Access is denied" and probably this is space or CRLF charaters and "5."...
I would use expression like ('%SimpleStatus%'=='UNKNOWN') and ('Access is denied' in '%Reply%')
Regards
Alex |
|
Back to top |
|
|
G4meDTP
Joined: 06 Jul 2009 Posts: 11
|
Posted: Thu Jul 09, 2009 1:30 pm Post subject: |
|
|
Very good.
I see that the "in" statement will allow me to use just part of the Reply text. I missed that in the doc.
You are correct, it is "Access is denied".
I changed the syntax and it now works.
Thanks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|