Host Monitor service not starting when server starts

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
meppyman
Posts: 118
Joined: Sun Sep 06, 2009 1:53 am
Location: Melbourne

Host Monitor service not starting when server starts

Post by meppyman »

SBS Server that has no problems starting any other services, but HM seems to not start when the server reboots. I am getting the following:

Event ID: 7009
Timeout (30000 milliseconds) waiting for the KS Advanced Host Monitor service to connect.

Event ID: 7000
The KS Advanced Host Monitor service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.

I have the service set to try and restart two more times if it fails, but it still does not start. Is there a late starting service I can make it dependant on so that it starts ok?

If I manually start it after logging in to the server it starts quickly without any issues. I suspect that Exchange and WSUS, etc. that are starting during boot time that might cause it to not start quickly enough. I can make it dependant on Exchange perhaps?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Normally HostMonitor service needs just 1-5 seconds to report status after startup..

Ok, lets try to setup additional dependancy. There is special utility for you
www.ks-soft.net/download/utils/hmservinst.zip
This is command line utility with 1 obligatory parameter: path to hostmon.exe module. Plus you may add several optional command line parameters: name of master services.
Example: hmservinst.exe "C:\Program Files\HostMon8\hostmon.exe" snmp fax 6to4

Regards
Alex
sneader
Posts: 90
Joined: Thu Dec 22, 2005 3:32 pm

Post by sneader »

Hi Alex. I've started to have this same problem. This is on a Windows 7 machine. When I manually start the service, it only takes about 5 seconds. But the Event Log tells me that when the server starts, I am getting the same error as meppyman (taking more than 30 seconds to respond)

As a side note, the Web Service is starting fine.

I have changed both services to use "Automatic - Delayed Start", but it does not seem to help.

I'm willing to try the utility that you gave meppyman, but I do not understand how to use it yet.

- Scott
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1st parameter - path to HostMonitor executable;
2nd and optional 3rd, 4th.. parameters - name of "master" services that should be started before HostMonitor server.
But I am not sure it can help when "Delayed Start" options does not help...

I think default delay in Windows 7 - 120 sec.
You may try to increase this interval, add AutoStartDelay value (Type: REG_SZ) into registry HKLM\SYSTEM\CurrentControlSet\Control.
E.g. AutoStartDelay = 240

Regards
Alex
sneader
Posts: 90
Joined: Thu Dec 22, 2005 3:32 pm

Post by sneader »

Hi Alex.

Good idea on changing AutoStartDelay. Unfortunately, that did not solve it, but it gave me an idea.

I did some research and found that I can change the 30 second (30000 millisecond) timeout value. On Windows 7, you have to create a new registry entry:

Place Into: HKLM\SYSTEM\CurrentControlSet\Control
Entry Name: ServicesPipeTimeout
Value Type: DWORD
Value (Decimal): 120000 (which would equal 120 seconds)

I tried making it 60 seconds, but still got the same error. Changing to 120 seconds (2 minutes) solved the problem.

- Scott
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Great, thank you for information.
I assume this happens because Windows starts initial service thread using "lowest" priority and system too busy with other tasks...

Regards
Alex
Post Reply