Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page MRTG script to monitor harddisk usage
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 04-17-2007   #1 (permalink)
lcguy
Just Joined!
 
Join Date: Apr 2007
Posts: 7
MRTG script to monitor harddisk usage

Hello,

I have installed MRTG with SNMP on Trustix Linux to monitor Memory usage, LAN stastics and other. It is working well.

But, I don't know how to create script to monitor HDD usage. Can anyone help me?

Below is sample code from /etc/mrtg/mrtg.conf.

# Example config for running mrtg to keep host-only stats

RunAsDaemon: yes
Interval: 5
HtmlDir: /home/httpd/sites/mrtg/
ImageDir: /home/httpd/sites/mrtg/images/
LogDir: /var/log/mrtg/
XSize[_]: 350
YSize[_]: 80

##############################################

#--------Bandwidth usage----------------------
Title[eth0]: Bandwidth usage on server.example.com
PageTop[eth0]: <H1>Traffic</H1>
Target[eth0]: `ifconfig eth0 | /usr/bin/awk '/bytes/{ gsub(/:/, " "); print $3 "\n" $8}'`
MaxBytes[eth0]: 15000000
Options[eth0]: noinfo, growright, bits
WithPeak[eth0]: wmy

#--------Memory-------------------------------
Title[mem]: Memory stats on server.example.com
PageTop[mem]: <H1>Memory (512MB)</H1>
Target[mem]: `free|awk 'BEGIN {OFS="\n"} /+/{ print $3*1000,$4*1000 }'`
MaxBytes[mem]: 524288000
Options[mem]: noinfo, gauge, growright, integer, absolute
Kilo[mem]: 1024
YLegend[mem]: RAM
ShortLegend[mem]: B
Legend1[mem]: Memory used
Legend2[mem]: Buffers/cache
Legend3[mem]: Memory used max
Legend4[mem]: Buffers/cache max
LegendI[mem]: Memory used
LegendO[mem]: Buffers/cache
WithPeak[mem]: wmy
+++++++++++++++++++++++++++++++++++++==
Jon
lcguy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:52 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0