Ad Widget

Collapse

Customize Linux Disk Space Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gghags
    Junior Member
    • Aug 2019
    • 2

    #1

    Customize Linux Disk Space Monitoring

    I'm new to Zabbix and i'm struggling with Customizing disk Space Monitoring.
    I'm using the "Template OS Linux SNMPv2"

    Some of my mount points need to be excluded and some need exceptions. Example: /u01=95%. /opt=90%, /cdrom=EXCLUDE, GLOBAL=80 Warn, 90 Critical....
    I see many examples based on the Linux agent but I'm not finding anything with SNMP.

    Can someone point me to Good examples of SNMP Disk space monitoring that has this type of exception?



  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    What do you mean by 'exclude'? It's to don't show the item? or don't fire the trigger?
    I don't know if it can be done, but maybe worth a try
    Create individual triggers instead of using the number (of filesystem) instead of the prototype

    Trigger1:
    {Template OS Linux SNMPv2:vfs.fs.pused[storageUsedPercentage.{1}].avg(5m)}>0.1

    Trigger2:
    {Template OS Linux SNMPv2:vfs.fs.pused[storageUsedPercentage.{2}].avg(5m)}>0.2

    Comment

    • brunohl
      Senior Member
      Zabbix Certified Specialist
      • Mar 2019
      • 215

      #3
      I guess that if you would like to use discovery you could work with context macros and replace it in your trigger. I never worked with it, but from what I've seen around they should be used in contexts like yours.

      Take a look here

      Comment

      • gghags
        Junior Member
        • Aug 2019
        • 2

        #4
        Thank you all for your Help!!!
        It looks like I have a good Fix!!!


        Standard SNMP Template Before change:
        {Template Module HOST-RESOURCES-MIB SNMPv2:vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_CRITICAL}



        This change allows me to Override the Disk Space percentage of a Single File System:
        {Template Module HOST-RESOURCES-MIB SNMPv2:vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_CRITICAL:"{#SNMPVALUE}"}


        Note: {#SNMPVALUE} is the Mount Point

        I added the Macro for the Custom Disk Percentage of a File system.


        Macro Example:

        Normal Critical for all file systems 90%
        {$STORAGE_UTIL_CRIT} 90

        Normal Critical from /home 95%
        {$STORAGE_UTIL_CRITICAL:/home} 95


        Comment

        Working...