Linux Admin Task
You're right! Networking troubleshooting is a key part of a Linux admin's daily tasks. Here’s the updated checklist, now including network troubleshooting along with log rotation, mounting, and other system administration duties.
---
## Linux Admin Daily, Weekly, and Monthly Tasks
### Daily Tasks:
1. System Health Checks
- Monitor CPU, memory, and disk usage (top, htop, free -m, df -h).
- Check system load (uptime).
- Verify running services (systemctl list-units --failed).
2. Log Monitoring & Rotation
- Check logs (journalctl -xe, tail -f /var/log/syslog).
- Ensure log rotation is running (logrotate -d /etc/logrotate.conf).
3. User & Permission Management
- Manage users (useradd, usermod, passwd, userdel).
- Set correct file permissions (chmod, chown, setfacl).
4. Service & Process Management
- Restart failed services (systemctl restart <service>).
- Check running processes (ps aux, htop).
5. Storage & Mounting Checks
- Check mounted filesystems (mount, df -Th).
- Verify disk usage (du -sh /home/*).
- Ensure auto-mounting works (cat /etc/fstab, mount -a).
6. Networking Troubleshooting
- Check network interface status (ip a, ifconfig).
- Verify connectivity (ping -c 4 8.8.8.8).
- Test DNS resolution (nslookup google.com or dig google.com).
- Check routing issues (ip route show, traceroute 8.8.8.8).
- Identify listening ports (ss -tulnp, netstat -tulnp).
- Restart network services if needed (systemctl restart networking, nmcli networking on).
7. Backup & Restore
- Verify backups (rsync, tar, cron jobs).
- Restore a test backup to confirm integrity.
8. Security & Access Control
- Monitor failed SSH logins (grep "Failed password" /var/log/auth.log).
- Verify firewall rules (iptables -L, firewalld --list-all).
- Scan for open ports (nmap -sT localhost).
---
### Weekly Tasks:
1. Patch & Update Systems
- Update OS and packages (apt update && apt upgrade or yum update).
- Reboot if required.
2. Storage & Filesystem Maintenance
- Clean up unused logs (find /var/log -type f -name "*.log" -mtime +30 -delete).
- Check and repair disk errors (fsck -y /dev/sdX).
- Review disk quotas (quota -v, repquota -a).
3. Networking Performance & Troubleshooting
- Check bandwidth usage (iftop, nload).
- Detect network latency (mtr google.com).
- Debug packet loss (tcpdump -i eth0 host 8.8.8.8).
4. Backup & Disaster Recovery
- Restore a test backup.
- Validate DR (Disaster Recovery) strategies.
---
### Monthly Tasks:
1. Audit Logs & Security
- Review logs (grep "error" /var/log/*).
- Audit sudo usage (grep "sudo" /var/log/auth.log).
- Check for security vulnerabilities (lynis audit system).
2. Networking Optimization & Security
- Analyze network traffic (tcpdump -i eth0).
- Check active connections (netstat -an | grep ESTABLISHED).
- Optimize firewall rules (iptables-save > /etc/iptables.rules).
3. Storage & Mounting Management
- Check disk failures (smartctl -H /dev/sdX).
- Expand LVM partitions if needed (lvextend, resize2fs).
4. System Performance Optimization
- Analyze performance metrics (vmstat, iostat).
- Tune database performance (my.cnf, postgresql.conf).
5. Update Documentation & Incident Reports
- Log all major system changes.
- Review and update disaster recovery plans.
---
Now it covers log rotation, mounting, storage, and networking troubleshooting. Would you like me to create bash scripts for some of these tasks?
Last updated