Hello !
How can I have my actions performed in an order, I need action 1 to create a textfile which action 2 should mail to me, now it seems like both actions are fired simultaneously and therefore I can't get hold af the textfile !
Actions in order
If 2 actions have the same value of the "Start when XX consecutive Bad/Good results occur" option, actions will be started in creation order.
So, if you want to create report and then send it by mail, add "Generate reports" action" first and add "Send e-mail" action later.
Please note: if you create text file using some external program and "Execute external program" action, HostMonitor will start external program but it will not wait until program terminates. In this case you can use "Run HMScript" action (instead of "Execute external program" action) with single command "ExecuteProgram <time_to_wait> <command_line>"
Regards
Alex
So, if you want to create report and then send it by mail, add "Generate reports" action" first and add "Send e-mail" action later.
Please note: if you create text file using some external program and "Execute external program" action, HostMonitor will start external program but it will not wait until program terminates. In this case you can use "Run HMScript" action (instead of "Execute external program" action) with single command "ExecuteProgram <time_to_wait> <command_line>"
Regards
Alex
Thank you, it helped my problem, but something is strange about what account is used when running ExternalProgram from a HM-Script ?
I'm logged on with a domain admin account, the same as the service is using, and doing the following commands:
ExternalProgram calls a DOS batch-file containing this:
c:winntsystem32cmd /c dir p:osunattendinstall*.ins /b > c:tempins.txt
c:winntsystem32cmd /c del p:osunattendinstall*.ins
The first line is doing well, but he second is not, if I give Authenticated Users the right to delete in the directory it works fine, but they are not allowed to delete files.
Regards
Sven
I'm logged on with a domain admin account, the same as the service is using, and doing the following commands:
ExternalProgram calls a DOS batch-file containing this:
c:winntsystem32cmd /c dir p:osunattendinstall*.ins /b > c:tempins.txt
c:winntsystem32cmd /c del p:osunattendinstall*.ins
The first line is doing well, but he second is not, if I give Authenticated Users the right to delete in the directory it works fine, but they are not allowed to delete files.
Regards
Sven