"Philadelphia": htop metrics disagree
Scenario: "Philadelphia": htop metrics disagree
Level: Medium
Type: Fix
Tags:
Access: Email
Description: This host exports load and uptime to /var/lib/sad/sysinfo.txt for a small internal dashboard. htop and btop are installed for troubleshooting.
On-call reports the dashboard shows load stuck at 0.00 and an old uptime, while the live process viewers look correct. A leftover lab service leaves a defunct (zombie) child in the process list.
Read /home/admin/incident-notes.txt. Fix the exporter and the zombie lab so published metrics match the real kernel counters and no zombie children remain under the lab parent.
Root (sudo) Access: True
Test: The 1st line of /var/lib/sad/sysinfo.txt is SadServers - Philadelphia OK. The load_1m and uptime_seconds values in that file match /proc/loadavg and /proc/uptime (within a small tolerance).
sad-zombie-lab is active and has no zombie children.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 20 minutes.