parse reports or logs for errors, warnings, failed runs
Hi there, I have been searching this quite a bit but could not find much information on how to properly go about it. I am using Puppet Open source version 3.7 What I want to do is parse and extract and send data on errors, warning, and failed Puppet runs into Zabbix. For failures, errors or any issues on specific nodes we want to report the hostname/IP of the node as well.
Is there an existing script I can use for this? If not, is there a document that has a list of the errors, warnings, failures which I can use to parse the reports/logs?
Thank you and appreciate the help
P.S. I have already tried module thomasvandoren-zabbix but it did not work for me after a lot of troubleshooting.
Further info I was getting an error "failed to send data to zabbix (zabbix-host:10051). While troubleshooting, I saw that the name on zabbix and one in puppet for hostname did not match. When I fixed the name the error stopped, however I am still not seeing any data in zabbix. I am not sure of how the report processor works. It seems to use zabbix sender tying in with a ruby script.
In puppet.conf reports = log, zabbix
If I can have some idea of how this module is working then I can handle the part of feeding that data into zabbix.