krom / zabbix_template_md

MD Soft RAID minitoring template for zabbix
GNU General Public License v3.0
57 stars 30 forks source link

Not work (zabbix 4.0) #6

Closed CheckB closed 5 years ago

CheckB commented 5 years ago

Hi. On a host with debian 8, everything is ok, on a host with debian 9 in the detection rules: Unsupported item key. What could be the problem? p.s. zabbix 4.0

CheckB commented 5 years ago

If you execute all parameters from userparameter_md.conf, then they will execute correctly.

krom commented 5 years ago

Hi. Execute this command

$ zabbix_get -s 192.168.0.3 -k 'md.discover'
{"data":[{"{#MDNAME}":"md0"}]}

Where 192.168.0.3 is your phisical server You should store userparameter_md.conf at your server with MD Raid, but not Zabbix server.

If I execute this command, I have the same message because zabbix (localhost) server is virtual server w/o MD Raid.

$ zabbix_get -s localhost -k 'md.discover'
ZBX_NOTSUPPORTED: Unsupported item key.
CheckB commented 5 years ago

@krom 1

krom commented 5 years ago

@CheckB service zabbix-agent restart // or another command zabbix_get -s localhost -k 'md.discover'

?

CheckB commented 5 years ago

Of course I did a restart. And the problem with all the templates added, except for the standard ones from zabbix.

I would gladly conclude, but I can’t solve this problem yet:

zabbix_get [10193]: Check access restrictions in Zabbix agent configuration

CheckB commented 5 years ago

On Zabbix 3.0, everything works without problems.

krom commented 5 years ago

Did you import template_md_4.0.xml? I created template_md_3.0.xml for zabbix v3 then migrated to zabbix 4.0 with exists template and params.

template_md_4.0.xml was added by PR

CheckB commented 5 years ago

I tried 3.0, 4.0. Watched diff between 3.0 and 4.0. Nothing that could be a solution.

krom commented 5 years ago

Im closing issue this look like miss configuration.