Page 1 of 1
How Retain for X days the videos?
Posted: Wed Jan 09, 2013 4:20 am
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.
Re: How Retain for X days the videos?
Posted: Wed Jan 09, 2013 6:12 am
by PacoLM
Install chkconfig or rcconf to select ZM to start when the computer restart. Search filters for the another questions.
Re: How Retain for X days the videos?
Posted: Wed Jan 09, 2013 1:03 pm
by maximi89
Hi, But filters execute the action in the moment, it doesn`t have triggers as far as I know.
Re: How Retain for X days the videos?
Posted: Wed Jan 09, 2013 8:38 pm
by PacoLM
Yes and not, filters can be running in the background (if you check the checkbox before saving them)
Re: How Retain for X days the videos?
Posted: Fri Jan 11, 2013 1:54 am
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!
Re: How Retain for X days the videos?
Posted: Fri Jan 11, 2013 7:18 am
by PacoLM
Check your logs, it's weird. (soy español si prefieres usar el castellano)
Re: How Retain for X days the videos?
Posted: Fri Jan 11, 2013 2:13 pm
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
Re: How Retain for X days the videos?
Posted: Sun Jan 13, 2013 8:42 am
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
Re: How Retain for X days the videos?
Posted: Mon Jan 14, 2013 4:12 am
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
Re: How Retain for X days the videos?
Posted: Mon Jan 14, 2013 6:45 pm
by PacoLM
Si, deberia funcionar.
Re: How Retain for X days the videos?
Posted: Mon Jan 14, 2013 6:52 pm
by maximi89
PacoLM wrote:Si, deberia funcionar.
Gracias Paco
Re: How Retain for X days the videos?
Posted: Tue Jan 15, 2013 2:57 am
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.
Re: How Retain for X days the videos?
Posted: Tue Jan 15, 2013 6:31 am
by PacoLM
Instala chkconfig o rcconf, ejecuta la aplicacion y selecciona zoneminder en la lista de aplicaciones que inicializan en el boot.
Re: How Retain for X days the videos?
Posted: Tue Jan 15, 2013 2:05 pm
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.
Re: How Retain for X days the videos?
Posted: Tue Jan 15, 2013 6:06 pm
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.