incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1034307 - /incubator/alois/trunk/rails/app/controllers/prisma_controller.rb
Date Fri, 12 Nov 2010 09:32:57 GMT
Author: flavio
Date: Fri Nov 12 09:32:57 2010
New Revision: 1034307

URL: http://svn.apache.org/viewvc?rev=1034307&view=rev
Log:
Expect that statistics are on localhost if database lies on localhost

Modified:
    incubator/alois/trunk/rails/app/controllers/prisma_controller.rb

Modified: incubator/alois/trunk/rails/app/controllers/prisma_controller.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/controllers/prisma_controller.rb?rev=1034307&r1=1034306&r2=1034307&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/controllers/prisma_controller.rb (original)
+++ incubator/alois/trunk/rails/app/controllers/prisma_controller.rb Fri Nov 12 09:32:57 2010
@@ -27,7 +27,8 @@ class PrismaController < ApplicationCont
 
     reporter = open("|hostname -f") {|f| f.readlines.join.strip}
     # reporter = (alois_connection and alois_connection.spec[:host]) or "localhost"
-    # reporter = "localhost.localdomain" if reporter == "localhost"
+    # tweak, we expect that munin uses localhost if dobby is on localhost
+    reporter = "localhost.localdomain" if dobby == "localhost.localdomain"
 
     sink = (pumpy_connection and pumpy_connection.spec[:host]) or "localhost"
     sink = "localhost.localdomain" if sink == "localhost"



Mime
View raw message