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,
Can you check and share the service configurations?
Right click on the service -> Edit and select the Parameters tab.
I would like to know what you have configured here: