Bitcoin Forum
May 22, 2024, 09:19:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Antminer S1 monitor via snmp/syslog  (Read 5216 times)
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 08, 2014, 03:28:27 PM
 #1

Hi all,

is there any way to monitor a Antminer S1 via snmp/syslog.
im trying to get the temperature from the Unit.


Thx all

Wurzelsepp
jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 08, 2014, 04:59:44 PM
 #2

Hi all,

is there any way to monitor a Antminer S1 via snmp/syslog.
im trying to get the temperature from the Unit.


Thx all

Wurzelsepp


The cgminer API is currently best way to do this. Syslog capability is present, but is a little broken and useful more for debugging functionality.

I'm not sure that snmp is supported in any fashion.
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 08, 2014, 05:42:00 PM
 #3

Any manual for that? Im a noob and dont know anything about API

jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 08, 2014, 07:04:39 PM
 #4

Any manual for that? Im a noob and dont know anything about API



The manual: https://github.com/ckolivas/cgminer/blob/master/API-README

You're going to want coffee before reading that. 

There's also this thread which might help: https://bitcointalk.org/index.php?topic=412322.msg5724869#msg5724869
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 08, 2014, 07:13:39 PM
 #5

ok...for this i need more than 1 coffee!!!!

is there no other way to monitor ant´s temperature???

im running the units in a serverroom and cant watch them 24/7 ...


faxfan2002
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile
April 08, 2014, 07:27:21 PM
 #6

You can use CGremote which gives an overview including temp (hooks into the API)
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
April 08, 2014, 07:29:08 PM
 #7

ok...for this i need more than 1 coffee!!!!

is there no other way to monitor ant´s temperature???

im running the units in a serverroom and cant watch them 24/7 ...

AFAIK, no.  Once you have API access enabled, you could use something like MobileMiner to check on your miners from anywhere.  Mine are in the garage...they usually run around 115-120°F.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 08, 2014, 10:53:59 PM
 #8

ok...for this i need more than 1 coffee!!!!

is there no other way to monitor ant´s temperature???

im running the units in a serverroom and cant watch them 24/7 ...




You're aware there's a web UI? Temp data can be seen in the 'miner status' tab.
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 09, 2014, 07:16:04 AM
 #9

Quote
You're aware there's a web UI? Temp data can be seen in the 'miner status' tab.

But i dont want to open 7 Webinterfaces for checking temperature.
And i want to get notification if the temperature reaches a critical level.
digitizing
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
April 09, 2014, 08:41:33 AM
 #10

Quote
You're aware there's a web UI? Temp data can be seen in the 'miner status' tab.

But i dont want to open 7 Webinterfaces for checking temperature.
And i want to get notification if the temperature reaches a critical level.
you can use this service http://cgminermonitor.com/
and use this command in linux
socat TCP4-LISTEN:4028,fork TCP4:192.168.1.99:4028
because cgminermonitor can only access to cgminer that running in the same machine
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 09, 2014, 06:46:11 PM
 #11

ok cgremote doing a good job but there is no notification system for temperature reaches critical level.
and really big problem is --> if temperature goes critical the ant should shutdown

nobody else have this problems?
nobody afraid of burning down your serverroom or house?
jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 10, 2014, 07:05:00 PM
 #12

ok cgremote doing a good job but there is no notification system for temperature reaches critical level.
and really big problem is --> if temperature goes critical the ant should shutdown

nobody else have this problems?
nobody afraid of burning down your serverroom or house?


Very much so, and I fought with the S1's thermal management (or lack thereof) for quite a while. Then Kano released custom cgminer binaries for the S1 that actually allow for a user specified temp threshold after which the miner goes into a cooldown mode (with a lower hashrate).

You can find them here: https://github.com/kanoi/cgminer-binaries/tree/master/AntS1
wurzelsepp82 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
April 10, 2014, 07:36:18 PM
 #13

thx fot that, but i cant get it to run ...
cgminer doesnt start
lowerjerzey
Member
**
Offline Offline

Activity: 106
Merit: 10

🤖UBEX.COM 🤖


