← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2874: Build infrastructure : buildot script modified after an update of nagios probes

 

------------------------------------------------------------
revno: 2874
committer: remche
branch nick: yade
timestamp: Wed 2011-06-08 14:38:01 +0200
message:
  Build infrastructure : buildot script modified after an update of nagios probes
modified:
  scripts/build-infrastructure/master.cfg


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'scripts/build-infrastructure/master.cfg'
--- scripts/build-infrastructure/master.cfg	2011-03-22 17:12:32 +0000
+++ scripts/build-infrastructure/master.cfg	2011-06-08 12:38:01 +0000
@@ -90,7 +90,7 @@
     for slave in slaves:
         print slave
         mem = float(subprocess.Popen(["/usr/local/bin/check_nrpe", "-H", slave.slave.slavename, "-c", "check_freemem"],
-                    stdout=subprocess.PIPE).communicate()[0].split()[2].lstrip("(").rstrip("M)"))
+                    stdout=subprocess.PIPE).communicate()[0].split("(")[1].split(")")[0].strip("M"))
         load = float(subprocess.Popen(["/usr/local/bin/check_nrpe", "-H", slave.slave.slavename, "-c", "check_load_buildbot"],
                     stdout=subprocess.PIPE).communicate()[0].split()[1].rstrip(',')) + 0.01
         score = mem/load


Follow ups