You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alois-commits@incubator.apache.org by fl...@apache.org on 2010/11/12 09:32:57 UTC

svn commit: r1034307 - /incubator/alois/trunk/rails/app/controllers/prisma_controller.rb

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"