Ad Widget

Collapse

Shared memory - even with filtering

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zephura
    Junior Member
    • Oct 2017
    • 5

    #1

    Shared memory - even with filtering

    Hello all,

    I am new with the zabbix features, and I probably make something wrong, but don't know were...

    1/ my situation :
    - I have 1 zabbix server 3.4.2 on a linux (up to date debian 9) server.
    - I have several zabbix (and SNMP) agents on other machines.

    All are communicating no so bad; zabbix detects :
    - a modification in the kernel
    - a reboot
    - some errors,etc...

    2.1/ my problem
    For an unknown reason, I received the error "Free disk space is less then 20% on volume : Shared memory"

    2.2/ my 1st solution
    My machines are home machines, for personal tests, clustering, backup, etc...
    to be honnest, I don't care at all about THAT error.
    That's why I filtered (or that's what I believed) that partition for triggers:

    Administration > General > regular expression
    in Storage devices for SNMP discovery
    Code:
    ^(Physical memory| Virtual memory| Memory buffers|Cached memory|Swap space|Shared memory|/sys/fs/cgroup|/run/lock|/dev/shm|/run/user|/run/user/0|/run)$ 
     result is FALSE
    Did I understood something false or did I make something bad?
    where could I look in zabbix for this error to be discarded?
    Thanks in advance

    In a second time, I may have a look how to correct this error


    Modification : I've received an answer later in this thread:
    1/ modify the filtering rules
    2/ delete the hosts previously discovered with the old rules
    Last edited by Zephura; 13-10-2017, 09:33. Reason: issue solved
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Can you be more specific - which template are you using for monitoring ?

    when you open template --> discovery --> <discovery rule for filesystems> there is second tab with filters

    if filter matches @Storage devices for SNMP discovery, then all devices specified in that filter will be sorted out and will be no longer discovered

    there is nothing wrong in modifying different filters to better fit your needs

    Already discovered resources which are no longer found will be deleted after Keep lost resources period days (can be found in discovery rule settings)

    Also you can go to the host and manually delete unneeded items if you don't want to wait x days to get rid of them.

    Best regards,
    Kaspars

    Comment

    • Zephura
      Junior Member
      • Oct 2017
      • 5

      #3
      Here is the config :

      Configuration > Template SNMP Disks - Discovery > Disk partitions > Filters

      I got
      A {#SNMPVALUE} matches @Storage devices for SNMP discovery

      if I try to add something like
      A {#SNMPVALUE} matches ^(Shared memory)

      can this do the trick?
      (I am not used to regex)

      Comment

      • kaspars.mednis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2017
        • 349

        #4
        I have looked at your template, and anything must be fine with just altering the regular expression in Storage devices for SNMP discovery

        i have tested your expression, and it works just fine

        zabbix has built in regular expression check in Administration > General > Regular expressions (dropdown box on the right)
        there are expression section, and test section

        if the test returns false then the discovery rule gets false from the filter, and Shared memory no longer will be discovered.

        please check your items on hosts. If you have previously discovered those unneeded file systems, they will stay in zabbix for some time configured in Keep lost resources period

        in items view they will be marked with yellow mark on the right "this item will be deleted in n days"

        solution - just delete them, they will be no longer discovered and will no bother you anymore

        or just wait for n days and they will disappear by themselves

        Best regards,
        Kaspars

        Comment

        • Zephura
          Junior Member
          • Oct 2017
          • 5

          #5
          Hi

          I've tried your advice : delete the specific host from the configuration and let the discovery do the job.

          since 36 hours it seems to be fine with that "Shared Memory" issue.

          I still have some issue CPU-iowait and "got an error reading communication packets", but I still not have optimized my SQL server to work with zabbix.

          Thanks for your help.

          Comment

          Working...