Ok here is another question relating to thi thread. as described in previous posts, I am monitoring critical processes that is running on our workstations. I have 3 separate test setup - 1st test pings workstation, 2nd checks to see if anyone is logged on the computer (and returns whos is), using WMI, third is the test that checks to see if the critical process is running and has the other two testes as master tests. the last test (check process) is the test we use for email notification for failure of process. THe process that runs on the workstation will only return good if a particular user logs in to the computer. What I would like to be able to do is in test number 3 (check Process) the test that send me alerts if process is running or not, is to be able to also include the results from test number 2 (check who is logged in) and send it all in one email, so that we can see what computer is effected and who is logged in the computer. We are finding that most of the "Bad" alerts we get are due to a user that is logging in to a computer that they really should not be. This would be a great help and would help us eliminate reacting to a bad alert because of a user not using his designated computer.
Any suggestions?
How to check if a user is loged in to computer or not
http://www.ks-soft.net/hostmon.eng/mfra ... #specmacro
======================
If you want to access the parameters of some specific test (not just the one that had triggered an action), specify the name of a test or id of the test confined by a double colon ( :: ) in front of the name of the macro variable (%::<testname>::<macrovariable>% or %::<testid>::<macrovariable>%). E.g. if you want to access "Reply" and "Status" fields of the "Ping Yahoo" test, use the following syntax for the variables: %::Ping Yahoo::Reply%, %::Ping Yahoo::Status%
======================
Regards
Alex
======================
If you want to access the parameters of some specific test (not just the one that had triggered an action), specify the name of a test or id of the test confined by a double colon ( :: ) in front of the name of the macro variable (%::<testname>::<macrovariable>% or %::<testid>::<macrovariable>%). E.g. if you want to access "Reply" and "Status" fields of the "Ping Yahoo" test, use the following syntax for the variables: %::Ping Yahoo::Reply%, %::Ping Yahoo::Status%
======================
Regards
Alex
I may be missing something but can i pull the reply info from a master test? I have tried to use Tune up reply value using %::MasterTest::Reply% but this does not give me the results I am looking for. Can you pull the resuls from a master file and include the info from the master test in a Send E-mail action?
I am trying to avoid having to modify the 50 -60 test that I have defined and looking to do this as simple as possible
I am trying to avoid having to modify the 50 -60 test that I have defined and looking to do this as simple as possible
Ok Just tried to see if this works - no go! I modified my mail profile tat I use for this e-mail action as listed below:KS-Soft wrote:I would suggest to use such macros in e-mail template, not for TuneUp reply option.
However if you really want to change reply field of the test, you can do this. Just specify real name of the test %::MasterTestName::Reply% or use ID instead of test name.
Rgards
Alex
Message from HostMonitor (host changed status)
Test : %TestName%
Method: %TestMethod%
Status : %STATUS%
Date : %DATETIME%
Reply : %Reply%
User Name: %::MasterTest::Reply%
Computer Name: %HostAddr%
Recurrences : %Recurrences%
Last status: %LastStatus%
I added the User Name : section and have also tried %::MasterTestName%::Replay as well and gett the following e-mail
Message from HostMonitor (host changed status)
Test : Suitcase
Method: check process
Status : Ok
Date : 2/20/2009 3:13:35 PM
Reply : 1
User Name: %::MasterTest::Reply%
Computer Name: it-hot-potatoe
Recurrences : 1
Last status: Bad
Total tests: 789
Alive ratio : 38.02 %
Dead ratio: 59.32 %
Folder: test
I really dont want to create 50 -60 separate mail profiles can I do this with just one?
When I said "specify real name of the test " I meant you should provide name of the test. Is your master test has name "MasterTest"?I added the User Name : section and have also tried %::MasterTestName%::Replay as well and gett the following e-mail
Message from HostMonitor (host changed status)
User Name: %::MasterTest::Reply%
If you have 50-60 different master tests, then you may use variable inside of variable, like %::%MasterTest%::Reply%I really dont want to create 50 -60 separate mail profiles can I do this with just one?
Regards
Alex