Hi Team,
I'm facing an issue, where i'm trying to monitor a table on an element by creating a service. In the actual table one of the row column surpasses the threshold and triggering critical alarms. (As per screenshot 1)
I'm trying to update a already created service with the Servers Info table parameter ID. On the service, the Cluster Members parameter is showing alarm as red, but the element holding it shows as green.(As per screenshot 2)
Below is the code i have used for creating & updating this service. Please help me on understanding what is the issue
Creating Service:
List<ServiceInfoParams> serviceParams=new List<ServiceInfoParams>();
var service = new ServiceInfoEventMessage { Name = serviceName };
service.DataMinerID = dmaAgentId;
service.ServiceParams = serviceParams.ToArray();
var viewIDs = new[] { GetViewForServiceCreation(viewNewName).Id };
_engine.Log("Create service ends here");
var serviceId = engine.AddService(service, viewIDs);
Updating Service:
filters.Add(new ServiceParamFilter
{
ParameterID = Convert.ToInt32(pid.GetFieldValueById(Ob_Resourcemanagement.Sections.Serviceparams.Parameter_Id).Value.Value.ToString()),
IsIncluded = true,
});
var sipElement = new ServiceInfoParams
{
Alias = elementName,
DataMinerID = Convert.ToInt32(elementId?.Split('/')[0]),
ElementID = Convert.ToInt32(elementId?.Split('/')[1]),
ParameterFilters = filters.ToArray(),
};
serviceInfoParamsList.Add(sipElement);
_serviceInfo.ServiceParams = serviceInfoParamsList.ToArray();
var addServiceMessage = new AddServiceMessage
{
DataMinerID = _serviceInfo.DataMinerID,
HostingDataMinerID = _serviceInfo.HostingAgentID,
Service = _serviceInfo,
};
engine.SendSLNetSingleResponseMessage(addServiceMessage);
Screenshot 1 (On actual element appears like this)
Screenshot 2 (On Service appears like this)
Hi Hari Priya,
What version of DataMiner are you running? It seems like you are facing one of the two or even the two issues that have already been fixed in the Main Release: 10.3.0 [CU21]; 10.4.0 [CU9] and Feature Release: 10.4.12.
General Feature Release 10.4.12 | DataMiner Docs
If you are running above these versions, the best thing to do is to raise a task so we can follow up this properly.