PDA

View Full Version : Problem Monitoring Items with Special Caracters


hitchhiker
24-06-2007, 22:44
Hi All,

I have been using Zabbix for quite a while now and I have recently updated to 1.4, I have notice the follow:
When monitoring an Item with perf_counter Zabbix does not support having [] or () nor % in the Key
Example:
\Network Interface(Intel(R) Advanced Network Services Virtual Adapter)\Bytes Received/sec
\SQLServer:Databases(msdb)\Log File(s) Size (KB)
\Processor(0)\% Processor Time

Status turns to Not Supported
MSSQL Express windows internal database service cannot be monitored with service_state because Key does not support special characters
Example:
Windows Internal Database (MICROSOFT##SSEE)

Is this a bug?

Alexei
25-06-2007, 10:25
It looks like a bug. Thanks for reporting.

globifrosch
16-07-2007, 10:17
seems that this problem applies also to umlauts (ä ü ö etc.)

This doesn't work:
perf_counter[\Physikalischer Datenträger(_Total)\Durchschnittl. Warteschlangelänge der Datenträger-Lesevorgänge]

Message: Incorrect key format 'key_name[param1,param2,...]'

This works:
perf_counter[\Physikalischer Datentraeger(_Total)\Durchschnittl. Warteschlangelaenge der Datentraeger-Lesevorgaenge]

(works as in "it can be saved, however can't get data)

(yes german perfcounters have really nice and extra short names)

i'm using 1.4.1

- Thomas

globifrosch
16-07-2007, 11:22
ok, i found the in the defines.php ZBX_EREG_PARAMS there was somethin like [[print]] but this matches (the hell knows why) not ä ö ü etc. change it to

define('ZBX_EREG_PARAMS', '(.+){0,1}');

and now i can save parameter with umlauts.

- Thomas

testos
20-08-2007, 11:13
Zabbix pre 1.4.2 Revision 4600 - Date 16 Aug, 2007, problem still not fixed.
I cannot save parameter with umlauts.

Thanks

753713
07-09-2007, 16:31
define('ZBX_EREG_PARAMS', '(.+){0,1}');

Thanks for this "mini howto", its work fine

Christian

753713
07-09-2007, 21:27
Hello,

I have a next problem with "german umlauts (ÜÄÖ)", after change in defines.php ('ZBX_EREG_PARAMS', '(.+){0,1}') , I cannot export and import my items.

Any ideas???

Christian

psedo
13-09-2007, 10:28
There are some news about that ? (patch,...)

The modification of "defines.inc.php" or enter item keys without special caracters and then to edit mysql "item" table with special caracters, seems to be not very reliable so the only solution, for the moment, for perf_counter (for example) with special caracter is to put into each zabbix_agentd.conf ?


Thank's in advance

NOB
02-10-2007, 13:06
Hi,

I have some Windows 2003 SP2 64-bit systems with more than one interface,
i.e. four.

The interfaces are called, e.g., "Interface", "Interface #2" and "Interface #3".
The fourth one is not used.

I can, say, request the performance counter for the first one ("Interface") fine,
but for the second one the Zabbix Agent (1.4.2) returns "Unsupported".

I didn't check the sources, yet, but is this a bug or is it my mistake
in not using the right syntax ?

The real items (from zabbix_get) used are as follows:

This one works fine:

zabbix_get -s i14.xxx.org -k 'perf_counter[\Network Interface(Intel[R] PRO_1000 PT Quad Port LP Server Adapter)\Output Queue Length]'

The next one doesn't:

zabbix_get -s i14.xxx.org -k 'perf_counter[\Network Interface(Intel[R] PRO_1000 PT Quad Port LP Server Adapter #2)\Output Queue Length]'

Is there a way to quote the '#' character ?

Regards

Norbert.

NOB
02-10-2007, 13:11
Hi again,

sorry, there is no problem with the character #
It'll never really appear in the perf_counter because Windows
maps the connection / devicename # to a _ !
That means "Interface _2" instead of the device name "Interface #2".
I did not check the real performance counter because the name was
soooo long so it was not visible in the perfmon dialogbox, the windows
is not resizable, etc.
And I couldn't imagine that Windows maps the # to a _

Sorry.

Regards

Norbert

pierre-hoffmann
02-04-2008, 14:22
Hi,

I'm searching for solution for special char 'éèà' in french in key name.

Example creating:
Windows US key: perf_counter[\System\Threads]
Windows French key: perf_counter[\Système\Threads]

Generate:
Incorrect key format 'key_name[param1,param2,...]'

Any idea .... Any Patch [i'm using Zabbix 1.4.5]

Laca
11-04-2008, 15:43
Hi!

I have a problem too with this (language-related) special characters, while I try monitor mixed environment. (Win2003ENG; Win2003HUN)

I would like to monitor the Average disk read queue length with the following key:

perf_counter[\Physical Disk(_Total)\Avg. Disk Read Queue Length]

It works perfectly on Win2003ENG.

In Windows2003 Hungarian edition the key is:

perf_counter[\Fizikai lemez(_Total)\Lemezvezérlő-várólista átlagos hossza]

I got the same error message:

Incorrect key format 'key_name[param1,param2,...]'

Has anybody an working solution to solve this problem?

Laca

felipebare
14-04-2008, 15:03
What about this bug ? It's still happening when I try to create:

perf_counter[\PhysicalDisk(_Total)\Média de disco s/leitura]

Regards.

Felipe.

scott
28-04-2008, 22:57
Recently upgraded to Zabbix 1.4.5 and now am experiencing issues with any Key with / symbol.

Incorrect key format 'key_name[param1,param2,...]'

The items still function but I cannot make changes or add new ones with same format. Is the bug back in 1.4.5? Any help and/or recommendations?

EDIT: Further testing shows that if brackets are placed around the symbol it will function. Ex:
key1/1/1 will fail
key[1/1/1] will function

n0name
09-10-2008, 12:57
I use next perf_counter["counter"]
It work.

pierre-hoffmann
09-10-2008, 13:45
Hi,

No it doesn' work; even in 1.6 (with ou without "")

http://zabbixserver.free.fr/captures/zabbix_items_spec_chars_1_6.png

Regards,
Pierre.

n0name
09-10-2008, 13:58
Be careful:

Description: Free Disk Space on All Partitions in %
key: perf_counter["\LogicalDisk(_Total)\% Free Space"]

pierre-hoffmann
09-10-2008, 14:27
Hi,

i've say even with double quotes
(with ou without "")

http://zabbixserver.free.fr/captures/zabbix_items_spec_chars_1_6_quotes.png

pierre-hoffmann
09-10-2008, 14:29
But here i've response from Alexei that 1.6 have doen't have support of UTF-8 ...
So this explain this message :!!!!

http://www.zabbix.com/forum/showthread.php?p=38083#post38083

Regards,
Pierre.