I prepared the test.
If it's OK then do nothing
If it is BAD to do the action:
1. first prepare a report from the database
2. send the report as an attachment by email
Unfortunately the mail does not contain an attachment only for information on the lack of file availability.
It looks like action 1 and 2 were done simultaneously
How to solve such a problem ?
Does it matter the order of the actions to execute them ?
Hello,
Hostmonitor 10.54
If I run the test for the first time (the report has not yet generated) then the mail does not contain the report.
If the next time I run the test the mail contains the report but from the previous execution of the test
Actions added to the action profile have identical parameters.
Action 1 and 2:
Condition: standard mode
start when: 1
Repeat: -1
I do not know how to attach a configuration file.
Hostmonitor 10.54
If I run the test for the first time (the report has not yet generated) then the mail does not contain the report.
If the next time I run the test the mail contains the report but from the previous execution of the test
Actions added to the action profile have identical parameters.
Action 1 and 2:
Condition: standard mode
start when: 1
Repeat: -1
I do not know how to attach a configuration file.
So you are using "Execute external program" action, not "Generate reports" action?
Then both actions executed simultaneously.
If you need to wait for external program results, use HM Script action instead and ExecuteProgram command
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
or use "External" test item to start your software and assign "Send e-mail" action to the test...
Regards
Alex
Then both actions executed simultaneously.
If you need to wait for external program results, use HM Script action instead and ExecuteProgram command
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
or use "External" test item to start your software and assign "Send e-mail" action to the test...
Regards
Alex
Hello,
or use "External" test item to start your software and assign "Send e-mail" action to the test...
This is the solution I am currently using.
I wish that the triggered actions do not wait for the end of the previous action "Execute external program".
... Or there is no parameter specifying in action properties:
- wait for the end of the previous action
- Perform in parallel with the previous one.
Regards
Artur
or use "External" test item to start your software and assign "Send e-mail" action to the test...
This is the solution I am currently using.
I wish that the triggered actions do not wait for the end of the previous action "Execute external program".
... Or there is no parameter specifying in action properties:
- wait for the end of the previous action
- Perform in parallel with the previous one.
Regards
Artur
That's how "Execute external program" works, it does not wait for external program.I wish that the triggered actions do not wait for the end of the previous action "Execute external program".
But you said you need reports, so you need action that waits for results. I am confused now.
Use HM Script for this.wait for the end of the previous action
As I said - If you need to wait for external program results, use HM Script action instead (ExecuteProgram command)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
HM Script action offers both options - there are StartProgram and ExecuteProgram command (1st does not wait for external program, 2nd waits)... Or there is no parameter specifying in action properties:
- wait for the end of the previous action
- Perform in parallel with the previous one.
Regards
Alex