Survive with 1 LLD worker challenge, Zabbix
Вставка
- Опубліковано 10 лют 2025
- Enjoy content? Kindly hit like button.
LLD manager receiving hits about discoveries:
grep -Eo 'discovery \S+ has been processed' /var/log/zabbix/zabbix_server.log
Overall frequency of all LLD rules, biggest hits on bottom:
grep -Eo 'discovery \S+ has been processed' /var/log/zabbix/zabbix_server.log | sort | uniq -c | sort -n
Produce URLs to enter GUI to see origin, biggest hits on top
grep -Eo 'discovery \S+ has been processed' /var/log/zabbix/zabbix_server.log | sort | uniq -c | sort -n | sed 's|^.*rule:|host_discovery.php\?form=update\&itemid=|;s| has been processed|\&context=host|' | tail | tac
How much time each rule takes to complete, need to compare clock between 2 lines:
grep -E '(lld worker #1 |processing discovery rule)' /var/log/zabbix/zabbix_server.log
Show only LLD cycles which parsed a single LLD rule and it took more than 10 seconds
grep -E '(lld worker #1 |processing discovery rule)' /var/log/zabbix/zabbix_server.log | grep -E -B1 "processed 1 LLD rules, idle \S+ sec during [0-9][0-9]\S+ \S+" | tail -33
#monitoring #zabbix #lld #optimization #troubleshooting #debug
*Chall/e/nge.
Thank you for contribution :) It's fixed.