Xymon Mailing List Archive search

*nix xymon client directories size (DU change is possible?)

4 messages in this thread

list Soporte Infraestructura Operativa y Almacenamiento · Fri, 8 Apr 2011 22:59:10 -0600 ·
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
list Colin Coe · Sat, 9 Apr 2011 13:24:55 +0800 ·
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
quoted from Soporte Infraestructura Operativa y Almacenamiento
Almacenamiento <user-fabbbfdb21b7@xymon.invalid> 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

-- 

RHCE#805007969328369
list Soporte Infraestructura Operativa y Almacenamiento · Mon, 11 Apr 2011 00:04:34 -0600 ·
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:user-5b250cd7a540@xymon.invalid]
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?)
quoted from Colin Coe

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 <user-fabbbfdb21b7@xymon.invalid> 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

--
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
list Henrik Størner · Sun, 17 Apr 2011 21:57:11 +0200 ·
quoted from Soporte Infraestructura Operativa y Almacenamiento
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