Using Mustache template system with CFEngine

Mustache is a template system logic-less(no ifs, else’s or for loops) and can be used for HTML, config files, source code and so on. CFEngine 3.6.x have support for Mustache, in this tutorial we will create a template and a CFEngine rule to parse the template and generate the file that we want. Create the template file /tmp/template.mustache My hostname is: {{hostname}} My name is: {{name}} Fruits that I like: {{fruits}} Our CFEngine file /tmp/parse_template....

April 13, 2015 · 1 min · Danilo Fernando Chilene

Monitoring CFEngine with Zabbix

I created a template to monitor CFEngine with Zabbix, that monitor processes, memory use and the promise summary log. Below what is included on the template: Process CF-serverd Process CF-monitord Process CF-execd Memory use process CF-serverd Memory use process CF-monitord Memory use process CF-execd Log cf-engine - Log view of /var/cfengine/promise_summary.log CFEngine listen port 5308 and generate alerts if (CF-serverd, CF-monitord, CF-execd) is down The template you can download it directly here: bit....

August 22, 2014 · 1 min · Danilo Fernando Chilene