Skip to content

beta1597/cg-monitor

Repository files navigation

What is CG-monitor?

CG-Monitor is a web based application that allows you to remotely monitor and manage your CGMiner/SGMiner mining rigs all in one easy to use graphical interface.
Use any web browser, smart phone or tablet to check stats or remotely control one or more mining rigs.
CG-Monitor does not require any port forwarding from your router/firewall.
All information transmitted to and from your mining rigs are encrypted and Salted on private keys to maximize security.
CG-Monitor is an Open Source application.

If CG-Monitor has been beneficial to you, please consider donating a little something to the developer:
BTC: 1JcBmddyvWUMoBM7exCq2NwLtmF8vyprAn
LTC: LhWGLVWquMnvbNErjZSmmfc4LEw9wF1aop

Features

  • Intuitive, easy to read GUI using any web browser on a PC or Mac and also on iOS, Android and Windows smart phones and tablets.
  • Support for Windows 7/8 and Linux mining rigs using CGMiner/SGMiner. ASICs are also supported.
  • SGMiner multi-algorithm support. (SGMiner 4.0.1 and above)
  • Real time detailed statistical information for each rig in your farm. Historical stats of up to 48 hours using detailed charts.
  • Easy to use Pool Manager to quickly direct your rigs to the most profitable pools, remotely.
  • Automatically change Intensity based on GPU temp and fan speed.
  • Email alerts for dead/sick GPU’s, temperature and low WU.
  • Integrated Task Scheduler to automatically switch pools, reboot rigs and reset stats.
  • Automatically reboot rigs when a dead/sick GPU is detected. Rebooted rigs will automatically switch back to the pool it was previously mining.
  • Secure login system using JavaScript SHA Hashing. All commands are encrypted in the database.
  • This software is Open Source and is free of Malware or any form of donation mining.

Requirements:

  • cgminer / sgminer properly configured with API write access allowed
  • cg-monitor needs to be the only automatic sync application (cg-remote and cg-monitor can interfere with each other)

How does it work?

You need a small client (php page) that will run every 2 min.
Every 2 min the client will send an encrypted private key to the server.
The server will response with all the actions that the client need to do.

After executing all the actions, the client will sent the api data from cgminer to the server.
The server will look for pool, temp, etc changes and will decide if there are other actions to take (sync pools, change intensity)

After this actions the server will reset the private key to nothing for security reasons.

What are the security measures we have taken?

  • write api key of the miner limited to 127.0.0.1
  • you never need open a port on your router
  • encrypted login
  • salted and encrypted password
  • all actions are encrypted in the database
  • all transactions from and to your miner are encrypted

How can you contact me?


Installation webhost:

Download https://mega.nz/#!ER8jQCgJ!b8iMosrqFugDdHU4fgjNODP4cALMK2bYir3JglSVnDk
Extract all files to your own computer
Change the _config.php file with your database settings
Make sure you change the secret_passphrase (password and encryption is based on this key)

Upload all the extracted files to your own webhosting (don’t extract install.zip).
When you don't have your own webhosting you can use this free webhosting (000webhost.com):
https://github.com/beta1597/cg-monitor/blob/master/INSTALL_FREE_WEBHOST.md

Browse to /install.php
Choose a username and a password (longer than 6 char)


Installation rig:


You need to install a little php client on every rig to sync to your webhost.
Why on every rig? Because we need to send an exec command to reboot your rig or change algorithm.
Installation procedure is explained in the help menu on the webhost.

Installation files for linux (all linux version's) and windows available.

You need to change all the files in the “com-linux” or “com-windows” directory to your own cgminer or reboot commands. Because otherwise the commands will not work.


FAQ:

Q. Can i trust the source of cg-monitor?

A. Yes you can. We have made it with the greatest security measures and total open source, you can check the source if you don't trust us.


Q. Do i need to change something to my config file?

A. Your mining utility (cgminer / sgminer etc.) requires that API write access is allowed. Here's an example:

...
"api-allow" : "W:127.0.0.1",
"api-listen" : true,
"api-port" : "4028",
...

Q. How can i disable sync on my rig?

A. You can always stop the sync by comment the line out in the cron "/etc/crontab" or disable the task in "Windows Task Scheduler"


Q. Why are my pools not synced from my miner to cg-monitor?

A. You need to add your pools to cg-monitor self. The application needs to know the pools algorithm, the password, etc... When you switch to a pool in cg-monitor, the application will push the pool to the miners/rigs.


Q. Why do i need to setup a backup pool

A. When your first pool is dead cg-monitor will automatic switch to your backup pool. So you need to add a backup pool for every algorithm.


Q. How can i reset my password?

A. You need to update the "value1" colomn of the row "user" in the "cgmonitor__settings" table with your own secret_passphrase (in the _config.php file), then the system will ask you back for a new user and a new password.


Our Donation Addresses:

Bitcoin
1JcBmddyvWUMoBM7exCq2NwLtmF8vyprAn

Litecoin
LhWGLVWquMnvbNErjZSmmfc4LEw9wF1aop


About

Monitor you CG-Miners

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published