Hi!
I'm running HostMon 6.10 on win 2003 Enterprise Edition. It working really good, except for one thing that I can't seem to get running.
I have at test that checks wheter a service is running or not. If it is not run, the proper action should be that the service starts, but it does not.
The action is set up the following way:
Execute by: Agent Agentname
Action: Start service
Comp : <local computer>
Service : Servicename
Parameters:
Connect : No
Username :
The agent is running on a win 2003 SBS.
I have tried several variations of the setup, but it does start the service.
The connection to the agent is working properly, because I can list the available services in the Service field.
It seems to me that HostMon does not try to start the service. There are no entries in the eventlog regarding failed attempts to start the service, so I do not think that it is a user-rigth related problem.
To ensure that it is not the needed service that is the problem, I have tried 4-5 different services, but all without result.
Hope you can help me making this work.
Regards
Hanus
Starting services
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
What account do you use to start RMA? Does it have necessary rights? To start/stop/restart service it requires admin account. You may specify admin account for the Remote Monitoring Agent using Services applet (Start > Run > services.msc > KS Remote Monitoring Agent > Log on tab).
Probably, you have specified "Repeat 1 times" option in "Action Properties" window for the "Start Service" action? Try to enable "Repeat until status changes" option.
Regards,
Max
Probably, you have specified "Repeat 1 times" option in "Action Properties" window for the "Start Service" action? Try to enable "Repeat until status changes" option.
Regards,
Max
Start Service
Hi!
Enabling "Repeat until status changes" worked. I cant se the logic:) but it worked.
Regards
Hanus
Enabling "Repeat until status changes" worked. I cant se the logic:) but it worked.
Regards
Hanus
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Start Service
Glad to hear that.Hanus wrote:Enabling "Repeat until status changes" worked.
The logic is very simple (but important).Hanus wrote:I cant se the logic:) but it worked.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Repeat
================
Repeat: N times; or until status changes
Defines the number of repeats of the action if the status of the test was not changed. For example if you want to send an e-mail to a network administrator only once when test status changes, set this parameter to 1. If you need to execute action every time when test failed, set this option to "until status changes".
================
Regards,
Max
I assume you have tested action using "bad" tests. When you are using "repeat 1 time" option, action will be executed when test changes status. If test already shows "bad" status, action will not be executed.Enabling "Repeat until status changes" worked. I cant se the logic:) but it worked
So, if you want to test actions, select "good" test and use "Reverse alert" option to imitate failure
Regards
Alex
Re: Start service
Thanks for the help.
Regards
Hanus
Regards
Hanus