Webmin to send daily df -h then email alerts

Webmin
RJ98
2012-08-29
2013-05-22
  • RJ98
    RJ98
    2012-08-29

    First time webmin user here, i love it so far.  I'm hoping there's a way to accomplish two things with it also, but that I just dont know how.
    1) I'd like it to email me every morning essentially the info shown in a "df -h" as a server disk space overview
    2) I'd like it to monitor the disk space on each volume of server, and alert me when free space is less than a certain percentage

    If it can do that, can someone tell me specifically how to set it up?  I couldnt figure out #1 on my own, I tried #2 on my own, but never got an email even though I know the condition was met, and the text turned red in webmin.

     
  • don rowe
    don rowe
    2012-08-30

    You could setup a cron job to run whatever commands you like and send output to a file.  There are numerous perl and php modules to send email either with your file copied to the body or as an attachment.

     
  • RJ98
    RJ98
    2012-08-31

    ok, so there's no way to do it through webmin then.  Thought maybe there might be since it appeared to have alerting.