Here is the result of df on my target computer ~# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgsys-lvroot 11G 5.4G 5.0G 52% / udev 24G 4.0K 24G 1% /dev tmpfs 4.0G 256K 4.0G 1% /tmp tmpfs 4.8G 6.1M 4.7G 1% /run none 5.0M 0 5.0M 0% /run/lock none 24G 0 24G 0% /run/shm /dev/mapper/vgsys-lvopt 30G 25G 4.8G 84% /opt /dev/sda1 226M 71M 144M 34% /boot

And the result of the polling via snmp from my nagios poller:

 # ./check_snmp_storage.pl -H 172.x.x.x -v 1 -C public -m tmpfs -w 80 -c 90
Filter : tmpfs
OID :, Desc : Shared memory
OID :, Desc : /opt
OID :, Desc : Memory buffers
OID :, Desc : Physical memory
OID :, Desc : /dev
OID :, Desc : /sys/fs/fuse/connections
OID :, Desc : /boot
OID :, Desc : Cached memory
OID :, Desc : Virtual memory
OID :, Desc : Swap space
OID :, Desc : /
storages selected : 0
Unknown storage : tmpfs : ERROR

As you can see, the tmpfs filesystems are not showed in SNMP. (but I tried without hope (neither success) "-m tmp", "-m /tmp")

Is it possible ?

Someone know a plugin to monitor a tmpfs filesystem ?


1 Answer 1


This isn't the fault of check_snmp_storage.pl. Oddly, the hrStorage branch includes types for "RamDisk" (hrStorageTypes 8), but an snmpwalk confirms what you are seeing: it ignores tmpfs mounts.

According to the usage documentation, you can explicitly (try to) force the script to check RamDisk storage using -q RamDisk.

You can use the standard check_disk plugin with the NRPE agent to check tmpfs mounts, though.

  • Keith, ./check_snmp_storage.pl -C public -H 172.x.x.x -w 1 -c 2 -v -q RamDisk -m * doesn't output the RamDisk. If you tried with snmpwalk, I guess it isn't possible without agent. I'll try with NRPE. Thanks
    – Brice
    Jun 6, 2014 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.