How Retain for X days the videos?

Forum for questions and support relating to the 1.25.x releases only.
Locked
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

How Retain for X days the videos?

Post by maximi89 »

Hi, How can I retain the videos for X days?

because I don't want to be peridically deletting old videos to keep space for newers...


And how can I autostart zoneminder, because when I restart the computer Zoneminder keeps off...

I have been looking for this, but I were unable to find anything usefully.
I use 1.25 on LinuxMint.


Thanks.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Install chkconfig or rcconf to select ZM to start when the computer restart. Search filters for the another questions.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

Hi, But filters execute the action in the moment, it doesn`t have triggers as far as I know.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Yes and not, filters can be running in the background (if you check the checkbox before saving them)

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Yes and not, filters can be running in the background (if you check the checkbox before saving them)
Hi, The zoneminder is already configured to do that, rcconf show zoneminder as "on".
# rcconf --on zoneminder
Service 'zoneminder' is already on. Skipping...

But it actually just show OFF, the web page show:

ZoneMinder Console - Apagado - v1.25.0

Where Apagado means "OFF"
So what's next?

Thanks!
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Check your logs, it's weird. (soy español si prefieres usar el castellano)

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Check your logs, it's weird. (soy español si prefieres usar el castellano)
ajaja bueno gracias, actualmente instalé el zoneminder el cual se encuentra en rcconf como "on" no tuve ni siquiera que tocarlo.

Respecto a los filtros, había puesto uno que está configurado para borrar 7000 resultados cuando alcance el 50% del uso del HDD para probar que tan efectivo es, pero no hay nada sobre limpiar al alcanzar X días según he visto.

Gracias
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Si que hay forma de especificar la antiguedad de los eventos, en los filtros seleccionas Date/Time, less than or equal to, y le pones un valor como -60, esto te borraria los ficheros con mas de 60 dias de antiguedad. Tambien puedes especificar un porcentaje de disco duro si lo prefieres usando DiskPercent greater than 80%, por ejemplo.

Saludos,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Si que hay forma de especificar la antiguedad de los eventos, en los filtros seleccionas Date/Time, less than or equal to, y le pones un valor como -60, esto te borraria los ficheros con mas de 60 dias de antiguedad. Tambien puedes especificar un porcentaje de disco duro si lo prefieres usando DiskPercent greater than 80%, por ejemplo.

Saludos,

PacoLM
Pero si uso el de % significa que limpiaría la cantidad especificada como registros?, osea
Ordenar por "Fecha/Hora" Orden "ASC"
Sólo los primeros "7000" regultados

Luego si marco la casilla Borrar todos los resultados significa que borrará los 7000 primeros resultados no? sólo cuando alcancen el % de uso del disco duro que sale indicado en las condiciones arriba? o me equivoco?

Gracias
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Si, deberia funcionar.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Si, deberia funcionar.
Gracias Paco
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Si, deberia funcionar.
Me faltó una cosa, al reiniciar el PC zoneminder como sitio web funciona bien... pero el servicio de Zoneminder que graba está apagado... no he logrado reparar eso.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Instala chkconfig o rcconf, ejecuta la aplicacion y selecciona zoneminder en la lista de aplicaciones que inicializan en el boot.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
maximi89
Posts: 8
Joined: Wed Jan 09, 2013 4:01 am

Re: How Retain for X days the videos?

Post by maximi89 »

PacoLM wrote:Instala chkconfig o rcconf, ejecuta la aplicacion y selecciona zoneminder en la lista de aplicaciones que inicializan en el boot.
Eso ya lo tengo, supuestamente debería arrancar pero no lo hace, tengo rcconf.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How Retain for X days the videos?

Post by PacoLM »

Sale en la lista como activado y no arranca? Raro, mira los logs, igual arranca zm antes de mysql, habia un fix poniendo un sleep en el script de inicializacion de zoneminder. Mira esto: http://www.zoneminder.com/wiki/index.ph ... e_easy_way

Resumen:
Add delay to allow MySQL to start before Zoneminder
nano /etc/init.d/zoneminder
Add above "zmfix -a" sleep 15

Ya diras si arregla algo.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked