parse reports or logs for errors, warnings, failed runs

asked 2015-02-17 16:24:44 -0500

johntest gravatar image

updated 2015-02-18 13:14:02 -0500

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.

edit retag flag offensive close merge delete

Comments

Can you describe the problems you encountered with the module? It appears that it should do what you want, so maybe there's any easy solution to those, rather than trying to build something else. Please post a link to any relevant errors, and perhaps someone can help you with that.

GregLarkin gravatar imageGregLarkin ( 2015-02-18 12:09:36 -0500 )edit

I would try running the Puppet agent with the additional options "--debug --trace" and then post a link to a pastebin of the output. The output should show the exact commands used to send the data to Zabbix, and that will help troubleshoot it.

GregLarkin gravatar imageGregLarkin ( 2015-02-18 14:13:32 -0500 )edit

Also, have tried running zabbix_sender manually, perhaps like one of the examples here: http://linux.die.net/man/1/zabbix_sender Does any data show up if you do that?

GregLarkin gravatar imageGregLarkin ( 2015-02-18 14:14:55 -0500 )edit