Collects data from local server and sends it to example.com
Server must respond with status 204.
OpenAPI spec: openapi.json
-
Download mon-1-0.src.rpm
-
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
- Run:
sudo crontab -e
- 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.