Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request. #2618

Open
toxicroadkill opened this issue Oct 6, 2021 · 8 comments
Open

Feature request. #2618

toxicroadkill opened this issue Oct 6, 2021 · 8 comments

Comments

@toxicroadkill
Copy link

toxicroadkill commented Oct 6, 2021

would it be possible to add more stats to the web api, the stats that apear when xmrig first starts, memory.

ABOUT XMRig/6.15.1 gcc/9.3.0

  • LIBS libuv/1.42.0 OpenSSL/1.1.1l hwloc/2.5.0
  • HUGE PAGES supported
  • 1GB PAGES unavailable
  • CPU Intel(R) Core(TM) i7-3770S CPU @ 3.10GHz (1) 64-bit AES
    L2:1.0 MB L3:8.0 MB 4C/8T NUMA:1
  • MEMORY 3.7/3.7 GB (98%)
    DIMM_A0: 2 GB DDR3 @ 1600 MHz M378B5773DH0-CK0
    DIMM_B0: 2 GB DDR3 @ 1600 MHz M378B5773DH0-CK0
  • MOTHERBOARD Dell Inc. - 0V8WGR
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL 128tx exploit #1 192.168.1.134:10201 algo auto
  • POOL The new software AES algo 4 is slower than the old one #2 192.168.1.135:10201 algo auto
  • COMMANDS hashrate, pause, resume, results, connection
  • HTTP API 192.168.2.101:10000

(just add the stats that are not there at the moment)

i have a rather large monero farm, and having the info at a glance would make it much easier to manage what works and what doens't and compare machine's performance

should be a pretty simple thing to add, it would be very handy to have those stats at a glance

@Spudz76
Copy link
Contributor

Spudz76 commented Oct 7, 2021

Memory and motherboard info is in /2/dmi

CPU info and other junk is in /2/backends and /2/summary

@toxicroadkill
Copy link
Author

toxicroadkill commented Oct 7, 2021 via email

@Spudz76
Copy link
Contributor

Spudz76 commented Oct 7, 2021

What's not added is good API docs for the newer API. :)

I grep the source for /1/ or /2/ to figure out what endpoints exist lol.

@toxicroadkill
Copy link
Author

toxicroadkill commented Oct 7, 2021 via email

@OreoCupcakes
Copy link

I don't know if this is done, since I can't find any documentation on it, but is there a way via command line to auto exit (Ctrl+C) XMRig after it completes a benchmark? I'm trying to have a script run the benchmark X times and log it, without my input, but the Ctrl+C command to exit XMRig is preventing me from doing it.

@Spudz76
Copy link
Contributor

Spudz76 commented Oct 11, 2021

No that isn't wired into the API. Only read-only information and status, or writable but all you can do is send a new configfile, there are no other control knobs.

You can send a signal with kill, SIGHUP (1) or SIGTERM (15) or SIGINT (2) and it will exit. Technically CTRL-C sends a SIGINT anyway so it doesn't matter which way the app hears "signal 2". So kill -2 $pid or kill -INT $pid should work quite the same as sending a CTRL-C into its stdin (which is tougher to grab than stdout).

@OreoCupcakes
Copy link

Is there a way to do it in Windows command line/Powershell? When I try to do it with taskkill, XMRig still requires me to send the Ctrl-C command and then the script would send my taskkill command which wouldn't do anything since XMRig already exited.

@toy1111
Copy link

toy1111 commented Oct 16, 2021

This is what I use in Powershell - get xmrig process info and if exists kill the process.

function kill-miner {
$xmr = Get-Process "xmrig" -ea SilentlyContinue
if ($xmr) {
Stop-Process -InputObject $xmr -Force
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants