KeNIC Logo AFRALTI Logo

CCTLD Training Cohort 3

account_circle

CCTLD Training Cohort 3

Module 5 – Monitoring Infrastructure

Master the art of enterprise-grade network visibility. Learn how to deploy robust monitoring solutions on Linux Virtual Machines using Nagios for infrastructure and Peekaping for latency analysis.

terminal

SSH Remote Access

VM Access Credentials

Server IP

196.13.202.XX

Username

kenic_trainee

Password

********

Copy

# Connect via terminal

ssh [email protected]
warning

Permission denied

Ensure your SSH public key is added or you're using the correct password.

timer

Connection Timeout

Verify VPN connectivity or firewall rules on the target VM.

lock_reset

Host Key Failed

Run ssh-keygen -R [IP] to clear old fingerprints.

monitoring

Nagios Core Installation

Nagios Core provides monitoring and alerting services for servers, switches, applications and services. Follow these steps to perform a standard deployment on Ubuntu/Debian.

1 Update System & Install Dependencies
Copy sudo apt update && sudo apt upgrade -y sudo apt install -y autoconf gcc libc6 make wget unzip apache2 php libapache2-mod-php7.4 libgd-dev
2 Nagios Service Management
Action Command
Restart Service sudo systemctl restart nagios
Status Check sudo systemctl status nagios
Test Config /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
analytics

Peekaping Deployment (Docker)

Architecture & Security

Peekaping is a modern ICMP monitoring tool designed for containerized environments. It utilizes Docker for isolation and TimescaleDB for high-fidelity data persistence.

  • check_circle Data Persistence: Managed via named Docker volumes to ensure historical ping data survives container restarts.
  • check_circle Network Isolation: Runs on a dedicated internal Docker bridge network.
  • check_circle Secure Exposure: Interface accessible only via authenticated reverse proxy.

# Docker Management Commands

Check container status:

docker ps -a

View real-time logs:

docker logs -f peekaping_app

Restart stack:

docker-compose restart
cloud_download

Resource Center

terminal
Nagios Setup Script

Automated bash script for installing Nagios Core 4.4 and Nagios Plugins on Ubuntu 20.04/22.04 LTS.

Download .sh chevron_right
layers
Peekaping Manifest

Docker Compose file and configuration templates for the Peekaping monitoring stack.

Download .zip chevron_right
description
Monitoring Guide PDF

Comprehensive technical documentation covering Module 5 theory and practical exercises.

Download PDF chevron_right