monitor CPU, RAM and Disks
Website, SSL certificates, Port and Ping monitoring
- Create database from cli
use eagle
- Create following collections
- cpu
- disks
- ping
- port
- ssl
- Create username and password
use eagle
db.createUser(
{
user: "your_username",
pwd: "your_password",
roles: [ { role: "readWrite", db: "eagle" } ]
}
)
Note: you can use mongodb cloud as your data store https://www.mongodb.com/pricing
- Clone eagle repo
$ git clone https://github.com/cloudsark/go-eagle.git && cd go-eagle
- Build go-eagle
go build
- Create go-eagle service
cp systemd/go-eagle.service /etc/systemd/system/go-eagle.service
vi go-eagle.service
ADD env variables to Environment=
save file
systemctl daemon-reload
systemctl enable go-eagle
systemctl start go-eagle
systemctl status go-eagle
- Validate
tail -f /var/log/eagle-log.log
- Clone eagle repo
$ git clone https://github.com/cloudsark/eagle.git && cd eagle
- Build Docker Image
$ docker build -t eagle-go .
- Run Container
$ docker run --detach --name=eagle-go \
-e SLACK_TOKEN='' \
-e SLACK_CHANNEL='' \
-e CLIENT_USERNAME='' \
-e CLIENT_PASSWORD='' \
-e MONGO_DB='' \
-e MONGO_USER='' \
-e MONGO_PASSWORD='' \
-e MONGO_URL='' \
-e MONGO_PARN='' \
eagle-go
- Check logs
$ docker logs eagle-go .
you need to install eagle-client on any server you want to monitor its (cpu & disks)
- Download eagle-client
wget https://github.com/cloudsark/go-eagle/releases/download/v0.2/eagle-client
- Create client directory
mkdir /eagle-client
mv eagle-client /eagle-client
chmod 777 /eagle-client/eagle-client
- Create eagle-client service
cd /etc/systemd/system/
wget https://raw.githubusercontent.com/cloudsark/go-eagle/master/systemd/go-client.service
vi go-client.service
set client username & password in Environment=
modify both (WorkingDirectory & ExecStart)
save file
systemctl daemon-reload
systemctl enable eagle-client
systemctl start eagle-client
systemctl status eagle-client
- Validate client
netstat -ntlp | grep :10052
- Allow access to port 10052 from firewall or security group