How to check a windows server status with () in the service name

Started by Andy Dennis, March 31, 2010, 04:46:46 PM

Previous topic - Next topic

Andy Dennis

Hello

I have a windows service which is called Lotus Domino Server (DLotusDominodata). I can't seem to monitor this as a service but I can monitor services without () (ie System.ServiceState("Alerter")) .

Is there anyway to get around this ?

Thanks

Andy

Victor Kirhenshtein

Hi!

Are you sure that it's service name and not display name? Also, do you use quotes, like System.ServiceState("Lotus Domino Server (DLotusDominodata)") ?

Best regards,
Victor

Goriem

Hi

I realise that this is an old thread, but i have just stumbled upon the same issue, i want to monitor an lotus domino server, and the service name (not display name) contains ( ) and there fore i cannnot get a service state and encapsulation the service name with "" doesn't help any ideas?

Regards

Goriem

argh - sorry i had the "" at the wrong place, this offcource : System.ServiceState("Lotus Domino Server (ProgramFilesLotusDominodata)") works just fine..

sorry