Comments
-
I had to add/change the following lines of code. I found an older post that gave me the light bulb. var alerts = new[] ; var dcs = new DataContractSerializer(alerts.GetType()); dcs.WriteObject(writer, alerts); Thanks so much
-
I finally got the code to work. I just acknowledged an alert. Thanks for all you help.
-
What does a result of “Return” mean for the Invoke method?
-
Well, I wish I knew what was going on. After the change, the alert still was not acknowledged. Thanks
-
I hate to keep bothering you. Here is the code that I am running. I just tested it, and it’s not acknowledging the alert. Maybe I’m missing something. public class Acknowledge { public void AcknowledgeAlert(StringAlert stringAlert) { AlertInfo alertInfo = new AlertInfo(); alertInfo.DefinitionId = stringAlert.alertDefID;…
-
So one more question. How do I acknowledge alerts through code. Isn’t it Invoke(“Orion.AlertStatus”, “Acknowledge”, parameters); What are the parameters. My impression is that the parameters are an XmlElement array.
-
Hello Here is the Alert class. public class StringAlert { public Guid alertID; public string alertDefID; public string objectType; public DateTime triggerTimeStamp; public string objectName; public string activeObject; public string info; public DateTime acknowledgedTime; public string acknowledgedBy; public byte…
-
Hello I am trying to create a SWIS Client using c#. I used the "Add Service Reference" in Visual Studio to get the proxy classes. When I run my client code, when it goes to query the database I get a "RunQuery failed, check fault information" error. Here is my code: static void Main(string[] args) { byte[] response = new…
-
Thank for the upload. Here is the problem I’m having. I am receiving the alert as a custom Alert type (I can’t change this). The Alert type has alertDefID, objectType, and activeObject all as strings. How do I receive the Alert object and convert it so that I can use the invoke method? Thanks so much
-
I am using NPM 10.1.3
-
Assigning WScript.Arguments.Item(0) to a variable was the answer. Thanks
-
So I connected to https://localhost:17778/SolarWinds/InformationService. It has a certificate error saying that the certificate is invalid. Also I tried running svcutil.exe https://localhost:17778/SolarWinds/InformationService?wsdl and that also gave an error about not trusting the certificate. I tried installing the…