restart service

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

Do I have to configure an alert profile for every service I want to restart after a failure?
He should try to restart the service, and send an email.

<font size=-1>[ This Message was edited by: M@ster on 2002-11-12 06:28 ]</font>
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

As I understand you have set of tests those monitor your services. If service XX fails, HM must restart service XX. Right?
In this case you can use the same action profile for all tests. Just specify %ServiceComp% and %ServiceName% macro variables in the action properties dialog (use these macros instead name of target system and name of service). You can use these macros when configure "send e-mail" action as well

Regards
Alex
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

Great!
Maybe I should take a closer look at the variables :wink:
User avatar
M@ster
Posts: 78
Joined: Thu Oct 24, 2002 6:00 pm
Location: Germany

Post by M@ster »

Another question regarding NT Service Check.

I have a folder for every Server I want to monitor. Is it possible to use a variable for the servername? I tried %folder%, but that doesn't work :sad:
That would have the advantage, that I can copy a test to a new folder and not have to adjust every test/servername.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Where do you want to use variable? In the test properties dialog? Its impossible. If you have set of tests and want to create the same sets for another servers, you can use export/import functions. Export selected tests to text file, start any text editor that has find&replace function, replace some test parameters (e.g. servername, username, password), and import tests from text file into new folder.

Regards
Alex
Guest

Post by Guest »

On 2002-11-12 15:07, KS-Soft wrote:
Where do you want to use variable? In the test properties dialog? Its impossible.
:sad: That would be a nice feature for forther versions.
If you have set of tests and want to create the same sets for another servers, you can use export/import functions. Export selected tests to text file, start any text editor that has find&replace function, replace some test parameters (e.g. servername, username, password), and import tests from text file into new folder.

Regards
Alex
That's the way I handle it now. The other way would be a lot easier.

regard
René
User avatar
mpriess
Posts: 112
Joined: Tue Jul 02, 2002 6:00 pm
Location: Arizona, USA

Post by mpriess »

I would recommend using mail merge in MS Word. You can create hundreds of similar tests in just a few minutes this way. I link to a SQL table and merge all of the server names into the different tests. After this, I recommend copying the results from word to notepad then saving it as a text file. Then, perform the import and you are good to go.
Locked