dusharu / ZBX_Disk_Stat

Send statistic from /proc/diskstats to Zabbix
GNU General Public License v3.0
7 stars 5 forks source link

can't get values #2

Closed emper0r closed 4 years ago

emper0r commented 4 years ago

Hi.. i'm using centos 7.4 my cut version is 8.22 so don't have -z option for now, that option comming on 8.32, in any case I delete that -z on the code and from console I can get result in this way

zabbix_get -s dbtest1 -k custom.blkdev.discovery
{
        "data":[
                {       "{#DEVBLK}":"fd0"       },
                {       "{#DEVBLK}":"sr0"       },
                {       "{#DEVBLK}":"sdb"       },
                {       "{#DEVBLK}":"sda"       },
                {       "{#DEVBLK}":"sda1"      },
                {       "{#DEVBLK}":"sda2"      },
                {       "{#DEVBLK}":"cl-root
"       },
                {       "{#DEVBLK}":"cl-swap
"       },
                {       "{#DEVBLK}":"mysqlvg-mysqllv
"       }
        ]
}

seems fine.. but after import and did all steps.. regex, import, etc.. I can't get discovery files.. the output error is.

thanks for your work I appreciate the help

image

dusharu commented 4 years ago

Hi, I find error and try to fix it tomorow, when I get my notebook.

Thank you for your feedback.

dusharu commented 4 years ago

Fix it commit 764f210

emper0r commented 4 years ago

Hi again @dusharu

Thanks so much... now works fine..!