PDA

View Full Version : Problem with new items


Fatima R R Tonon
24-01-2005, 21:35
hi,
I'm having a problem when i try to create a new item:
perf_counter[\Web Service(_Total)\Current Anonymous Users]
when i type the above key, Zabbix records into the database with two "\\" like:
perf_counter[\\Web Service(_Total)\\Current Anonymous Users]

cooper
24-01-2005, 22:31
hi,
I'm having a problem when i try to create a new item:
perf_counter[\Web Service(_Total)\Current Anonymous Users]
when i type the above key, Zabbix records into the database with two "\\" like:
perf_counter[\\Web Service(_Total)\\Current Anonymous Users]


Yeah this has to do with the way php, unix, linux, take your pick, escape 'special' shell characters. The best/easiest way to monitor perfmon counters is to set them up as aliases in the agentd.conf file on the box being monitored. see http://www.zabbix.com/manual_config_w32.php

For example:


in agentd.conf
Alias = WWW[anon]:perf_counter[\Web Service(_Total)\Current Anonymous Users]


Then you can monitor it from the server by the aliased item name, in this case WWW[anon].

HTH

cooper