Visualizing data using Logstash and Elasticsearch.
Software engineering, testing methods, build workflows and deployment mechanisms.
Threat mitigation, systems monitoring, traffic visualization and troubleshooting.
Systems design, server and container management and scaling .
Automating Nagios Configurations
Using Consul and Consul-Template.
Example assumes the node IP Address is 172.21.1.21 and that you have jq installed. If you do not have jq remove | jq . from the commands. Expand the number of shards that can be reallocated Choose settings appropriate for
Overview Nagios Core Server combined with the Nagios Remote Plugin Executor (NRPE) Server allows Nagios to execute remote plugins on client servers. This post discusses automated ways to override the default plugin tests and parameters. Assumptions This post assumes you
Consul and Consul-Template are two powerful tools for updating server files and executing a command after the file has been updated. This makes it a great and lightweight tool for managing configuration files for applications that need to reload or restart after
sel.datum(aryData) vs. sel.data(aryData) .datum() gives aryData to all elements in the selection. .data() gives one unique array value in aryData to each element in the selection (i.e. .update()). It also has .enter() and .exit() as methods. Example Here’s the data we’ll
This one-liner strips all numbers from any string. I show it in BASH using sed which does a RegEx expression to match only digits. Python has the built-in function str.isdigit() so we test each character and make a list comprehension
This post is a brief introduction of how I setup a system to add, update and remove Nagios configurations as servers are created and destroyed. Future posts detailing each step will be coming soon. Until then you can go to hashicorp.com or nagios.org for
Now that we have some keys in Consul, we want to get that into a Nagios configuration file using Consul-Template. Consul-Template requires only two files which are used to create a third. hosts.hcl – template configuration hosts.ctmpl – template hosts.cfg –
In my overview post I showed a key/value structure in Consul that could be used to store metadata on each Node. Now I’ll discusses how to put node metadata into the Consul key-store. For this example we have two web servers in the san