View previous topic :: View next topic |
Author |
Message |
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Wed Apr 30, 2003 1:32 am Post subject: |
|
|
Hi Alex,
is it possible to disable a service when the diskspace is low? I do not want to stop it. I have to disable it, because it would restart automatically.
Regards
René |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Apr 30, 2003 12:20 pm Post subject: |
|
|
Sorry, HostMonitor cannot disable services. But I think there are many freeware command line utilities those can do that.
If you will not be able to find one of these utilities, we can create it for you.
Regards
Alex |
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Fri May 02, 2003 3:38 am Post subject: |
|
|
Quote: |
If you will not be able to find one of these utilities, we can create it for you.
|
If you could show me an easy way to disable a remote service if a test fails, I would be happy
Regards
René
[edit]
I have a script.
[/edit]
[ This Message was edited by: M@ster on 2003-05-02 05:15 ] |
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Fri May 02, 2003 8:25 am Post subject: |
|
|
I try to realise it with the sc.exe from the NT4 Ressource Kit.
I wrote a batch:
@ECHO off
echo Stopping the Services on %1
echo ==================
@echo on
sc \%1 stop MSEXchangeMTA
sc \%1 config MSEXchangeMTA start= disabled
pause
When the test failes, I call an external program with the testname as parameter. But it only gives me an error:
C:Program FilesHostMonitor>sc \servername stop MSEXchangeMTA
[SC] OpenSCManager failed 5
When I go to a command box and type in the name of the script with the servername as parameter, it works great.
Can you help me? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri May 02, 2003 12:54 pm Post subject: |
|
|
Is HostMonitor running as service? What account it uses? What version of HostMonitor?
Regards
Alex |
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Mon May 05, 2003 12:25 am Post subject: |
|
|
Quote: |
On 2003-05-02 12:54, KS-Soft wrote:
1. Is HostMonitor running as service?
2. What account it uses?
3. What version of HostMonitor?
Regards
Alex
|
1) yes
2) an account with domain admin rights
3) 3.56
René
[ This Message was edited by: M@ster on 2003-05-05 00:27 ] |
|
Back to top |
|
|
Marcus
Joined: 18 Nov 2002 Posts: 367
|
Posted: Mon May 05, 2003 1:31 am Post subject: |
|
|
>[SC] OpenSCManager failed 5
failed 5 = access denied.
See the security eventlog which account is actually connecting to the system.
|
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Mon May 05, 2003 2:02 am Post subject: |
|
|
It is the right account.
[ This Message was edited by: M@ster on 2003-05-05 02:02 ] |
|
Back to top |
|
|
Marcus
Joined: 18 Nov 2002 Posts: 367
|
Posted: Mon May 05, 2003 5:46 am Post subject: |
|
|
> It is the right account.
According to the system it has not sufficient rights.
That's why I advised to look in the security eventlog. You then at least know for sure if you're connecting with the account you think you are connecting with.
If it is the right account, it has insuffient rights on the target computer. |
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Mon May 05, 2003 5:49 am Post subject: |
|
|
Now I know the cause of the problem.
HM ist started as system account (service). Thus all processes generated by HM run with the same permissions!
@Alex:
I would need an option to run an external command with a special user. Could you implement that? Could you make an "innoficial update" for me?
For now, I will set up another instance on another machine to do this task |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon May 05, 2003 12:03 pm Post subject: |
|
|
>HM ist started as system account (service). Thus all processes generated by HM run with the same permissions!
This problem already fixed. http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?topic=667&forum=10&0
I thought it was fixed long time ago, but it was fixed just last month. Please upgrade to version 3.68 before applying "unofficial" update.
Regards
Alex |
|
Back to top |
|
|
M@ster
Joined: 24 Oct 2002 Posts: 78 Location: Germany
|
Posted: Tue May 06, 2003 12:27 am Post subject: |
|
|
Thank you!
How could I miss that |
|
Back to top |
|
|
agressiv
Joined: 06 Oct 2002 Posts: 35
|
Posted: Fri May 23, 2003 2:52 pm Post subject: |
|
|
I still have this problem where WMI calls within VBScript still run as the System account, even though all of hostmonitor's tests are run with a Domain Admin.
1) If I don't run Hostmon as a service, we'd have to auto-login the box as a domain admin. Not desireable.
2) If I configure hostmon's service to actually run as a Domain Admin, we don't get the tray icon.
Suggestion:
Allow the "execute script" to *specifically* run as a separate user, much like what we can do with other tests.
Greg |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Sat May 24, 2003 1:23 am Post subject: |
|
|
>Allow the "execute script" to *specifically* run as a separate user, much like what we can do with other tests.
HostMonitor starts that thread under specified user account. But scripting host (MS Script Control) starts another thread when executes script. And that thread (started by scripting host) does not inherit security context from parent thread, it inherits context of the application
I am afraid we don't have good solution for this problem.
Regards
Alex
[ This Message was edited by: KS-Soft on 2003-05-24 01:24 ] |
|
Back to top |
|
|
|