Tagged articles

Script

106 articles · Page 2 of 2
MaGe Linux Operations
MaGe Linux Operations
Mar 12, 2017 · Backend Development

How to Build a Reliable Python Script for Memcached Testing and Error Handling

This article walks through the step‑by‑step process of creating a Python script to test Memcached servers, covering installation of python‑memcached and umemcached, retrieving server stats, handling connection errors with try‑except, logging failures, and refining the script into a reliable monitoring tool.

Scripterror handlingumemcached
0 likes · 5 min read
How to Build a Reliable Python Script for Memcached Testing and Error Handling
ITPUB
ITPUB
Nov 2, 2016 · Operations

Monitor Linux System Resources with Simple Shell Scripts

This guide shows how to write Bash functions that retrieve process IDs, CPU, memory, file‑descriptor usage, port status, system load and disk space on a Linux server, and how to combine them with conditional checks to generate alerts when thresholds are exceeded.

LinuxOperationsScript
0 likes · 16 min read
Monitor Linux System Resources with Simple Shell Scripts
MaGe Linux Operations
MaGe Linux Operations
Apr 15, 2015 · Operations

Why Your SSH Loop Stops After One Host—and How to Fix It

Learn why a Bash script that reads IPs from a file and uses SSH in a while loop only processes the first host, and discover two reliable solutions—switching to a for loop or adding the -n option to SSH—to ensure all servers are queried correctly.

AutomationScriptbash
0 likes · 4 min read
Why Your SSH Loop Stops After One Host—and How to Fix It