Based on an enquiry from a visitor to the OSM Ireland website I had a little play with the OSM data for Ireland to see if I could offer advice on how to generate shape files of townland areas. Below is the process I used and it can be adapted for other administrative boundaries such… Read more »
Posts Categorized: Uncategorized
Newry Canal Towpath Spring Flowers
Dean Mac Cu Uladh hosted a walk along the towpath and pointed out some of the native flowering species. Photographs of just three are below. Stitch Wort Marsh Marigold Dog Rose
Fish Shell Escape Delay
Using the fish shell I needed to increase a timeout to allow me to use Esc-. keyboard sequence to print the last argument from the previous line: Add the following line to ~/.config/fish/fish_variables to fix the problem:
Check SSL Certificate Dates via CLI
Quick command to check the expiry dates on SSL certicate:
Ansible Ad Hoc Commands
Just for future reference: ansible -i /tmp/ips -f 10 -m shell -a “sudo docker restart logstash” all
CentOS 8 munin-node needs PowerTools
I had the following error installing munin-node on a new CentOS 8 system: Depsolve Error occured: Problem: package munin-node-2.0.54-2.el8.noarch requires perl(Net::SNMP), but none of the providers can be installed\n – conflicting requests – nothing provides perl(Digest::SHA1) >= 1.02 needed by perl-Net-SNMP-6.0.1-25.el8.1.noarch Solution is to enable the repo CentOS-PowerTools sed -i ‘/enabled=0/enabled=1/’ /etc/yum.repos.d/CentOS-PowerTools.repo
Chef Knife List Nodes with IPs
I had to fiddle a bit with this so possibly worth keeping a note of it. I wanted to pull all the node hostnames and ip addresses from chef for use in hostname lookups and ssh config.
Postgresql VACUUM and ANALYZE all tables in a database
The example below uses the database named netbox so change as needed. It gets a list of the tables in the database and for each one performs a full vacuum and analyze. There is probably a more efficient way to do this from the psql prompt but this is what worked for me: su -… Read more »
Proxmox: adding internal private nework
In this scenario I wanted to be able to run several VMs that can communicate with each other on a private subnet e.g. 10.10.10.* and also be access the internet for updates etc. Eventually I want to expose some of the internal services. My proxmox server has one network interface with an internet facing IP… Read more »
SELinux: Create Policy for NRPE Writing
Had a problem with Nagios/NRPE checks that are configured to write a status file as part of their check. The path /var/logstate was the target created the policy below. Andrew (Urban Penguin) Youtube video is an excellent resource. Install selinux utilities: yum install policycoreutils policycoreutils-devel setools-console setroubleshoot The audit log (/var/log/audit/audit.log) was showing the type=AVC… Read more »

