Copy script to /opt/autoupdate.sh Script content: Assign execution rights to script. schedule update Update logs location: /var/log/ubuntu_update.log To enable zabbix monitoring assign zabbix template in zabbix and modify agent config to include correct values for “ServerActive” & “Hostname” values sample Zabbix template for monitoring updates:
Category: Linux
Making snapshot on Nutanix from guest VM using Nutanix API
If you prefer full control inside the VM (or you want something more tailored per workload), following approach is to run a pre-snapshot script (quiesce), trigger the snapshot via API, then run a post-snapshot script (resume). 2. Snapshot trigger (API example ) 3. Post-snapshot (example) This route can work well when you want custom quiescing […]
Fault-tolerant cluster with haproxy and keepalived. Also backend sync with glusterfs
Case: build fault tolerant souliton using linux servers and sync data between cluster members with glusterfs. solution: keepalived + HAProxy for VRRP and glusterfs to sync data. Install keepalived + haproxy keepalived.conf configuration example Script to check if haproxy is alive – /etc/keepalived/check_haproxy.sh: Sample of haproxy.cfg: Done. Now let`s configure glusterfs to sync data between […]
XLS-to-CSV converter in custom-build Docker container
Dockerfile – to create custom docker containerdocker-compose.yml – to build/start containerconverter.py – python script to convert exel filesentrypoint.sh – to start cron service in containercrontab.txt – to schedule cron task to run every 5 min Dockerfile content: docker-compose.yml content: content of converter.py content of entrypoint.sh content of crontab.txt build and start converter enjoy results.
Apache NiFi in Docker
shell csript to deploy NiFi run it. enjoy your Apache NiFi.
CFS connection to Windows share
Install cifs-utils Create directory to mount Mount a CIFS windows share To make it permanent add to /etc/fstab something like this: .credentials file example:
We have LLM at home!
This will install Local LLM to your server. Basic installation. You will need to do a lot before get benefits from having LLM at home. Prepare server: Ensure Docker is installed on your server. Use the following commands to install Docker and docker-compose if not already installed: Ensure sufficient CPU and memory are allocated for […]
Ansible: snapshoting VM on VMWare and cleanup old snapshots.
Solution1. Script to make a snapshoots of listed servers. powershell. store password in separate file (/root/vmware.cred in this case). script itself servers.inv content – just list of servers (how they present at VMWare). like this: Solution2. Cleanup old snapshoots. Just schedule it to run periodically and it will delete all associated to servers snapshoots. Yep, […]
Ansible: update OS on remote server
Combined use of shell script and ansible to update remote servers, divided to 3 groups. shell script: content of update_ubuntu_template.yml content of update_ubuntu.yml content of ansible.cfg content of ansible_servers.inv group_vars/all.yml should have your user password in encoded form. Something like this:
Deploy and/or upgrade splunk forwarder on Ubuntu
Case: customer want simply wat to update splunk forwarder on Ubuntu servers. Solution: script to simplify update process. Solution Create shell script and allow it to run script run script and enjoy easy update done