Hi!
I have a problem when creating an item:
in zabbix conf file I placed new item:
UserParameter=TomcatThreadStatus,curl -su Administrator:Password 10.0.0.2/manager/status/all | grep http-80 | awk '{ gsub("<tr>","\n"); print }' | awk '{ gsub("<td>"," ") ; print }' | awk '{if ($2 > 1000) print $2}' | awk '/[0-9]/' | /usr/bin/wc -l
When pasting this query directly, result is OK:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36780 0 36780 0 0 1529k 0 --:--:-- --:--:-- --:--:-- 1933k
0
Unfortunately in Zabbix all I can see is status \not supported\.
I restart zabbix agent after applying changes in config file.
Would be grateful for any help.
- Michal
I have a problem when creating an item:
in zabbix conf file I placed new item:
UserParameter=TomcatThreadStatus,curl -su Administrator:Password 10.0.0.2/manager/status/all | grep http-80 | awk '{ gsub("<tr>","\n"); print }' | awk '{ gsub("<td>"," ") ; print }' | awk '{if ($2 > 1000) print $2}' | awk '/[0-9]/' | /usr/bin/wc -l
When pasting this query directly, result is OK:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36780 0 36780 0 0 1529k 0 --:--:-- --:--:-- --:--:-- 1933k
0
Unfortunately in Zabbix all I can see is status \not supported\.
I restart zabbix agent after applying changes in config file.
Would be grateful for any help.
- Michal
Comment