CLI tool providing quick access to essential system information. Ideal for monitoring and debugging, it offers real-time data on host IP address, system load, memory usage, logged-in users, and more. Compatible with Linux and macOS systems.
MIT License
osmon is a command-line tool written in Go that provides quick access to basic system information. With osmon, you can easily access details such as your host's IP address, system load, memory usage, logged-in users, and much more.
osmon is an ideal tool for a quick overview of a server's status upon SSH login. You can configure your shell to automatically run osmon
every time you log in, providing an immediate snapshot of the server's status.
Example:
.bashrc
or .zshrc
to run osmon
upon every login, allowing you to immediately assess the state of the server.osmon can be an invaluable tool for debugging performance issues. By running osmon
, you can quickly identify if high system load is caused by memory, CPU, or network activity.
Example:
osmon
to check if the system is under heavy load.You can install osmon using the Go tool:
go install github.com/debek/osmon@latest
After installation, add the Go binary path to your system's PATH to access the osmon
command from anywhere:
export PATH=$PATH:~/go/bin
osmon offers various command-line options for tailored usage. Below are the available flags and their descriptions:
-h
: Display help information. [...]
-v
: Display the version of the application. [...]
-i
or --interval
: Set the interval for refreshing the display in seconds. [...]
To simply display the system information, run the osmon
command without any flags:
osmon
If you want to continuously monitor your system's status with a specific refresh interval, use the -i
flag with your desired interval in seconds:
osmon -i 5
If you release a binary version of osmon, users can follow these steps:
Download the binary from the "Releases" section of your GitHub repository.
Move the binary to a directory in your PATH, for example, /usr/local/bin
:
mv osmon /usr/local/bin/osmon chmod +x /usr/local/bin/osmon
If you're interested in contributing to the osmon project, please check our contribution guidelines. All contributions, from bug reporting to new feature suggestions, are highly appreciated.
This project is available under the MIT License.
Special thanks to the Go community for creating excellent libraries like github.com/shirou/gopsutil
, which make it easier to gather system information.