Steps to reproduce:
- AIX 7.1
- Zabbix Agent 3.0
- Try to get proc.num by command line argument: <some_hidden_search_string> (replaced for security reason).
root@:/ #ps -ef | grep -i "config <some_hidden_search_string>> <some_hidden_search_string>> server1"
root 19660970 7930084 0 17:35:53 pts/0 0:00 grep -i config <some_hidden_search_string>> <some_hidden_search_string>> server1
wasuser 21430484 1 3 Nov 01 - 7260:50 /usr/IBM/WebSphere/AppServer/java_1.7.1_64/bin/java -Declipse.security -Dwas.status.socket=58511 ... 3500+ chars.
Result:
root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[java,]" proc.num[java,] [u|2] root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,server1]" proc.num[,,,server1] [u|2] root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,<some_hidden_search_string>]" proc.num[,,,<some_hidden_search_string>] [u|1]
String length is about 3374 symbols, only "server1" pattern is found at 234 position.
Expected:
root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,<some_hidden_search_string>]"
proc.num[,,,<some_hidden_search_string>] [u|2]