Email when a camera fails

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
jamescollings
Posts: 59
Joined: Wed Nov 22, 2006 11:26 am
Location: Bucks, UK

Email when a camera fails

Post by jamescollings »

I am slowly building my Zoneminder setup, and currently have a single camera running. (When someone answers my request about 4 port cards I'll have 3).

Since this is a residential installation, I am not going to be checking the event logs EVERY day (it isn't really that exciting to watch me and my family going to and from the cars, or watching the postman each morning :-) )

My concern is that someone could cut the small amount of exposed camera cables one day, and then return a couple of weeks later knowing that they weren't being recorded.

Is there some way of generating an alert (by email for example) to tell me that a camera has gone from "working" to "no signal"?

Thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you have analog cameras attached then loss of signal is usually flagged by the screen going a uniform colour, usually a bluish one, though sometimes green. Check Options->ZM_SIGNAL_CHECK_COLOUR to see what the default is.

ZM can detect this kind of image and will create a 'Signal' event. You can then create a filter for this kind of event and generate an email as a result.
Phil
jlnavio
Posts: 27
Joined: Fri Oct 27, 2006 10:50 am
Location: Spain

Post by jlnavio »

Hello, I asked tha same question and I don't understand any things.

I have some questions:

Is this option only for analog cameras?

ZM_SIGNAL_CHECK_POINTS option's help says:

"For locally attached video cameras ZoneMinder can check for signal loss by looking at a number of random points on each captured image. If all of these points are set to the same fixed colour then the camera is assumed to have lost signal. When this happens any open events are closed and a short one frame signal loss event is generated, as is another when the signal returns. This option defines how many points on each image to check. Note that this is a maximum, any points found to not have the check colour will abort any further checks so in most cases on a couple of points will actually be checked. Network and file based cameras are never checked."

Does it mean network cameras' power off isn't detected???

My installation of ZoneMinder has this value for ZM_SIGNAL_CHECK_COLOUR = 0100BE, but It doesn't detect camera's power off.

Help me, please.

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There are things like logwatch that come in most distros that would probably better suit your needs and is designed for what you are asking. This would also take care of system error msgs that zm has no clue about.

Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes, the signal events are really just designed for analog cameras. Network cameras can have connection failure or image recovery errors for many reasons, and often drop in and out.
Phil
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

IP Cameras can be tested for like any other net service - ping 'em.

Nagios is the big standard for doing that - it will sms, email, whatever when a failure is down. It is complicated and hard to set up however, and there are numerous other applications that might be easier.

It is possible that an ip camera could crash and still respond to pings but not provide a stream, but in over a year of using it to monitor axis and gadspot cams, that hasn't happened yet.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I agree, I use Nagios and once you get started it's pretty easy to get it to watch stuff on your network and detect and determine whether something is unreachable (ie off or disconnected) and/or just not responding to http requests for instance. Then it will mail you when stuff goes down or up. It would be nice to add this kind of stuff into ZM but currently it is not there.
Phil
bkortleven
Posts: 15
Joined: Sun May 14, 2006 10:33 pm

Post by bkortleven »

You can use nagios to check on the availability of both the host (pings etc) and the service (ftp, http, ...) of the network camera's and other things.

I use it to monitor my network connectivity, servers and their most important services like http, dns, ftp, ssh... I even monitor my switches and make them 'parent' for the machines attached to them. In that way, power loss in the switch makes the alarms for hosts connected to them not to go off... Sending me a single sms: 'switch 1 down'...

google for nagios, you'll find plenty of examples and guidance.
It's tricky to set up, but once set up, you'll never want to be without it anymore...

Cheers, and Merry X-mas and a Happy 2007
Post Reply