*nix xymon client directories size (DU change is possible?)
Hi all: after reviewing the mailist archive and read the wiki...I came with one question.. AFAIK the DIR monitoring/track will use a DU on the xymon client (*nix ones). I need to monitor/track some directories on ZFS and they are Big. I mean 880GB or more. a simple du -sh or just du takes at least 45min. Of course; doing a zfs list pool/zfs gave me the same data that a du but almost instantaneously... So my question do I can override which command is used to DIR monitoring ? Or I must go with a script that do zfs list and push that data to rrd as independent test?
To make things worst I have mixed UFS/ZFS structures, but just need to monitor/track some of them.
Thanks a lot for any input!
Este mensaje de correo electr?nico, incluidos los archivos adjuntos, es para el uso exclusivo de la persona a la que se ha enviado, y puede contener informaci?n que sea confidencial o protegida legalmente. Si usted no es el destinatario, o ha recibido este mensaje por error, no est? autorizado a copiar, distribuir, o utilizar de alguna manera este mensaje. Por favor notifique inmediatamente al remitente por correo electr?nico y suprimir permanentemente este mensaje y los archivos adjuntos. No se otorga ninguna garant?a de que este e-mail est? libre de errores o virus. INSTITUTO COSTARRICENSE DE ELECTRICIDAD
If you do your "zfs list pool"(?) on a UFS file system does it give an error?
If so, you could try something like: "zfs list pool <additioanl args> 2> /dev/null || du <additional args>"
Just a thought...
CC
On Sat, Apr 9, 2011 at 12:59 PM, Soporte Infraestructura Operativa y Almacenamiento <soopal at ice.go.cr> wrote:
Hi all: after reviewing the mailist archive and read the wiki...I came with one question.. AFAIK the DIR monitoring/track will use a DU on the xymon client (*nix ones). I need to monitor/track some directories on ZFS and they are Big. I mean 880GB or more. a simple du -sh or just du takes at least 45min. Of course; doing a zfs list pool/zfs gave me the same data that a du but almost instantaneously... So my question do I can override which command is used to DIR monitoring ? Or I must go with a script that do zfs list and push that data to rrd as independent test?
To make things worst I have mixed UFS/ZFS structures, but just need to monitor/track some of them.
Thanks a lot for any input!
Este mensaje de correo electr?nico, incluidos los archivos adjuntos, es para el uso exclusivo de la persona a la que se ha enviado, y puede contener informaci?n que sea confidencial o protegida legalmente. Si usted no es el destinatario, o ha recibido este mensaje por error, no est? autorizado a copiar, distribuir, o utilizar de alguna manera este mensaje. Por favor notifique inmediatamente al remitente por correo electr?nico y suprimir permanentemente este mensaje y los archivos adjuntos. No se otorga ninguna garant?a de que este e-mail est? libre de errores o virus. INSTITUTO COSTARRICENSE DE ELECTRICIDAD
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- RHCE#805007969328369
That's right Colin: If I do a zfs list over a non-zfs it gave error this logic could be use. But my question goes arround if I have to implent a special DIR monitoring/track feature via script or I can augment functionality of the actual DIR monitoring/track feature (implicit humble request to know how!) to acomplish this taks. I have seen scripts that monitor the zpool but not the zfs itself. And a review of the .cfg told me that command found are just for some cases. I'm using verion 4.2.3 of xymon/hobit.
-----Mensaje original----- De: Colin Coe [mailto:colin.coe at gmail.com] Enviado el: Viernes, 08 de Abril de 2011 23:25 Para: Soporte Infraestructura Operativa y Almacenamiento CC: xymon at xymon.com Asunto: Re: [Xymon] *nix xymon client directories size (DU change is possible?)
If you do your "zfs list pool"(?) on a UFS file system does it give an error?
If so, you could try something like: "zfs list pool <additioanl args> 2> /dev/null || du <additional args>"
Just a thought...
CC
On Sat, Apr 9, 2011 at 12:59 PM, Soporte Infraestructura Operativa y Almacenamiento <soopal at ice.go.cr> wrote:
Hi all: after reviewing the mailist archive and read the wiki...I came with one question.. AFAIK the DIR monitoring/track will use a DU on the xymon client (*nix ones). I need to monitor/track some directories on ZFS and they are Big. I mean 880GB or more. a simple du -sh or just du takes at least 45min. Of course; doing a zfs list pool/zfs gave me the same data that a du but almost instantaneously... So my question do I can override which command is used to DIR monitoring ? Or I must go with a script that do zfs list and push that data to rrd as independent test?
To make things worst I have mixed UFS/ZFS structures, but just need to monitor/track some of them.
Thanks a lot for any input!
Este mensaje de correo electr?nico, incluidos los archivos adjuntos, es para el uso exclusivo de la persona a la que se ha enviado, y puede contener informaci?n que sea confidencial o protegida legalmente. Si usted no es el destinatario, o ha recibido este mensaje por error, no est? autorizado a copiar, distribuir, o utilizar de alguna manera este mensaje. Por favor notifique inmediatamente al remitente por correo electr?nico y suprimir permanentemente este mensaje y los archivos adjuntos. No se otorga ninguna garant?a de que este e-mail est? libre de errores o virus. INSTITUTO COSTARRICENSE DE ELECTRICIDAD
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- RHCE#805007969328369
Este mensaje de correo electr?nico, incluidos los archivos adjuntos, es para el uso exclusivo de la persona a la que se ha enviado, y puede contener informaci?n que sea confidencial o protegida legalmente. Si usted no es el destinatario, o ha recibido este mensaje por error, no est? autorizado a copiar, distribuir, o utilizar de alguna manera este mensaje. Por favor notifique inmediatamente al remitente por correo electr?nico y suprimir permanentemente este mensaje y los archivos adjuntos. No se otorga ninguna garant?a de que este e-mail est? libre de errores o virus. INSTITUTO COSTARRICENSE DE ELECTRICIDAD
AFAIK the DIR monitoring/track will use a DU on the xymon client (*nix ones). I need to monitor/track some directories on ZFS and they are Big. I mean 880GB or more. a simple du -sh or just du takes at least 45min. Of course; doing a zfs list pool/zfs gave me the same data that a du but almost instantaneously... So my question do I can override which command is used to DIR monitoring ? Or I must go with a script that do zfs list and push that data to rrd as independent test?
In the client configuration, you can set the "DU" environment variable to the command you want to run. The Xymon client will pick up this setting and use it instead of the default "du -k".
To make things worst I have mixed UFS/ZFS structures, but just need to monitor/track some of them.
Well, if you can script some way of detecting which command to use for which structure, that script can then be used for the "DU" env. setting.
Regards, Henrik
participants (3)
-
colin.coe@gmail.com
-
henrik@hswn.dk
-
soopal@ice.go.cr