/Server-Information-Board

Script collects information about server traits and state, and monitors running services on it.

Primary LanguageShell

Server-Information-Board

Collects data from local server and sends it to example.com

Server must respond with status 204. OpenAPI spec: openapi.json

Installing

  1. Download mon-1-0.src.rpm

  2. If you use CentOS/RHEL, run:

sudo rpm –i mon-1-0.src.rpm

If you use Ubuntu/Debian, run:

sudo apt-get install alien dpkg-dev debhelper build-essential
sudo alien mon-1-0.src.rpm
sudo dpkg -i mon-1-0.src.deb
  1. Run:
sudo crontab -e 
  1. Write into your crontab file:
SHELL=/bin/bash

*/1 * * * * /opt/mon/mon.sh http://example.com/server-data?server-name=abc.com

In this example the data is being collected every 1 minute, but you can set any other time interval.