newrelic / nri-perfmon

Windows Perfmon / WMI On-Host Integration for New Relic Infrastructure
Other
13 stars 19 forks source link

Error in the Infra Agent logs #30

Closed stevescott34 closed 3 years ago

stevescott34 commented 3 years ago

Seeing this error in the infra agent logs while the vri-perfmon is running

any guidance you can provide would be greatly appreciated.

time="2021-02-22T10:06:48-05:00" level=error msg="Integration command failed" error="exit status 3762504530" instance=nri-perfmon-metrics integration=com.newrelic.perfmon prefix=integration/nri-perfmon stderr="\nUnhandled Exception: Newtonsoft.Json.JsonSerializationException: Unexpected end when deserializing array. Path 'counterlist[0]', line 11, position 1.\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException(JsonReader reader, JsonContract contract, Object currentObject, String message)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r\n at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\r\n at NewRelic.Program.Main(String[] args) in Z:\eclipse\nri-perfmon\nri-perfmon\Program.cs:line 102\n" working-dir="C:\Program Files\New Relic\newrelic-infra\custom-integrations"

sschwartzman commented 3 years ago

Did you build a custom counter file? This error indicates it had trouble parsing it:

Unhandled Exception: Newtonsoft.Json.JsonSerializationException: Unexpected end when deserializing array. Path 'counterlist[0]', line 11, position 1.

If so, can you attach your config file?

stevescott34 commented 3 years ago

Hi here is the config file which I assume is the default one. thanks for the quick response

config.zip

sschwartzman commented 3 years ago

Hmm, that is the default one, line 11 doesn't look any different from the others, so I'm not sure what's going on here. Let's run down a checklist:

stevescott34 commented 3 years ago

I re-installed both the new relic infra agent and the perfmon integration and all appears to be fine now. I can see the data in New Relic now. I suspect it was something hanging around from a previous attempt to deploy.

Thanks again for the help and for the quick responses !

Let's consider this ticket closed

sschwartzman commented 3 years ago

No problem, glad it worked out!