- Bash Script – An Alternative to Logrotate.d for Asterisk Log Files
- Bash Script – Auto-Repair an Array of MySQL Database Servers
- Bash Script – Backup All Databases to Separate Files
- Bash Script – Convert a Batch of WAV Files to SLINEAR Format for Asterisk Hold Music
- Bash Script – Install HP Server Management Tools on Ubuntu Server
- Bash Script – Log Concurrent Asterisk Calls to MySQL and Other Useful One-Liners
- Bash Script – Move Asterisk Call Files into Spool Directory
- Bash Script – Move Files into Subdirectories Based on Modified Date – OR – Moving Ntop Netflow Dumps into Subdirectories by Date
- Bash Script – OpenMCU-ru Service Monitor -OR- Monitor and Automatically Restart a Service Upon Failure
- Bash Script – Pcapsipdump Spool Directory File Rotation – OR – Rotate Directories Based on YYYYMMDD Format
- Bash Script – Script Based MySQL Table Replication on an Array of Slaves
- Bash Script – Split a Variable into an Array with Carriage Return Line Feed as the Delimiter
- Bash Script – Sync a File to an Array of Hosts
- Bash Script: Test Veeam Linux Agent Socket and Restart Service if Needed
- Startup Script for OpenMeetings Open-Source Video Conferencing Server
- Ubuntu – Icecast2 Startup Script with Ices2 Support
- Ubuntu Desktop – Run X11vnc Server at Startup
Bash Script: Test Veeam Linux Agent Socket and Restart Service if Needed
I recently started using the full version of Veeam Backup & Replication (Build 11.01.1261) in a corporate production environment and was kind of shocked to find that the Veeam Agent for Linux (Agent version: 5.0.1.4493) fails so regularly with the following warning and error messages:
Processing ServerName Error: Failed to execute agent management command print. Connection refused Failed to connect: /var/tmp/veeam/socket/veeamservice.sock. Failed to connect to veeamservice daemon.
and
Task failed. Error: Failed to execute agent management command print. Connection refused Failed to connect: /var/tmp/veeam/socket/veeamservice.sock. Failed to connect to veeamservice daemon.
Apparently, Veeam offers no error checking or resolution process for automatically restarting the service, so I had to write a quick script to resolve this ongoing issue.
Continue reading “Bash Script: Test Veeam Linux Agent Socket and Restart Service if Needed”