Applies to all Network Cameras with Alarm Out.
The Alarm Output connection on modern Network Cameras is not a contact closure but a voltage level change.
Below, please find a diagram of the circuit needed to create a relay operated closure.
A easier solution would be to utilize a ready made relay module available in many different versions similar to the ones below pictured
Besides the relay module, a DC power-supply may be needed