Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: File System Monitoring

by dHarry (Abbot)
on May 18, 2009 at 12:34 UTC ( #764645=note: print w/replies, xml ) Need Help??

in reply to File System Monitoring

You can use Filesys::DiskSpace, the Perl df. See howto-write-perl-script-to-monitor-disk-space for ideas.

Drumming up your own solution with the Unix df command is only 10 lines of code or so. You could use something like sendmail to notify you if the disk space reaches a certain threshold. No experience with 'munin', scanning through the documentation it seems like everything but the kitchen sink.

But what can your ETL tooling do for you? The ETL tools I worked with also produced useful statistics. Things like throughput, disk space requirements etc. Maybe this is something to look into.


Replies are listed 'Best First'.
Re^2: File System Monitoring
by NateTut (Deacon) on May 18, 2009 at 21:40 UTC
    Thanks I have whiped up a `df -k` solution, but Filesys::DiskSpace looks to be more robust. Other folks are watching the ETL jobs, I'm just trying to fill in the gaps. BTW does anyone know how to configure Linux sendmail to use a Yahoo POP3 account?
Re^2: File System Monitoring
by NateTut (Deacon) on May 19, 2009 at 15:59 UTC

      Did you run h2ph?


      So I am trying Filesys::DfPortable...

      Not sure if that will bring relief, from the documentation:

      The module should work with all versions of Windows (95 and up), and with all flavors of Unix that implement the statvfs or the statfs calls...

      Did you install the module properly? What Unix do you use? I'm on Linux Redhat.

        The OS is Solaris 10. Filesys::DfPortable worked fine once I got a c compiler installed. I didn't investigate the reason for the h2ph message, I just read about a similar problem where the recommendation was to use a more up to date module.
      ... or you could try running h2ph as it asks.

      This signature will be ready by Christmas

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764645]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-08-15 02:10 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (78 votes). Check out past polls.