Ad Widget

Collapse

little problem with custom script lld

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dukejustice
    Junior Member
    • Dec 2015
    • 11

    #1

    little problem with custom script lld

    Hello to you all.

    I am running Zabbix 3 alpha4 on Ubuntu 14.04 LTS.

    I have setup a user parameter to get the output of the command repquota.

    Everything with the json output works fine but this...

    When I create items... like this:
    Code:
    user.discovery[{#USERNAME}]
    user.discovery[{#USERNAME},{#QUOTA}]
    I get the whole json output (for all the users) in all the value instead of
    Code:
    johndoe
    256000
    here is a sample of the output json:
    Code:
    {
    	"data":[
    	{"{#USERNAME}":"johndoe","{#USED}":"47832","{#QUOTA}":"256000","{#FILES}":"2597"},
    	{"{#USERNAME}":"janedoe","{#USED}":"276","{#QUOTA}":"51200","{#FILES}":"45"}
    	]
    }
    Are there any pointers to what I did wrong?

    Best regards.
    Last edited by dukejustice; 29-12-2015, 05:56.
Working...