Hi Greg.
No you are not missing anything and yes that works fine apart from having to call a batch file with a username and password in it.
As the rights to be able to stop and start services have already had to be created for the account that servers alive was checking and the API calls seemed to be used by servers alive to stop and then start the service it would just be a lot neater if it was not to much problem to have a alert to stop only.
Hmm, checking the syntax of NETSVC, I'm not sure why you think you need a username/password. NETSVC runs in the context of the calling process (in this case SAlive) so should run w/o problems.
I have NOT tried this with SALive, but have a similar setup using SQL Server, and there's no password/username issues.
Davey
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg D. Moore Sent: Thursday, October 02, 2003 17:43 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [SA-list] Ability to be able to Stop services only.
At 04:52 PM 10/2/2003 -0400, [EMAIL PROTECTED] wrote:
>Hi Dirk. > >That is half the thing that I am wanting to do. That will allow me to >put checks in to Maintenance but I need to stop services. Currently in
>the build that has the Internal Servers Alive command I see (Re)start >service, Reboot Server and the Internal command not one to just stop >the service only.
Have it execute a normal EXE/BAT file and simply do a "NET STOP servicename".
That should work (or am I missing something?)
If you need to stop it on another box, find the resource kit tool NETSVC which is similar, but works across machines.
>Example Service 1 receives mail. Service 2 Sends mail. > >Something happens and service 2 stops and wont restart even after >rebooting the server. So after 10 checks I want to be able to put the >check for service 1 in to maintenance mode and stop the service. > >This means that mail would not be received by the machine at all rather >than just arriving and then being held in-between services. > >I hope this makes more sense. > >Thanks > >Davey > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >Behalf Of Dirk Bulinckx >Sent: Thursday, October 02, 2003 15:12 >To: [EMAIL PROTECTED] >Subject: RE: [SA-list] Ability to be able to Stop services only. > >In the latest beta builds (http://beta.woodstone.nu) there is an alert >that sets an entry to maintenance mode. > > >dirk. > > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Behalf Of [EMAIL PROTECTED] >Sent: Thu Oct 02 7:58 PM >To: [EMAIL PROTECTED] >Subject: [SA-list] Ability to be able to Stop services only. > > >Hi Dirk. > >Would it be possible to have an Alert that has the action of stop NT >service. > >We have a system that has a series of services that pass information >from one to another. What I would like to be able to do is have it so >if one of the services in the chain stops responding then I can stop the >whole chain of services across the machines. > >This means the whole system stops rather than just one place that can >cause a major problem. > >The addition of the Internal Maintenance Alert is a great feature. > >Thanks > >Davey Rance > >To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] >With the following in the body of the message: > unsubscribe SAlive > >To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] >With the following in the body of the message: > unsubscribe SAlive
Greg D. Moore Director of IT [EMAIL PROTECTED] Powerone Media 1-800-6POWER6 Security Tip: Have you run Windows Update Lately?
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive
Greg D. Moore Director of IT [EMAIL PROTECTED]
Powerone Media 1-800-6POWER6
Security Tip: Have you run Windows Update Lately?
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive
