KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Actions in order

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
Wooltown



Joined: 22 May 2002
Posts: 115
Location: Sweden

PostPosted: Mon Mar 17, 2003 7:05 am    Post subject: Reply with quote

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 !


Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Mar 17, 2003 2:06 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Wooltown



Joined: 22 May 2002
Posts: 115
Location: Sweden

PostPosted: Tue Mar 18, 2003 2:30 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Tue Mar 18, 2003 8:32 pm    Post subject: Reply with quote

I hope this update http://www.ks-soft.net/download/hm369.zip will fix the problem.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Wooltown



Joined: 22 May 2002
Posts: 115
Location: Sweden

PostPosted: Wed Mar 19, 2003 1:33 am    Post subject: Reply with quote

Hello Alex

It sure did, thank you for your always excellent and fast help, I wish all were as fast as your companý are on helping their customers

Regards
Sven

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index