Ad Widget

Collapse

Monitor ramdisk free space?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aschild
    Junior Member
    • Sep 2014
    • 25

    #1

    Monitor ramdisk free space?

    Hello,

    how can I monitor the free "disk" space of a ram disk under linux?
    It is not "deteced"/monitore, neither via the 2.4.2 Agent, nor via SNMP.

    A df shows these file systems:

    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 6523904 1446020 3689516 29% /
    /dev/sda1 6523904 1446020 3689516 29% /
    /dev/sda2 730263 33129 658171 5% /boot
    tmpfs 94208 9800 84408 11% /ram

    André
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    1.) Probably it's discovered, check output from:
    Code:
    user@zabbix_server:~$ zabbix_get -s monitored-device -k vfs.fs.discovery
    2.) But then is excluded, because it doesn't match regexp "File systems for discovery" (Administration->General->Regular expressions). It's tmpfs, so allow also tmpfs:
    Code:
    ^(btrfs|ext2|ext3|ext4|jfs|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|ntfs|fat32|zfs|tmpfs)$
    3.) When you allow tmpfs, then a lot of filesystems can be discovered and monitored (e.g. /dev, /dev/shm, ...). If you want to exclude them, then you must play (create, edit) with regular expressions and autodiscovery rules (Template OS Linux->Discovery rules). It's just regexps ;-D

    Have fun.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • aschild
      Junior Member
      • Sep 2014
      • 25

      #3
      Thanks.

      That was the hint I needed.

      I did not modify the vfs discovery rules, since the ram disk is mounted on several points in the filesystem.

      So I simply did add new datapoints with vfs.fs.size[/ram], vfs.fs.size[/ram,pfree] etc. , together with the triggers and graphs.

      Thanks

      André

      Comment

      Working...