LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-19-2010, 03:19 PM   #1
scottyp55
Member
 
Registered: Oct 2009
Posts: 53

Rep: Reputation: 21
Monitoring disk space


We are running IPmonitor to monitor the disk usage on our Linux servers. It does not seem to coincide with what is reported when running df -h. For example on a Red Hat 5.3 server - our IPmonitor shows that 85% is used on the /usr partition, however when I do a df -h on the server it shows that 91% is used.

Does anyone know why there would be a discrepancy? IPmonitor uses SNMP.

Thanks,
Scott
 
Old 03-19-2010, 03:39 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Maybe IPmonitor uses a different way of getting the usage.
Code:
[smoker@kids ~]$ du -sh /boot
7.8M    /boot
[smoker@kids ~]$ df -h /boot
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1              99M   12M   82M  13% /boot
[smoker@kids ~]$
Of course they would still have to calculate a percentage somehow, which seems silly as it's there in the df output.
 
Old 03-19-2010, 03:40 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
There is reserved space that system processes (root etc...) can continue writing to but regular user processes can't. The used % in df is based on what the user can access rather than what the system can access.
 
1 members found this post helpful.
Old 03-22-2010, 09:31 AM   #4
scottyp55
Member
 
Registered: Oct 2009
Posts: 53

Original Poster
Rep: Reputation: 21
Thanks for the response.
So is there a way for SNMP to accurately report the disk usage?
 
Old 03-22-2010, 10:09 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Nagios, Mrtg & Snmptrap etc..
 
Old 03-22-2010, 10:32 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by scottyp55 View Post
Thanks for the response.
So is there a way for SNMP to accurately report the disk usage?
It depends on what's in the MIB for what you're monitoring. I haven't done a lot with SNMP (will be doing more this years since I finally got the newer Nagios installed). However, most MIBs give you tons of metrrics so it may just be you need to pick a different metric than the one you're using now from the same MIB.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script for disk space monitoring jmmo1981 Red Hat 1 05-24-2008 11:25 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Monitoring disk space on webserver!!! apache Linux - Software 2 07-27-2004 07:47 AM
monitoring disk space cuss Linux - General 26 02-25-2003 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration