KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

disable remote service?

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Wed Apr 30, 2003 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Apr 30, 2003 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Fri May 02, 2003 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Fri May 02, 2003 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri May 02, 2003 12:54 pm    Post subject: Reply with quote

Is HostMonitor running as service? What account it uses? What version of HostMonitor?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Mon May 05, 2003 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Marcus



Joined: 18 Nov 2002
Posts: 367

PostPosted: Mon May 05, 2003 1:31 am    Post subject: Reply with quote

>[SC] OpenSCManager failed 5

failed 5 = access denied.

See the security eventlog which account is actually connecting to the system.
Back to top
View user's profile Send private message
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Mon May 05, 2003 2:02 am    Post subject: Reply with quote

It is the right account.

[ This Message was edited by: M@ster on 2003-05-05 02:02 ]
Back to top
View user's profile Send private message
Marcus



Joined: 18 Nov 2002
Posts: 367

PostPosted: Mon May 05, 2003 5:46 am    Post subject: Reply with quote

> 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
View user's profile Send private message
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Mon May 05, 2003 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon May 05, 2003 12:03 pm    Post subject: Reply with quote

>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
View user's profile Send private message Visit poster's website
M@ster



Joined: 24 Oct 2002
Posts: 78
Location: Germany

PostPosted: Tue May 06, 2003 12:27 am    Post subject: Reply with quote

Quote:

On 2003-05-05 12:03, KS-Soft wrote:
[i]
This problem already fixed. http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?topic=667&forum=10&0

Regards
Alex

Thank you!
How could I miss that
Back to top
View user's profile Send private message
agressiv



Joined: 06 Oct 2002
Posts: 35

PostPosted: Fri May 23, 2003 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Sat May 24, 2003 1:23 am    Post subject: Reply with quote

>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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index