Re: Monitoring disk usage
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
> On 22/03/07, [email protected] <[email protected]> wrote: > > I have several programs which log to /var/log. .... I > > could end up with an ever-growing log file. > > > > What I'd like to do is be able to remotely determine if any file in > > /var/log is growing. I suppose I could have a startup script which > > figured out the current usage on /, subtracted from 100, and put > > that in as a percentage in snmpd.conf but that's kind of indirect > > and awkward. Is there a better way? > > Have a look at the 'file' directive. > Maybe that might be of some use. That's good for the files I know I have links for but I was hoping for a way that I could catch new logging to files I forgot to link to /dev/null. Unless I can do: file /var/log and have it monitor any file in the directory, this falls short of perfect for my needs. I'll try that, though. Maybe I'll be pleasantly surprised. ;-) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users