How do I register to receive System Monitor and Hardware Events that can be used to generate alarms?
Many Thanks,
Frediano
How do I register to receive System Monitor and Hardware Events that can be used to generate alarms?
Many Thanks,
Frediano
I guess NewEventsIndication includes these events..
Try to see the Status Viewer sample.
In this case there are Server.Responding, Server.NotResponding, Server.ServerResponding and Server.ServerNotResponding filters but nothing for “hardware communication stopped” (Hw Events) and “Live FPS Normal / Critical” and “Recording FPS Normal / Critical” for System Monitor Events
Frediano
The events you mention are picked out especially to make a visible change to the state of the server object in the tree. I still believe the other events should be there, just listed in the list, when they happen.
I must admit I haven’t tested prior to answering, and it has been a while since I last tested or played with the sample. Did you trigger those events on the VMS and saw that they were not received by the sample?
No, I’m still implementing.
I am looking for message ID string of those Events to do something like:
VideoOS.Platform.Data.EventData eventData = message.Data as VideoOS.Platform.Data.EventData;
if (eventData != null && (eventData.EventHeader.Message.Equals(Server.RespondingMessage) ||
eventData.EventHeader.Message.Equals(Server.NotRespondingMessage) ||
eventData.EventHeader.Message.Equals(Server.ServerRespondingMessage) ||
eventData.EventHeader.Message.Equals(Server.ServerNotRespondingMessage)))
{
...
}
Thanks,
Frediano
Bo,
here is some of the messages I was looking for:
2023-11-16 18:30:01.203 | INFO | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Recording FPS Critical
2023-11-16 18:30:01.370 | INFO | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Recording FPS Normal
2023-11-16 18:30:01.356 | INFO | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Live FPS Critical
2023-11-16 18:30:01.370 | INFO | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Live FPS Normal
but I can’t simulate the event “Hardware Communication Stopped”, also there is a message in Italian, is it correct?
2023-11-16 18:47:57.251 | INFO | CheckConnections[0.9.0.0].CheckConnectionsBackgroundPlugin.NewEventHandler |> Base Message: Caduta Connessione con Camera
Many Thanks,
Frediano
The Italian message could be “Hardware Communication Stopped”, I disconnected the camera from the network
Frediano
I am wondering if this list is useful? -
Interesting, now a question arises spontaneously “how are Driver Events intercepted?”, are there any examples to consult?
Many Thanks,
Frediano