Zabbix not getting data for one filesystem

7,735

It turns out that I had set the data type for /home to float, but for other volumes I had set it to unsigned decimal. On the servers that were reporting 0, the free space was larger than other servers and the value overflowed the field.

Setting the field type to unsigned decimal to match the others corrected the problem.

Share:
7,735

Related videos on Youtube

Dennis Williamson
Author by

Dennis Williamson

Stackathlon Leader Boards #SOreadytohelp The Bridge Builder             I am the first user         to earn at least 50,000         reputation points each                                  on all three of               Stack Overflow,              Server Fault and                  Super User.   I was also the first user to surpass   the 10K, 20K, 30K and 40K point levels each on all three of those sites. ###Are you a Stackathlete? ###Check the standings on Profile:I'm a Unix/Linux devops engineer/sysadmin/programmer Devotion to Duty Try my unofficial Printifier for xkcd.

Updated on September 18, 2022

Comments

  • Dennis Williamson
    Dennis Williamson over 1 year

    I have Zabbix monitoring disk space for several volumes on several servers. It works fine on all of them except for one of the volumes on one of the servers which always reports as 0. However, when I run

    ./zabbix_get -s localhost -p 10050 -k 'vfs.fs.size[/home, free]'
    

    locally on the machine in question, it gives me the correct, non-zero size which matches the output of df.

    How can I go about troubleshooting and correcting this problem?

    • chris
      chris over 11 years
      What is in the agent log? 1.x or 2.x? Active or passive check?
    • Dennis Williamson
      Dennis Williamson over 11 years
      @chris: There's no mention of the vfs key in the log or any errors. Only startup messages (collectors, listeners, active checks). It's version 2.0.0. And the checks are active. Values are returned successfully for other volumes on this server.
    • bmurtagh
      bmurtagh over 11 years
      Can you post a screenshot of the item config for this host? Also, what is the latest data/history for the item showing are there previous dates with values other than 0?
    • Dennis Williamson
      Dennis Williamson over 11 years
      @bmurtagh: It's the same template as used by other similar servers which do not exhibit this problem. As I said in the original post, this volume on this server always shows 0 in the Zabbix data screen, but zabbix_get always reports a correct value.