Ad Widget

Collapse

zabbix detect wrong free space on linux partition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mixmox
    Member
    • Apr 2020
    • 54

    #1

    zabbix detect wrong free space on linux partition

    hello
    my zabbix item detect wrong free space on linux

    df -h:
    /dev/sdb1 800G 72G 728G 9% /backup

    my zabbix item and trigger:
    {My Linux:vfs.fs.size[/backup,pfree].last()}>85

    zabbix last value is:
    88.2072 %
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, I checked one of my hosts and there the values matched (47% used and 53% pfree). What is your Zabbix agent version? How old was the item value compared to your df command execution?

    Your trigger doesn't make sense to me (alert when free space is over 85%) but that's up to your requirements.

    Markku

    Comment

    • mansourh12120
      Junior Member
      • Jun 2021
      • 10

      #3
      hello every body!
      i created a file in externalscript and wrote below script in it

      #!/bin/bash
      packetloss= 'ping -q -i0.30 -n -s 50 -c5 ${1} | grep "packet loss" | cut -d " " -f6 | cut -d "%" -f1
      [ -z "$ {packetloss}" ] && packetloss=100
      echo "${packetloss}"

      now i create an item with key packetloss(script file name) but i get this error" value of type "string" is not suitable for value type(float)".value "connect:invalid argument
      thanks

      Comment

      Working...