Permalink
Browse files

Remove unnecessary file for configuration saving and rewriting

  • Loading branch information...
1 parent 1e1b0ad commit 76cfaf8d2423fd7eddf111d2caeffc5d7617761f @kachayev committed Aug 7, 2011
Showing with 0 additions and 88 deletions.
  1. +0 −25 gearoscope/apps/monitor/config.py
  2. +0 −63 gearoscope/data/sonar.conf
@@ -1,25 +0,0 @@
-from ConfigParser import ConfigParser
-from django.conf import settings
-
-class Rewriter(object):
- def __init__(self, path=None):
- self.path = path or settings.SONAR_CONFIGURATION_FILE
-
- def rebuild(self, section=None, values=None):
- self.config = ConfigParser(allow_no_value=True)
- self.config.read(self.path)
-
- # Remove all editable section from configuration
- if section not in self.config.sections():
- self.config.add_section(section)
-
- # Set new values for each configuration item
- for item, value in values.iteritems():
- self.config.set(section, item, value)
-
- return self
-
- def save(self):
- with open(self.path, 'w') as path:
- self.config.write(path)
-
View
@@ -1,63 +0,0 @@
-[sonard]
-user = root
-log_buffer_file = sonar.log
-
-[pool:stat]
-count = 3
-timeout = 0
-prototype = sonar.agents.process.ProcessStatAgent
-
-[logger:buffer]
-maxsize = 1bb
-rotation_maxbytes = 2mb
-rotation_backups = 5
-format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
-
-[server:localhost]
-host = localhost
-password =
-user = root
-
-[gearman:localhost]
-port = 4730
-server = localhost
-
-[supervisor:localhost]
-names = sum,multiple,reverse
-port = 9001
-server = localhost
-
-[server:localhost by IP]
-host = 127.0.0.1
-password =
-user = root
-
-[supervisor:localhost by IP]
-names =
-port = 9001
-server = localhost by IP
-
-[server:bs01-ch]
-host = 10.1.0.207
-password =
-user = root
-
-[server:bs02-ch]
-host = 10.1.0.52
-password =
-user = root
-
-[server:codemehanike]
-host = 81.17.140.72
-password =
-user = root
-
-[server:codemehanika]
-host = 81.17.140.72
-password =
-user = root
-
-[gearman:codemehanika]
-port = 4730
-server = codemehanika
-

0 comments on commit 76cfaf8

Please sign in to comment.