ntang (ntang) wrote,
ntang
ntang

Geek ramblings - netsaint disk checks


Got tired of the standard netsaint disk check plugin, so I wrote my own in perl that checks every disk on a system. Then I added in excludes, so you can exclude things like /mnt/cdrom.

Then the junior admin pointed out that sometimes we'd end up excluding more directories (nfs mounts, cdroms, etc.) then we were checking in the first place. So I wrote a new plugin that accepts includes and lets you check multiple disks that way.

Then I thought to myself that all of that was silly, so I rewrote the plugin to accept both includes, excludes, or neither (which will check all of the disks), and to allow perl regexs for both includes and excludes. Ahhhh... much better.
Subscribe

  • Where I am nowadays

    I haven't updated this in a million years... in case you're wondering why, it's because I've mostly moved on to other places. You can find my…

  • DSL

    I've been a loyal Megapath customer for years. (Something like 8 or 10, crazy, in that range...) They've had great service (and a great service -…

  • MySQL failover

    So we're running some MySQL at work, which is a little unusual for us, but is probably long overdue. (Specifically, it's for some Wordpress…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments