-
Incident report
-
Resolution: Workaround proposed
-
Critical
-
None
-
3.4.6, 3.4.7
-
ProLiant ML370 G6 / CentOS 7, Linux version 3.10.0-693.17.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP / Zabbix 3.4.7 (from sources) / PGSQL 9.5 / Apache 2.4.6 / PHP 5.6.34 (remi) / Perl v5.16.3ProLiant ML370 G6 / CentOS 7, Linux version 3.10.0-693.17.1.el7.x86_64 ( [email protected] ) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP / Zabbix 3.4.7 (from sources) / PGSQL 9.5 / Apache 2.4.6 / PHP 5.6.34 (remi) / Perl v5.16.3
Steps to reproduce:
I'm afraid, what it's a ... a specific situation. I am not sure, that it can be reproduced easily... But i hope you can explain what is it a problem and how can i avoid it... Or you can fix it, if it's a real bug in preprocessing with regex.
Configure Item as "Telnet agent", our target - HP MSA (P2000 or 2050SAN, etc).
Executed script: 2 (step-by-step) commands, to get an xml responce from remote system
set cli-parameters base 10 api brief enabled pager disabled
show disks 1.1
Type of information: text
If i stop at this step, all works perfectly. I receive a full text output from telnet commands. You can see full output at the attached log file "hp_msa_xml_out.txt"
But i need to reduse output garbage: i need to clean out all strings from "set cli-parameters base 10 api brief enabled pager disabled" to "# show disks 1.1".
To do it, i will use this regexp:
E>\n.*?\n((?=<\?xml)(?:(?:.*?\r?\n?)*)E>)
Output formatting: \0
Sure, all next parsing steps (XML items to values mapping) will be done at dependent items, with XPATH directives.
Type of information: various, character or numerics of any allowed types
Result:
If i add this regexp (i do not create any dependent item at this moment) and right after next Item's data refresh interval, zabbix daemon is crashed (died).
Typical log entries at this case:
2262:20180228:161551.330 One child process died (PID:3016,exitcode/signal:11). Exiting ...
2262:20180228:161553.351 syncing history data...
2262:20180228:161553.451 syncing history data done
2262:20180228:161553.451 syncing trend data...
Full debug log (L4) - at attached file "zabbix.log".
Expected:
As expected results, i need to get correct data in item, must looks like data in attached file "hp_msa_xml_out_expected.txt"