[mrtg] Monitoring Disks and filesystems space/usage
John Cushnie
john at dallambarn.freeserve.co.uk
Thu Jan 26 09:55:18 MET 2006
Hi all,
I using MRTG to monitor the filesystems on a HP-Unix system.
I have MRTG up and running, and I have prototype entries in the cfg file for monitoring the filesystems.
I have created a host-template that discovers the file systems using the HP-UNIX.MIB definitions.
On the system being monitored this returns 18 filesystems with example data as below:
--base: -- FileSystem ='18'
--base: FileSystemID1 ='1075052545'
--base: FileSystemID2 ='7'
--base: FileSystemName ='/dev/lvol1'
--base: FileSystemBlock ='23588864'
--base: FileSystemBfree ='5869944'
--base: FileSystemBavail ='5824091'
--base: FileSystemBsize ='8192'
--base: FileSystemFiles ='1467584'
--base: FileSystemFfree ='1467468'
--base: FileSystemDir ='/FS_DATA'
--base: Writing c:/mrtg/mrtg/bin/mrtg__host-unix.cfg
>From this I've created entries in the cfg file as below for each filesystem, based on an example disk monitoring cfg entry I found on-line:
#--------------------------------------------------------------------------------------
# HP Unix Disk Utilization.
Target[123.230.7.20.disk.1075052545]:1.3.6.1.4.1.11.2.3.1.2.2.1.4.1075052545.7&1.3.6.1.4.1.11.2.3.1.2.2.1.5.1075052545.7:public at 123.230.7.20 * 8192
YLegend[123.230.7.20.disk.1075052545]: KBytes Used
Options[123.230.7.20.disk.1075052545]: gauge, unknaszero, noo, growright
Directory[123.230.7.20.disk.1075052545]:
MaxBytes[123.230.7.20.disk.1075052545]: 193239973888
ShortLegend[123.230.7.20.disk.1075052545]: bytes
routers.cgi*ShortDesc[158.230.7.20.disk.1075052545]: FileSystem /dev/lvol1:
bb*host[123.230.7.20.disk.1075052545]: 123.230.7.20
bb*svc[123.230.7.20.disk.1075052545]: volume
bb*red[123.230.7.20.disk.1075052545]: 95%
bb*yellow[123.230.7.20.disk.1075052545]: 92%
kilo[123.230.7.20.disk.1075052545]: 1024
Legend1[123.230.7.20.disk.1075052545]: FileSystem Used
Legend3[123.230.7.20.disk.1075052545]: Max value per interval on graph
LegendI[123.230.7.20.disk.1075052545]: FileSystem Used
WithPeak[123.230.7.20.disk.1075052545]: ymw
Title[123.230.7.20.disk.1075052545]: hp_sys
PageTop[123.230.7.20.disk.1075052545]: <H1>/dev/lvol1 on HP_SYS -- Directory /FS_DATA</H1>
<TABLE>
<TR><TD>System:</TD><TD>HP_SYS </TD></TR>
</TABLE>
This entry is intended to monitor the space used in the filesystem, based on the values of
FileSystemBlock and FileSystemBfree
This entry produces the MRTG graphs but the results of this entry are not really what I am looking for.....
>From the HP-UNIX.MIB file the metric definitions are as follows:
fileSystemID1 "First file system ID."
fileSystemID2 "Second file system ID."
fileSystemName "Name of mounted file system."
fileSystemBlock "Total blocks in file system."
fileSystemBfree "Free blocks in file system."
fileSystemBavail "Free blocks avail to non-superuser."
fileSystemBsize "Fundamental file system block size."
fileSystemFiles "Total file nodes in file system."
fileSystemFfree "Free file nodes in file system."
fileSystemDir "File system path prefix."
Ideally, I would like to monitor all the above metrics.
Does anyone have any example cfg entries I could use/modify to produce a better representation of the collected metrics/data for the filesystems, that can then slot into my template file?
(Ideally, I'm looking for a template file that handles the whole of the HP-UNIX.MIB, but I think that would be too easy...:-)...)
Any suggestions?
Many thanks
John.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list