Can't read Childs alarms from ROOT...

Hello and merry christmas

I have developed a MIP plugin. Standalone all work’s fine, but when I move to MFA, from my root, I can’t read alarms from the child’s.

I create ServerId by his hostname, port, type and guid. Then use this ServerId in AlarmClient method. Is correct ? Exist some better technique ?

From my ROOT event server plugin, when I create AlarmClient and relative ServerId to read alarms from other EventServer, I receive the error on the log:

2018-12-26 02:51:30.081 UTC+01:00 Info Root ServerId: Hostname: milestoneroot.bidlab.local - id: dfb9a5f5-d7c4-4f4b-a83b-2c6b0d6512e2

2018-12-26 02:51:30.081 UTC+01:00 Info Child Event Server: Hostname: mchild2.bidlab.local - id: 4a3a541f-7e78-4cb6-93a3-475f34ec648b

2018-12-26 02:51:30.081 UTC+01:00 Info ServiceUtil.CreateServiceRegistrationProxy Warning: Unable to look up whether provided user is a basic user (therefore assuming it is not) for server: MChild2.bidlab.local

2018-12-26 02:51:30.144 UTC+01:00 Erroe AlarmClientManager Failed to create alarm client. Exception: Object reference not set to an instance of an object.

2018-12-26 02:51:30.144 UTC+01:00 Error BidManageAlarm-getAlarmsRelatedTo Alarm Client not created: Unable to find EventServer via Registered Services (mchild2.bidlab.local:80)

Thank’s.

Ciao.

Gigi

You should not create ServerId ! It contains other fields that are initialized during lookup - these are used to find credentials among other things.

Please try getting the ServerId from a server-item, like the GetSiteItem method