Starting services

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Hanus
Posts: 19
Joined: Tue Jan 02, 2007 7:45 am
Location: Danmark

Starting services

Post by Hanus »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
Hanus
Posts: 19
Joined: Tue Jan 02, 2007 7:45 am
Location: Danmark

Start Service

Post by Hanus »

Hi!

Enabling "Repeat until status changes" worked. I cant se the logic:) but it worked.

Regards
Hanus
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Start Service

Post by KS-Soft Europe »

Hanus wrote:Enabling "Repeat until status changes" worked.
Glad to hear that.
Hanus wrote:I cant se the logic:) but it worked.
The logic is very simple (but important).

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Enabling "Repeat until status changes" worked. I cant se the logic:) but it worked
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.
So, if you want to test actions, select "good" test and use "Reverse alert" option to imitate failure

Regards
Alex
Hanus
Posts: 19
Joined: Tue Jan 02, 2007 7:45 am
Location: Danmark

Re: Start service

Post by Hanus »

Thanks for the help.

Regards
Hanus
Post Reply