_ _____ ____ _____ _____ _____
___ ___| |_| _ | \| | | | |
| . | . | _| | | | | | |- -| | | |
|_ | _|_| |__|__|____/|_|_|_|_____|_|___|
|___|_|
Effortlessly streamline your Linux sysadmin tasks with the Sysadmin Assistant – a powerful tool that combines real-time error monitoring, interactive ChatGPT troubleshooting, and comprehensive system insights.
- Real-time Error Monitoring: Keep an eye on system logs for errors as they happen.
- Interactive ChatGPT Troubleshooting: Engage in natural conversations with ChatGPT for expert solutions.
- Comprehensive System Insights: Display vital system information including distribution, kernel, CPU, RAM, and more.
Get started quickly:
- Clone this repository to your local machine.
- Run the setup script to install necessary dependencies and configure your API key:
chmod +x gptADMIN.sh ./gptADMIN.sh
- The setup script will prompt you to enter your OpenAI API key. Make sure to have an OpenAI account and generate an API key.
- Once setup is complete, run the main script using:
python3 gptADMIN.py
- The script will proactively monitor system logs for errors.
- When an error is detected, initiate a ChatGPT session for in-depth troubleshooting.
- Exit the chat session by typing 'exit' or 'quit'.
- Stop the Sysadmin Assistant with Ctrl+C.
- Always exercise caution when using scripts with elevated privileges.
- Understand the implications of actions based on ChatGPT's advice.
- Review and validate responses before implementing changes on your system.
Installation script supports a range of popular package managers:
- apt-get (Debian/Ubuntu)
- dnf/yum (Fedora/RHEL/CentOS)
- zypper (openSUSE)
- pacman (Arch Linux)
- apk (Alpine Linux)
- eopkg (Solus)
- xbps-install (Void Linux)
- pisi (Pardus)
- swupd (Clear Linux)
- and more...
There may be and would be false positives or false negatives so be careful and do not use this tool on production automation. But this tool may help to decrease the time spent on production
Feel free to contribute by creating pull requests or reporting issues.