You are here

Blog

Monitoring filesystem usage with SNMP

Continuing our run of useful SNMP OIDs...

One of the most commonly monitored statictics is filesystem usage. Here is how you do it with SNMP. All OIDs listed are available under MIB-II.

Note: <int> is an integer corresponding to the filesystem number. Most systems will have multiple partitions / filesystems.

Description

.1.3.6.1.2.1.25.2.3.1.3.<int>

Description of filesystem. On a Unix system examples would be / or /home. Under Windows expect C:/, D:/ etc/

Capacity

.1.3.6.1.2.1.25.2.3.1.5.<int>

Capacity of filesystem in blocks

Usage

.1.3.6.1.2.1.25.2.3.1.6.<int>

How many blocks are currently being used to store data

Blocksize

.1.3.6.1.2.1.25.2.3.1.4.<int>

Blocksize in bytes. Important because other stats are in blocks.

Maths

So to find capacity of filesystem in bytes you need to multiply the size in blocks with the block size. Same principle applies to calculating how much of the filesystem is in use.

If you want to display values in Kb / Mb / Gb remember to divide by 1024 each time.

Get unified insight into your IT operations with Opsview Monitor

webteam's picture
by Opsview Team,
Administrator
Opsview is passionately focused on monitoring that enables DevOps teams to deliver smarter business services, faster.

More like this

Aug 16, 2016
Blog
By David Chatterton, Customer Success Engineer

A guide on how to monitor Juniper EX switches using SNMP and Opsview. 

Troubleshooting Linux
Aug 07, 2017
Blog
By Robert Oliver, Technical Writer

Despite the lightweight, optimized design of Linux, applications can always introduce anomalies and performance problems can, and will, creep into...

Jun 02, 2016
Blog
By John Hashem, Technical Pre-sales

A blog on how to utilize SNMP Traps for more efficient monitoring.