View Profile
April 11, 2014, 05:16:51 AM
 #14

I wrote this in java with Selenium. Only 11 lines. I can add a temp check so if it exceeds a certain temp, it will automatically ssh in and kill cgminer, sleep for a set amount of time to cooldown(I think once cgminer is killed the webpage won't have the temp so I can't monitor if it cooled down), soft link in an asic-freq with the min frequency, then reboot. I'll have to add JSCH so it can ssh in. I can slap a gui on it and add the ability to monitor multiple antminers. The cgminer API is clunky and requires cgminer config file modification which a lot of owners probably won't feel comfortable to mess with. Plus, after reading that enabling the api may have caused dead chips, I don't want to touch it.


▓▓▓█████████████████████████████░░          UBEX          ░░█████████████████████████████▓▓▓
▓██████████████████░░          Global Decentralized Advertising Exchange          ░░██████████████████▓
▓███░   • Telegram  • Facebook  • ANN Thread  • Youtube  • LinkedIn  • Twitter • Medium  • Reddit  • Github   ░███▓
wolf_miner
Legendary
*
Offline Offline

Activity: 1018
Merit: 1001



View Profile
April 11, 2014, 06:15:08 AM
 #15

....... WHAT......?  Huh  enabling API may caused dead chips? Where you find this?

W_M
jimrome
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 11, 2014, 06:18:54 AM
 #16

....... WHAT......?  Huh  enabling API may caused dead chips? Where you find this?

W_M

Complete bullshit until proven otherwise.
lowerjerzey
Member
**
Offline Offline

Activity: 106
Merit: 10

🤖UBEX.COM 🤖


View Profile
April 13, 2014, 02:06:35 AM
 #17

....... WHAT......?  Huh  enabling API may caused dead chips? Where you find this?

W_M

Complete bullshit until proven otherwise.

https://bitcointalk.org/index.php?topic=412322.msg5072840#msg5072840

Not an unreasonable claim. I've gotten dead chips from simply rebooting. I've had to unplug the antminer and plug it back in to resolve them.

▓▓▓█████████████████████████████░░          UBEX          ░░█████████████████████████████▓▓▓
▓██████████████████░░          Global Decentralized Advertising Exchange          ░░██████████████████▓
▓███░   • Telegram  • Facebook  • ANN Thread  • Youtube  • LinkedIn  • Twitter • Medium  • Reddit  • Github   ░███▓
wolf_miner
Legendary
*
Offline Offline

Activity: 1018
Merit: 1001



View Profile
April 13, 2014, 11:06:19 AM
 #18

Hi, API are active on Antminer S1, infact if you connect to console ad run the command cgminer-api summary there is an answer like this

