Then just make the script to save the photo or video in a directory that Zabbix can access and then show with its URL widget type. If a motion sensor, either an external unit or a built-in, detects movement, make Zabbix send a command to the camera to record a screenshot of the camera stream, or possibly a short video. make your Zabbix alert about it if the number of mplayer processes is create a new item to check if for example mplayer process is around with Zabbix Agent item type and proc.num key and.Now that you have some server continuously playing the stream, it’s time to check the status with Zabbix.įrom here, checking the stream status with Zabbix is simple, just If anything goes wrong with the stream, mplayer quits itself, and the process goes away from the process list, too. In other words, under perfect conditions, the mplayer process should be running on the server all the time. The combination above would make mplayer play the stream with a null video driver thus, the stream will be continuously played, but just with no visual video output generated. Mplayer -vo null ‘rtsp://myusername: :443/myAddress’ To make sure the video stream is up and running, make your Zabbix server, Zabbix proxy, or a dedicated media server to continuously stream your video feed. Let’s go next for the neat tricks part, which I’m still figuring out myself, too. Anyway, trust me, this method should work if you have a compatible camera. Or for those who like to use a GUI, in VLC, File –> Open Network –> enter your camera address.įor obvious reasons, I am not posting here an image from our camera. Mplayer ‘rtsp://myusername: :443/myAddress’ To test if the video stream works, VLC and mplayer are good options for visually verifying the stream works, try something like To figure out a connection address for your camera model, iSp圜onnect has a nice camera database. My post for this week is mostly to maybe give you a new approach for monitoring your cameras, not so much a functional solution as I’m still figuring out how to do this properly.įor example, I can connect to our camera via RTSP protocol and pass some credentials with it, so rtsp://myusername: :443/myAddress Zabbix to the rescue! Connecting to your camera I have seen our camera going black and refusing to connect to its stream even though it thinks it’s working just fine. A networked camera responding to ping does not 100% mean the camera is actually functional. Most of the time the cameras do work just fine but might require a hard reboot from time to time, for example, due to harsh weather, or not coming back after a network outage. You might have a surveillance camera at home to record suspicious activities in your yard while you are away or so. Welcome to my weekly blog about the project. By night, I monitor my home with Zabbix & Grafana Labs and do some weird experiments with them. Post Syndicated from Janne Pikkarainen original Ĭan you make sure your video streams are up with Zabbix? Of course, you can! By day, I am a monitoring technical lead in a global cyber security company.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |