Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: filesystem monitoring

  1. #1

    Default filesystem monitoring

    Dear All,

    I am looking for a script by which i get email alert if disk space goes above 80%, while this script should not email unless filesystem reaches 81% and then next email after 82% and on and on.

    Regards,
    Ghulam Yaseen
    Best Regards,
    Ghulam Yaseen

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,308
    Blog Entries
    14

    Default Re: filesystem monitoring

    IMHO the best thing to do, is to dive into shell scripting, the bootprocess where it's about starting processes.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,759

    Default Re: filesystem monitoring

    I doubt if anyone is goin to write your script. But something like
    Code:
    df /home | tail +2
    will give you the percentage.

    Also you have to make your design a bit more precise: The following questions come to my mind without much thinking:
    . Do you want a mail when the percentage was 83 (mail), got down to 79 and then up up to 81?
    . How often do you want to test (I suppose you want a cron run)?
    . You have to save to value found at the last run to be used at the next run, where (file in /tmp, elsewhere)?
    Henk van Velden

  4. #4

    Default Re: filesystem monitoring

    yup email is prerequisite while percentage increase should trigger email after 80% above filesystem
    Best Regards,
    Ghulam Yaseen

  5. #5

    Default Re: filesystem monitoring

    i have requested here with the great hope and zeal, plz help!
    Best Regards,
    Ghulam Yaseen

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: filesystem monitoring

    google remains a best friend! i say, because this

    linux script monitor disk usage and email admin
    in a google search box brings at least one full page of seemingly VERY
    likely candidates...have a look and see what you think:

    http://www.google.com/search?q=linux...nd+email+admin

    as another here has already written "I doubt if anyone is goin to
    write your script." but i'd guess if you dig in and try but have
    trouble you can't solve, then post to the programming and scripting
    forum here, http://forums.opensuse.org/developme...ing-scripting/

    (where you might find lots willing to _help_, but not write the whole
    thing for you...)

    --
    DenverD (Linux Counter 282315)
    CAVEAT: http://is.gd/bpoMD
    posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
    2.6.22.19-0.4-default SMP i686
    AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
    CMedia 9761 AC'97 Audio

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,308
    Blog Entries
    14

    Default Re: filesystem monitoring

    Quote Originally Posted by ghulamyaseen View Post
    i have requested here with the great hope and zeal, plz help!
    These are forums, not some kind of market where you can order programs, scripts etc. People coming here, answering questions, helping out on problems all are volunteers. We're not getting paid to serve user needs, we're unpaid volunteers spending free time here.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: filesystem monitoring

    very true,


    Quote Originally Posted by Knurpht View Post
    These are forums, not some kind of market where you can order programs, scripts etc. People coming here, answering questions, helping out on problems all are volunteers. We're not getting paid to serve user needs, we're unpaid volunteers spending free time here.
    Best Regards,
    Ghulam Yaseen

  9. #9

    Default Re: filesystem monitoring

    Knurpht wrote:
    > ghulamyaseen;2160969 Wrote:
    >> i have requested here with the great hope and zeal, plz help!

    >
    > These are forums, not some kind of market where you can order programs,
    > scripts etc. People coming here, answering questions, helping out on
    > problems all are volunteers. We're not getting paid to serve user needs,
    > we're unpaid volunteers spending free time here.


    Sure, but odds are that someone else has already done that and maybe has
    a script that they'd be happy to share. It's not like he's asking
    someone to write him an accounting package.

    Or maybe they know of a program that can easily be installed - something
    along the lines of gkrellm. I don't know if gkrellm can send alerts or
    not, but if not there's probably another program out there than can.
    Might not be a shell script, but it could suit his purposes just fine...

    ....Kevin
    --
    Kevin Miller
    Juneau, Alaska
    http://www.alaska.net/~atftb
    In a recent poll, seven out of ten hard drives preferred Linux.

  10. #10

    Default Re: filesystem monitoring

    Quote Originally Posted by ghulamyaseen View Post
    yup email is prerequisite while percentage increase should trigger email after 80% above filesystem
    You will note that this hasn't actually answered any of the questions that Henk actually asked; this probably isn't a problem for anyone else but you, but you should still think about this.

    @Knurpht
    IMHO the best thing to do, is to dive into shell scripting
    Exactly. Try to write a script, and ask further questions when you have a problem. Don't be embarrassed about the fact that you don't know how to do it all - few of us do - but try, and then get help on the other bits.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •