Python Prompts Free Prompt

Python Script to Monitor CPU Load Average

Write a Python script that monitors system load average
☆ Save
Prompt
You are a Python developer. Write a script that uses os.getloadavg() to get load average on Unix systems. The script must: 1) Get 1, 5, 15 minute loads, 2) Log to file, 3) Alert if high, 4) Run periodically, 5) Provide a plot, 6) Handle cross-platform (Windows alternative), 7) Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.