Disk-Space Checker

OpenView’s agent has a fileSystemTable object that contains statistics about disk utilization and other filesystem parameters. At first glance, it looks extremely useful: you can use it to find out filesystem names, blocks free, etc. But it has some quirks, and we’ll need to play a few tricks to use this table effectively. Walking fileSystemTable.fileSystemEntry.fileSystemDir (.1.3.6.1.4.1.11.2.3.1.2.2.1.10) lists the filesystems that are currently mounted:[66]

[root][nms] /opt/OV/local/bin/disk_space> snmpwalk spruce \
            .1.3.6.1.4.1.11.2.3.1.2.2.1.10 fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680064.1 : DISPLAY STRING- (ascii): / fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680067.1 : DISPLAY STRING- (ascii): /var fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680068.1 : DISPLAY STRING- (ascii): /export fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680069.1 : DISPLAY STRING- (ascii): /opt fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.14680070.1 : DISPLAY STRING- (ascii): /usr fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.41156608.1 : DISPLAY STRING- (ascii): /proc fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.41680896.1 : DISPLAY STRING- (ascii): /dev/fd fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991617.1 : DISPLAY STRING- (ascii): /net fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991618.1 : DISPLAY STRING- (ascii): /home fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir.42991619.1 ...

Get Essential SNMP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.