|  |  | 
| Subject: | How to poll and parse a 50k flat file | 
| Author: | [Not Specified] | 
| Posted: | 2016-09-02 13:45 | 
I have flatfiles on several different servers that I want to model and monitor off. I have not been able to find any examples of what I hope to be able to do. I have be able to access and grep the files with a command performance template, but I would really like to be able to parse the files in the zenosspython eviroment rather than the limitations of the command template.
Can I use a command monitoring template to echo/cat/cp/ftp the content to then be processed by a custom parser Is this a preffered method
Or is there another type of template that would get me access to the file (like as a line array)
We're on 5.1.4
| Subject: | You could make a python | 
| Author: | Jay Stanley | 
| Posted: | 2016-09-06 15:31 | 
You could make a python datasource to do this. But zencommand already does this. Just write a custom parser or write a script that is executed and outputs json or nagios output.
the ZenPack Dev Guide goes over this
https://github.com/ZenossDevGuide/DevGuide
| < | Previous Problem with option STACK in graphpoints | Next Swap graph not generated | > |