New alarm when hardware was deleted

Hi,

The goal is to add a new alarm to the alarm list when a device (hardware) was deleted.

It should be clear in the alarm line which hardware was deleted (Name).

I managed to detect when this happens and get the FQID of the hardware (source Item).

The problem is when I create a new alarm and set the Item in the eventheader as the source, no new alarm is added. I suppose this is because the Item doesn’t exist anymore. (unknown source)

How can this be solved? Is there a way to create a new alarm with an unknown source?

Kind regards,

Kenny

No. There has to be a source.

A possible workaround is for you to create a user-defined event and use that as source.

Hi Bo,

So there is no way to pass a temp Item?

In other words, the Item has to be created and saved to the configuration/database?

KR

Correct.

Thanks,

just to notify this. I got some working code on a 2021 R2 listening to System.SystemConfigurationChangedIndication to detect when item is deleted.

Tried this exact same code on a 2022 R3, nothing is detected. The message is not received.

Is this known/changed?

Already tried the new VideoOS.Platform.dll from nuget.

Kind regards,

Kenny

Hi,

My question above is still active.

Just tested again with the latest sdk 2022R3 dll’s.

@Bo Ellegård Andersen (Milestone Systems)​ is this a known issue?

Kind regards,

Kenny

I tested a sample called Keep your configuration updated (https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configupdated/readme.html&tree=tree_2.html ), because the sample also uses SystemConfigurationChangedIndication and it is working fine between 2022R3 SDK and 2021 R2 VMS.

Please try this unmodified sample with your server and let’s see if it works for you too. (FYI: it took a few minutes for me until I got updates on the sample)

Also, we are suspecting if your server might have special settings…. Can you please try your code (or the sample) with another server?