Script to watch Jpeg size, notify of trouble
Posted: Wed Dec 08, 2010 7:46 am
I really like my Zoneminder setup. But I most likely will never need to go and look at the video I have recorded. I am a little worried that something may go wrong, the camera dies, the wire comes loose, or something crashes Zoneminder.
I was thinking about making a little bash script that would watch my events folder for new Jpegs. I know about what size the files normally are. I also know the files are much smaller if it is a jpeg of a blank sceen (no camera connection).
So I think I could use the find command and have it shoot out a mail if there are no new files, and also if the newest files are smaller than the expected size.
Has anyone implemented anything like this?
Does anyone have a better way of going about insuring video is being recorded correctly?
I was thinking about making a little bash script that would watch my events folder for new Jpegs. I know about what size the files normally are. I also know the files are much smaller if it is a jpeg of a blank sceen (no camera connection).
So I think I could use the find command and have it shoot out a mail if there are no new files, and also if the newest files are smaller than the expected size.
Has anyone implemented anything like this?
Does anyone have a better way of going about insuring video is being recorded correctly?