shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Verifica o uso do filessystem


From: Edilson Azevedo
Subject: Re: [shell-script] Verifica o uso do filessystem
Date: Thu, 13 Dec 2007 12:42:02 -0200

Amigo,

 Experimente utilizar o NAGIOS. Acho mais interessante do que utilizar shell
script.

Em 13/12/07, Tiago Barcellos Peczenyj <address@hidden> escreveu:
>
>   Este pode ser o seu ponto de partida
>
> #!/bin/bash
> # Author: Tiago Peczenyj - 22/jun/2007
> # If the usage of $DIR is greater than $X % ...
> X=80
> DIR=/path/to/dir
> EMAIL='address@hidden <EMAIL%3D%27teu%40email.com>'
> SUBJECT="LOTOU!!!"
> USED=$(df ${DIR} | grep -oE '[0-9]+%' | tr -d '%')
>
> if [ "${USED}" -ge "${X}" ] ; then
> ...
> fi
>
> Bastaria vc fazer uma lógica para mais de um diretorio/filesystem, por
> exemplo.
>
> Awk poderia fazer isso.
>
> On 12/13/07, Alan Diones <address@hidden<alandiones%40imicro.com.br>>
> wrote:
> >
> >
> >
> >
> >
> >
> > Bom dia, outra ajuda se possivel
> > Script que verifique a cada 10 minutos o uso de cada filesystem. Enviar
> uma mensagem para o root, sempre que o percentual de ocupacao for alterado
> em mais de 2% ou for maior que 95%.
> >
> > [As partes desta mensagem que não continham texto foram removidas]
> >
> >
>
> --
> Tiago B Peczenyj
> Linux User #405772
>
> http://peczenyj.blogspot.com/
> "what does not kill us makes us stronger"
>  
>



-- 
Atenciosamente,
Edilson Azevedo
(11) 3371-7066
(12) 8156-5590
Gtalk: address@hidden
Skype: apropos.consultoria

'Dear God I've sealed my fate running through hell, heaven can wait'.


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]