- Eugeneer’s Digital Cloud World — цифровой мир в облаках
- А А Friday, 17 January 2020
- Not Supported метрика в Zabbix.
- Ad Widget
- Service Windows Agent zabbix Unsupported item key
- Unsupported item key for «mysql.discovery. slave» #2
- Comments
- SmetDenis commented Jun 12, 2018
- tears-of-noobs commented Jun 13, 2018
- SmetDenis commented Jun 13, 2018 •
- akitsul commented Jun 13, 2018 •
- SmetDenis commented Jun 15, 2018 •
- chadsterBAM commented Oct 22, 2018 •
- ZBX_NOTSUPPORTED: Unsupported item key #18
- Comments
- mitsus commented Oct 3, 2017
- jangaraj commented Oct 3, 2017
- mitsus commented Oct 3, 2017 •
- jangaraj commented Oct 3, 2017
- mitsus commented Oct 3, 2017 •
- jangaraj commented Oct 3, 2017
- mitsus commented Oct 3, 2017
- ZBX_NOTSUPPORTED: Unsupported item key. #2
- Comments
- naveensnayak commented Nov 11, 2014
- lorf commented Nov 12, 2014
- nguiot commented Dec 9, 2014
- lorf commented Dec 9, 2014
- nguiot commented Dec 10, 2014
- lorf commented Dec 10, 2014
Eugeneer’s Digital Cloud World — цифровой мир в облаках
Блог творческого ИТ-практика. Возьми свою мысль и дай ей ускорение идеи. В моем фокусе: сети, безопасность, виртуализация, web, мультимедиа.
А А Friday, 17 January 2020
Not Supported метрика в Zabbix.
Всем привет.
При работе в Zabbix для метрики(item) можно легко получить статус «Unsupported item key.» Самое простое объяснение это когда я ошибаюсь с типом метрики — ее значение текстовое, а я выставил число. И наоборот. Но бывают и варианты.
Вариант 1.
Решил я промониторить температуру ЦП через внешнюю команду в агенте Zabbix:
UserParameter=Temperature.CPU[*], C:\Zabbix\CPUtemp.bat
CPUtemp.bat:
for /F «usebackq tokens=7-10» %%a in (`D:\Toolkit\OpenHardwareMonitor\OpenHardwareMonitorReport.exe`) do echo %%b %%c %%d| find «/intelcpu/0/load/0″>nul && set temper0=%%a
echo %temper0%
Ручной контроль параметра:
c:\zabbix\zabbix_agentd.exe —config c:\zabbix\zabbix_agentd.win.conf —print | findstr Temperature
Для тех кто столкнулся с похожей ошибкой при работе с параметром:
Temperature [m|ZBX_NOTSUPPORTED] [Unsupported item key.]
совет будет другим.
Найдите в конфиге агента параметр «UnsafeUserParameters», он обычно закоментирован и по дефолту равен 0. Уберите знак комментария и установите ему значение 1:
UnsafeUserParameters=1
Это потому что символы \ ‘ » ` * ? [ ]
$ ! & ; ( ) | # @ изначально не позволены в «UserParameter», а значение «1» снимет это ограничение.
Возможно будут еще варианты.
Успехов.
Ad Widget
Service Windows Agent zabbix Unsupported item key
I have a brand new Zabbix server in my professional lab, version 3.4.14 on CentOS Linux release 7.5.1804. (I’ll certainly migrate it on release 4 soon)
I’d like to control le state of my Windows services (Microsoft Exchange, RDS, DNS DHCP etc. ), I dont know how to did it in SNMP then I get back to Zabbix Agent.
I meet an issue with this last one, when I apply a template based on Zabbix Agent some request work but many of them failed and I lookup on my host there is «Unsupported item key», an exemple with «service.info[ServiceName]» (service.info[wuauserv])
This issue figure out with brand new template, create by myself with only 1 element for the test, but it happend too when I try with the Windows OS template which try to service.discovery.
I don’t have more details about the «Unsupported item key», i don’t know really where to search.
I tried to check the general state on my server and i’m on a «Degraded» state, could you please said me if there is a link with my problem or not and how to fix it ? (Attached item «systemctl_status.txt»)
I attach some pics with my actual configuration of a Zabbix Agent (Server side), (my host got an Agent release 3.14, and i tried with a release 4.0 and 3.12 and there is the same issues, the same in my home lab which is a Zabbix server release 3.12).
In both case the connection with Zabbix Agent is OK (Green) but still «Unsupported key».
I don’t find any release note, patch note or bug note about this issue on other forum or google.
Unsupported item key for «mysql.discovery. slave» #2
Comments
SmetDenis commented Jun 12, 2018
I have successfully installed your MySQL Template (import xml, global macros, bin, agent config)
So now I have
Unsupported item key. for mysql.discovery[<$MYSQL_DSN>,<$MYSQL_USER>,<$MYSQL_PASS>,slave]
How I can fix it?
Thanx and best regards.
Zabbix server/agent: 3.4.10
MySQL: 5.7.22
Ubuntu: 18.04
The text was updated successfully, but these errors were encountered:
tears-of-noobs commented Jun 13, 2018
@SmetDenis Hi.
Can you manually run on your server this command from the user which use by zabbix-agent and show me the output?
where:
MYSQL_DSN — data source of MySQL server e.g. — «localhost:3306»
MYSQL_USER — mysql user which has permissions for performing queries like — SHOW GLOBAL STATUS and SHOW PROCESSLIST
MYSQL_PASSWORD — password of MySQL user.
SmetDenis commented Jun 13, 2018 •
Hi
Tnx for reply.
But galera descovering doesn’t work too.
It shows me Unsupported item key. like MySQL slave
Yeap, user zabbix has permissions for SHOW GLOBAL STATUS and SHOW PROCESSLIST .
I have checked it now.
Is there any other way to check it?
Maybe i have to check some config in the template.
akitsul commented Jun 13, 2018 •
Install and run netcat nc -l -p 10051 (not on zabbix-server) and run /usr/bin/zabbix-agent-extension-mysql —type galera -z $NETCAT_IP on host with mysql.
Please show the output of netcat.
SmetDenis commented Jun 15, 2018 •
Thnx.
I’ll check it later and say you about results.
Sorry,I don’t have any opportunities to do that. Later.
chadsterBAM commented Oct 22, 2018 •
Can I jump in here? I’ve also run the same nc line and it returns PuTTYPuTTYPuTTY. However when I try to run the other lines, I get «blah blah, command cant be run by ‘zabbix’@’localhost’ — permission denied. I can confirm that I ran the query for granting as described in setup multiple times, and have also added zabbix to localhost.
UPDATE: I should also mention that from the Zabbix server I am getting «Unsupported item key»
ZBX_NOTSUPPORTED: Unsupported item key #18
Comments
mitsus commented Oct 3, 2017
Hi,
I’ve compiled and installed module. I see the it into /usr/local/lib/zabbix/modules/libzbxsystemd.so.
I changed paramenters info /etc/systemd/systemconf and I reload then zabbix-agent.
If i call (for example) show this error:
[root@zabbix zabbix-module-systemd]# zabbix_get -s -k systemd[Architecture] ZBX_NOTSUPPORTED: Unsupported item key.
Where is my error?
The text was updated successfully, but these errors were encountered:
jangaraj commented Oct 3, 2017
Enable DebugLevel=5 in the Zabbix agent config to see systemd module debug output in the zabbix-agent log file.
mitsus commented Oct 3, 2017 •
Below zabbix_agentd.log with DebugLevel=5:
jangaraj commented Oct 3, 2017
Please provide more log lines. Startup agent log lines are also important.
mitsus commented Oct 3, 2017 •
Ok. This is complete StartUp agent log:
jangaraj commented Oct 3, 2017
mitsus commented Oct 3, 2017
You have right. Sorry. I added LoadModule and LoadModulePath. adn it work now. Thanks 😉
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
ZBX_NOTSUPPORTED: Unsupported item key. #2
Comments
naveensnayak commented Nov 11, 2014
I have zabbix agent version 2.4.2 and trying to monitor apache 2 on Ubuntu 14.04
I have imported al the templates and made all config changes
when i try to test the script using
i get the errror
ZBX_NOTSUPPORTED: Unsupported item key.
The text was updated successfully, but these errors were encountered:
lorf commented Nov 12, 2014
Zapache retrieves «http://localhost/server-status?auto», check if it works on your host.
nguiot commented Dec 9, 2014
I have quite the same behavior with Debian Wheezy 7.0, zabbix 2.4.2, Apache 2.2.22
I tried to add some debugging «echo» in the script, and the error is return by this test :
In my case, $rval = 1, $value is empty
lorf commented Dec 9, 2014
In debug run You need to specify URL for machine readable status page, e.g «http://localhost/server-status?auto» or awk may fail. Please check contents of resulting /tmp/zapache-http___localhost_server-status.cache file.
There also may be problems with cache file permissions, please check that. I added a check for that error in latest commit couple of minutes ago.
nguiot commented Dec 10, 2014
OK, sorry, I had misread the manual and the code :
lorf commented Dec 10, 2014
It’s also always a good idea to check zabbix-agent logs. Script stderr will go there.