Ad Widget

Collapse

How to monitor Use% of mount disk (Linux) on Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tbin_vhit
    Junior Member
    • Jan 2019
    • 6

    #1

    How to monitor Use% of mount disk (Linux) on Zabbix

    Dear all,
    I want to monitor Use% of mount disk (Linux) on Zabbix. What should I do it? HELP ME, PLEASE..

    Ex:
    Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 60K 2.0G 1% /dev tmpfs

    I want to alert WARNING when Use% >= 85%
    And alert CRITICAL when Use% > 95%
  • jacobc
    Junior Member
    • Mar 2019
    • 5

    #2
    Here is an expression you can use in the trigger for the host you are querying.

    cpanel10 is a cpanel-whm server here and we are monitoring the disk space used within that folder (as well as all the websites on there). Note you will need to have the zabbix agent running on the environment you are querying and allow the devices to talk to each other.
    Attached Files

    Comment


    • tbin_vhit
      tbin_vhit commented
      Editing a comment
      Hi jacobc,
      Thank for support !
      I was fixed it with solution below:

      1. Create an item to measure the free space in the partition.
      ---
      • Name : Free disk space on /mounted_disk on (percentage)
      • Type : Zabbix agent
      • Key : vfs.fs.size[/mounted_disk,pfree]
      • Type of information : Numberic (float)
      • Unit: %
      • Update interval: 1m
      • Application: Filesystems
      ---

      2. Create a trigger to make an alert.
      ---
      • Name : {HOST.NAME} - Free disk space is less than 20% on volume Mounted on
      • Severity: Warning, High
      • Expression : {Template OS Linux:vfs.fs.size[/mounted_disk,pfree].last(0)}<20
      ---

      3. Create an action (we use a single generic Action for all triggers here) if you wan't zabbix_server to act when trigger is ON: send notifications, run commands ...
  • jacobc
    Junior Member
    • Mar 2019
    • 5

    #3
    That's awesome, tbin!

    Comment

    Working...