start service
we have setup hostmonitor on a server where it is installed as a service. we test several servers, disk space, applikation, databases and services. on a backup server we have installed hostmonitor again as a service. there we only test whether or not the hostmonitor service on the main server is up. if not, it should start the service again. now we found out, that this does not work. when the service on the main server is down, the backup host monitor will not start it again. only when i start the host monitor applikation it will do so.
do we something wrong? or is this just a fact or an error?
do we something wrong? or is this just a fact or an error?
I think you did not provide account that has necessary permissions to start services. Specify this account on Service page in the Options dialog.
BTW When HostMonitor cannot execute some action, it records information about error into "system" log that specified on Advanced Logging page in the Options dialog. So, you can check that to log to know what's wrong.
Regards
Alex
BTW When HostMonitor cannot execute some action, it records information about error into "system" log that specified on Advanced Logging page in the Options dialog. So, you can check that to log to know what's wrong.
Regards
Alex
Hi Alex
Thanks for your hints. To test, I do the following:
Backup Server = HostMon runs as a service only.
Main Server = HostMon runs as a service only.
I stop the service on the backup server
The main server should send me an e-mail and should start the service on the backup server again.
I get mail:
05.02.2003 07:50:57 “Status : Bad
Systlog shows:
05.02.2003 07:50:57 Error: Cannot open service "HostMonService". The specified service does not exist as an installed service.
I start HostMonitor Applikation on main server
05.02.2003 07:54:51 Monitor started (Syslog)
I get mail:
Status : Bad
Date : 05.02.2003 07:54:53
Status : Ok
Date : 05.02.2003 07:55:01
Status : Ok
Date : 05.02.2003 07:55:54
Thanks for your hints. To test, I do the following:
Backup Server = HostMon runs as a service only.
Main Server = HostMon runs as a service only.
I stop the service on the backup server
The main server should send me an e-mail and should start the service on the backup server again.
I get mail:
05.02.2003 07:50:57 “Status : Bad
Systlog shows:
05.02.2003 07:50:57 Error: Cannot open service "HostMonService". The specified service does not exist as an installed service.
I start HostMonitor Applikation on main server
05.02.2003 07:54:51 Monitor started (Syslog)
I get mail:
Status : Bad
Date : 05.02.2003 07:54:53
Status : Ok
Date : 05.02.2003 07:55:01
Status : Ok
Date : 05.02.2003 07:55:54
that's right markus. but when i check
alert when service ..... doesen't answer
i only find 'HostMonService'
in the computer management i finde this service called advanced host monitor like you mentioned
_________________
hanspeter burkart
mettler-toldeo gmbh
cns-team
<font size=-1>[ This Message was edited by: chip on 2003-02-05 01:08 ]</font>
<font size=-1>[ This Message was edited by: chip on 2003-02-05 01:08 ]</font>
<font size=-1>[ This Message was edited by: chip on 2003-02-05 02:26 ]</font>
alert when service ..... doesen't answer
i only find 'HostMonService'
in the computer management i finde this service called advanced host monitor like you mentioned
_________________
hanspeter burkart
mettler-toldeo gmbh
cns-team
<font size=-1>[ This Message was edited by: chip on 2003-02-05 01:08 ]</font>
<font size=-1>[ This Message was edited by: chip on 2003-02-05 01:08 ]</font>
<font size=-1>[ This Message was edited by: chip on 2003-02-05 02:26 ]</font>
"HostMonService" is correct name of the service. "Advanced Host Monitor" is "display name" property of the service. So, use "HostMonService".
Reason to the problem can be lack of rights for the account that you use to start HostMonitor as service. What account have you specified on Service page in the Options dialog? Try to use the same account that you use when start HostMonitor as regular application.
Regards
Alex
Reason to the problem can be lack of rights for the account that you use to start HostMonitor as service. What account have you specified on Service page in the Options dialog? Try to use the same account that you use when start HostMonitor as regular application.
Regards
Alex
Tks for your feedback alex. But there is something I do not understand. I have set up both HM to check each other und to start the service in case it fails and send me an e-mail. When the HM application is running, everything works perfect. If I shut the application and have just the services running it does not work. When I stop the service, I get the required mail. In the syslog I can read:
Error: Cannot open service "HostMonService". The specified service does not exist as an installed service.
When I start HM I get again an e-mail, the test turns red and the service on the other computer is getting started. After that I get an other mail informing me about the changed status. So where is the difference?
Error: Cannot open service "HostMonService". The specified service does not exist as an installed service.
When I start HM I get again an e-mail, the test turns red and the service on the other computer is getting started. After that I get an other mail informing me about the changed status. So where is the difference?