AnsweredAssumed Answered

Creating a simple probe that overrides callbacks

Question asked by amarshall on Jan 22, 2013
Latest reply on Jan 23, 2013 by amarshall

Hi,

 

I am looking at creating a probe using the .NET framework, that simply calls a command to turn on a service when activated and vice versa.

 

I created a class that inherits from the Nimbusprobe, overrided the RestartCallback, and StopCallback.

 

I use this class on a console app,

ServiceContollerProbe

probe = newServiceContollerProbe();

probe.Register();

probe.Log(

global::Nimsoft.NimBUS.Diagnostics.LogLevel.Normal, "Probe Started");

probe.UserLogin("administrator", "K3Yst0n3");

 

When I try to use the probe I get the following error message in my log:

ServiceContoller: Failed to log in: Could not get 'NIM_PROBE_KEY' from environment.

 

Can anyone provide any clues, or if my logic is right at all?

 

thanks,

Alex

Outcomes