DevOpsFetch is a versatile tool designed to retrieve and display system information including active ports, Docker images and containers, Nginx configurations, user details, and system activities within a specified time range. It formats outputs for readability and ensures comprehensive system monitoring.
- A Debian-based or Ubuntu system.
sudoprivileges.
-
Clone the Repository
git clone https://github.com/your-repo/devopsfetch.git cd devopsfetch -
Run the Installation Script The installation script installs necessary dependencies, sets up the systemd service, and configures log rotation.
sudo ./install.sh
The
install.shscript performs the following tasks:- Installs
bash,systemd,logrotate,jq, anddocker.io. - Copies
devopsfetch.shto/usr/local/bin/and sets the appropriate permissions. - Configures the systemd service for DevOpsFetch.
- Configures log rotation for the DevOpsFetch logs.
- Installs
The systemd service file is located at /etc/systemd/system/devopsfetch.service. It contains:
[Unit]
Description=DevOps Fetch Service
After=network.target
[Service]
ExecStart=/usr/bin/bash /usr/local/bin/devopsfetch.sh
Restart=on-failure
User=root
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=devopsfetch
[Install]
WantedBy=multi-user.target