Email Send in 'Action' - Advanced Mode

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
G4meDTP
Posts: 11
Joined: Mon Jul 06, 2009 10:09 am

Email Send in 'Action' - Advanced Mode

Post by G4meDTP »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
G4meDTP
Posts: 11
Joined: Mon Jul 06, 2009 10:09 am

Post by G4meDTP »

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.
Post Reply