Ad Widget

Collapse

Help creating a Trigger for Hard Drive Space.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jfha73
    Member
    • Aug 2018
    • 33

    #1

    Help creating a Trigger for Hard Drive Space.

    Hey guys,

    I just created an Item for Filesystems checking for the space on partitions, using the Key vfs.fs.size[fs,pfree].

    Now I want to create a trigger for this Item that will show as Warning at 10% and as Critical at 5%, how can I do that?

    Thanks.
    Last edited by jfha73; 23-08-2018, 16:30.
  • pransakti
    Junior Member
    • Jul 2018
    • 5

    #2
    did some template already define some trigger for HDD ?

    {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_WARN}

    {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_CRIT}

    with value in %
    <macro>
    <macro>{$STORAGE_UTIL_CRIT}</macro>
    <value>90</value>
    </macro>
    <macro>
    <macro>{$STORAGE_UTIL_WARN}</macro>
    <value>80</value>
    </macro>

    Comment

    • jasbinschek
      Junior Member
      • Dec 2017
      • 19

      #3
      Originally posted by pransakti
      did some template already define some trigger for HDD ?

      {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_WARN}

      {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_CRIT}

      with value in %
      <macro>
      <macro>{$STORAGE_UTIL_CRIT}</macro>
      <value>90</value>
      </macro>
      <macro>
      <macro>{$STORAGE_UTIL_WARN}</macro>
      <value>80</value>
      </macro>
      i would do this on the first trigger:
      {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}>{$STORAGE_UTIL_WARN} && {Template Net Mikrotik SNMPv2:vfs.fs.pused[hrStorageSize.{#SNMPINDEX}].avg(5m)}<{$STORAGE_UTIL_CRIT}

      so you wouldn't get 2 alarms when your item gets 90%+

      also, the correct threshold would be 90 and 95, so:

      <macro>
      <macro>{$STORAGE_UTIL_CRIT}</macro>
      <value>95</value>
      </macro>
      <macro>
      <macro>{$STORAGE_UTIL_WARN}</macro>
      <value>90</value>
      </macro>

      Comment

      • rbatton
        Junior Member
        • Nov 2018
        • 1

        #4
        Apologies but VERY NEW to Zabbix and I am hunting for exactly this. As I can find the Trigger prototypes for the trigger, I do not find where you set the "macro" for this so the values for $STORAGE_UTIL_CRIT and $STORAGE_UTIL_WARN can be changed? It's probably glaringly obvious but I am not finding this.

        Comment

        • MattK
          Junior Member
          • Jul 2021
          • 15

          #5
          For anyone still having trouble finding where to edit these values:
          Click image for larger version

Name:	Screenshot 2021-08-03 094515.png
Views:	645
Size:	53.1 KB
ID:	429109

          Comment

          Working...