Hi all, I'm trying to come up with a lens for the zabbix agent config files. I find the lens language untransparent at best, so I'm struggeling to figure out what's up. The debugging possibilities are extremely limited. Here's what I have now:
zabbix.aug: ==== (** An adjusted copy of the postfix_main module **) module Zabbix_agent = autoload xfm (************************************************************************ * USEFUL PRIMITIVES *************************************************************************) let eol = Util.eol let comment = Util.comment let empty = Util.empty let eq = del /[ \t]*=/ " =" let word = /[A-Za-z0-9_.-]+/ let value = let chr = /[^# \t\n]/ in let any = /.*/ in let line = (chr . any* . chr | chr) in store line (************************************************************************ * ENTRIES *************************************************************************) let entry = [ key word . eq . (value)? . eol ] (************************************************************************ * LENS *************************************************************************) let lns = (comment|empty|entry) * let filter = incl "/etc/zabbix/zabbix_agentd.conf" . incl "/etc/zabbix/zabbix_agent.conf" . Util.stdexcl let xfm = transform lns filter === a sample snippet from a zabbix agent.conf: === # head -n25 /etc/zabbix/zabbix_agentd.conf ########################################################### # PUPPET MANAGED # # Do not edit this file on a server node unless you # # are willing to have your changes overwritten by # # Puppet. If you really want to change the contents # # repository and check it out on the puppet server. # ########################################################### # This is config file for zabbix_agentd # To get more information about ZABBIX, go http://www.zabbix.com ############ GENERAL PARAMETERS ################# # List of comma delimited IP addresses (or hostnames) of ZABBIX servers. # No spaces allowed. First entry is used for sending active checks. # Note that hostnames must resolve hostname->IP address and # IP address->hostname. Server=backend.yomamma.com # Server port for sending active checks #ServerPort=10051 # Unique hostname. Required for active checks. === And the augeas output (all empty): == [/etc/puppet] # augparse /usr/share/augeas/lenses/contrib/zabbix_agent.aug [/etc/puppet] # augtool -e ls /files/etc/zabbix/zabbix_agentd.conf == Any help would be sincerely appreciated :) cheers, -- Walter Heck -- follow @walterheck on twitter to see what I'm up to! -- Check out my new startup: Server Monitoring as a Service @ http://tribily.com Follow @tribily on Twitter and/or 'Like' our Facebook page at http://www.facebook.com/tribily -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.