Ad Widget

Collapse

Monitor directory usage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mun
    Member
    • Sep 2016
    • 67

    #1

    Monitor directory usage

    Hi all,

    I want to monitor the usage of /var directory, i have try in few servers but suddenly one server attempt to get this kind of error >> Value "(standard_in) 1: parse error" of type "string" is not suitable for value type "Numeric (float)". Anyone have the same problem?

    **If i run the script in command line, it appears result.
    Any suggestion?

    Thanks.
    Attached Files
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    I think that an error has occurred in calling customdirusage[].

    Make sure that the script you are calling to get the value of that item can be executed by the user who is running the Zabbix agent.
    Is not the environment variable setting insufficient or different from the root user?

    Comment

    • kernbug
      Senior Member
      • Feb 2013
      • 330

      #3
      Originally posted by Mun
      Hi all,

      Any suggestion?

      Thanks.
      Hello, Mun

      Looks like type mismatch. Could you perform zabbix_get from server for this item?

      Also you could try this:
      Code:
      ##in bytes
      UserParameter=[B]dir[/B].size[*],</path/du> -sb $1|awk '{print $$1}'

      Comment

      Working...