Skip to content
Snippets Groups Projects
Commit 17b28298 authored by Chris Hines's avatar Chris Hines
Browse files

Update telegraf_slurmstats.py

parent 7060d2a5
No related branches found
No related tags found
1 merge request!514Update telegraf_slurmstats.py
......@@ -15,7 +15,7 @@ def print_stats(stats):
def get_stats():
import subprocess
p = subprocess.Popen(['sdiag'],stdout = subprocess.PIPE,stderr=subprocess.PIPE)
p = subprocess.Popen(['/opt/slurm-20.02.7/bin/sdiag'],stdout = subprocess.PIPE,stderr=subprocess.PIPE)
(stdout,stderr) = p.communicate()
for l in stdout.decode().splitlines():
if "Total backfilled jobs (since last stats cycle start):" in l:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment