Changeset 974 for trunk/Monitoring
- Timestamp:
- 11/25/13 09:22:25 (10 years ago)
- Location:
- trunk/Monitoring/Watch
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Monitoring/Watch/watch
r972 r974 22 22 import datetime 23 23 import logging 24 import ConfigParser 24 25 25 26 # line below is to include "smon" package in the search path … … 37 38 CSTE_LOG_FILE_MAIN="%s/%s"%(CSTE_LOG_DIR,CSTE_LOG_FILENAME_MAIN) 38 39 CSTE_LOG_FILE_MSG="%s/%s"%(CSTE_LOG_DIR,CSTE_LOG_FILENAME_MSG) 40 41 # read ini file 42 config = ConfigParser.ConfigParser() 43 config.read("/opt/supervisor/Monitoring/Watch/watch.ini") 44 g__user = config.get("main","user") 45 g__password = config.get("main","password") 39 46 40 47 def create_logger(name,fullpath_filename): … … 235 242 """ 236 243 237 connection = pika.BlockingConnection(pika.ConnectionParameters(host=CSTE_BROKER_HOST)) 244 credentials = pika.PlainCredentials(g__user, g__password) 245 connection = pika.BlockingConnection(pika.ConnectionParameters(host=CSTE_BROKER_HOST,credentials=credentials,virtual_host="/prodiguer")) 238 246 self.channel = connection.channel() 239 247
Note: See TracChangeset
for help on using the changeset viewer.