Code:
root@antMiner:~# cgminer-api summary
Reply was 'STATUS=S,When=1397386095,Code=11,Msg=Summary,Description=cgminer 3.12.0|SUMMARY,Elapsed=13063,GHS 5s=175.97,GHS av=178.78,Found Blocks=156,Getworks=797,Accepted=1422,Rejected=13,Hardware Errors=5,Utility=6.53,Discarded=1523,Stale=0,Get Failures=0,Local Work=805471,Remote Failures=0,Network Blocks=503,Total MH=2335392761.6234,Work Utility=2497.56,Difficulty Accepted=520544.00000000,Difficulty Rejected=5584.00000000,Difficulty Stale=0.00000000,Best Share=1976710,Device Hardware%=0.0009,Device Rejected%=1.0269,Pool Rejected%=1.0613,Pool Stale%=0.0000,Last getwork=1397386094|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1397386095
   [Code] => 11
   [Msg] => Summary
   [Description] => cgminer 3.12.0
)
[SUMMARY] =>
(
   [0] => SUMMARY
   [Elapsed] => 13063
   [GHS 5s] => 175.97
   [GHS av] => 178.78
   [Found Blocks] => 156
   [Getworks] => 797
   [Accepted] => 1422
   [Rejected] => 13
   [Hardware Errors] => 5
   [Utility] => 6.53
   [Discarded] => 1523
   [Stale] => 0
   [Get Failures] => 0
   [Local Work] => 805471
   [Remote Failures] => 0
   [Network Blocks] => 503
   [Total MH] => 2335392761.6234
   [Work Utility] => 2497.56
   [Difficulty Accepted] => 520544.00000000
   [Difficulty Rejected] => 5584.00000000
   [Difficulty Stale] => 0.00000000
   [Best Share] => 1976710
   [Device Hardware%] => 0.0009
   [Device Rejected%] => 1.0269
   [Pool Rejected%] => 1.0613
   [Pool Stale%] => 0.0000
   [Last getwork] => 1397386094

but is not allowed to call API from another computer else localhost (127.0.0.1) because in the configuration there aren't all necessary permission. So you need to enable the API for remote access. Someone suggest to edit /etc/config/cgminer. I do not know what solution is correct, but I think it is to edit /etc/init.d/cgminer because the etc/config/cgminer is written directly by Luci interface.

W_M[/code]
Slesh
Member
**
Offline Offline

Activity: 103
Merit: 10


View Profile
April 13, 2014, 01:13:39 PM
 #19

Use CGRemote - http://manotechnology.blogspot.cz/p/cgremote.html - it gives you all you need for mining.
Great SW for monitoring.
Slesh
Member
**
Offline Offline

Activity: 103
Merit: 10


View Profile
April 13, 2014, 01:18:11 PM
 #20

Hi, API are active on Antminer S1, infact if you connect to console ad run the command cgminer-api summary there is an answer like this

Code:
root@antMiner:~# cgminer-api summary
Reply was 'STATUS=S,When=1397386095,Code=11,Msg=Summary,Description=cgminer 3.12.0|SUMMARY,Elapsed=13063,GHS 5s=175.97,GHS av=178.78,Found Blocks=156,Getworks=797,Accepted=1422,Rejected=13,Hardware Errors=5,Utility=6.53,Discarded=1523,Stale=0,Get Failures=0,Local Work=805471,Remote Failures=0,Network Blocks=503,Total MH=2335392761.6234,Work Utility=2497.56,Difficulty Accepted=520544.00000000,Difficulty Rejected=5584.00000000,Difficulty Stale=0.00000000,Best Share=1976710,Device Hardware%=0.0009,Device Rejected%=1.0269,Pool Rejected%=1.0613,Pool Stale%=0.0000,Last getwork=1397386094|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1397386095
   [Code] => 11
   [Msg] => Summary
   [Description] => cgminer 3.12.0
)
[SUMMARY] =>
(
   [0] => SUMMARY
   [Elapsed] => 13063
   [GHS 5s] => 175.97
   [GHS av] => 178.78
   [Found Blocks] => 156
   [Getworks] => 797
   [Accepted] => 1422
   [Rejected] => 13
   [Hardware Errors] => 5
   [Utility] => 6.53
   [Discarded] => 1523
   [Stale] => 0
   [Get Failures] => 0
   [Local Work] => 805471
   [Remote Failures] => 0
   [Network Blocks] => 503
   [Total MH] => 2335392761.6234
   [Work Utility] => 2497.56
   [Difficulty Accepted] => 520544.00000000
   [Difficulty Rejected] => 5584.00000000
   [Difficulty Stale] => 0.00000000
   [Best Share] => 1976710
   [Device Hardware%] => 0.0009
   [Device Rejected%] => 1.0269
   [Pool Rejected%] => 1.0613
   [Pool Stale%] => 0.0000
   [Last getwork] => 1397386094

but is not allowed to call API from another computer else localhost (127.0.0.1) because in the configuration there aren't all necessary permission. So you need to enable the API for remote access. Someone suggest to edit /etc/config/cgminer. I do not know what solution is correct, but I think it is to edit /etc/init.d/cgminer because the etc/config/cgminer is written directly by Luci interface.

W_M[/code]

Go to S1 config  - /etc/config/cgminer
Set:
        option api-listen
        option api_allow 'W:127.0.0.1,10.0.0.XX' 

 (10.0.0.XX) is IP of the computer where you want to monitor S1.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!