Ad Widget

Collapse

Exclude Linux file system from trigger based on mount point

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brian_C
    Junior Member
    • Jul 2015
    • 1

    #1

    Exclude Linux file system from trigger based on mount point

    Hi All,

    I have low level discovery of file systems working very well in our environment. We have an in house developed storage appliance which basically allocates disk space to LV's on an as needed basis and automatically grows the file systems. This is causing issues for the triggers created as part of the discovery process because these file systems will typically sit at 99% used for their entire life.

    I would like to achieve a test in the trigger prototype to discount these file systems based on the path of the mount point, I still need to monitor them, but just not be alerted about lack of free space. e.g. we have the usual /, /opt, /var, ... etc and our manged file systems are mounted (as an example) as /data/fs1, /data/fs2, ... etc.

    My initial thoughts were to include a regexp test to the trigger so that it always resulted false should the path begin with /data/ as this is guaranteed to always be the case. While this could work I cannot see how I can do this in Zabbix.

    I also thought about creating a file system discovery script which could be used to get those which are not the /data file systems and those that are but this would not be my first preference if it can be done natively.

    I am sure the answer is simple, but I don't seem to be able to see it. Any pointers or suggestions would be greatly appreciated.

    Cheers,
    Brian.
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Create 2 LLD rules:
    1.) for data - regexp (/data/*) is TRUE
    trigger prototype for /data/* filesystems

    2.) for data - regexp (/data/*) is FALSE
    trigger prototype for non /data/* filesystems

    Check also https://www.zabbix.com/forum/showthread.php?t=48529
    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

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Originally posted by Brian_C
      I am sure the answer is simple, but I don't seem to be able to see it. Any pointers or suggestions would be greatly appreciated.
      At the moment there is no simple solution for this.
      You may try to create two LLD entries with different filters but that is all.

      I think that have additional layer of filter in triggers may be useful.
      Please try to create feature request ticket with idea of such additional filter in trigger prototype.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      Working...