.installed.cfg
lib
lib64
+nohup.out
# Installer logs
pip-log.txt
.*.swp
.*sw?
.settings/
-.__pycache__/
+__pycache__/
::
- lxc exec MON - python /root/MON/osm_mon/core/message_bus/common_consumer
+ lxc exec MON -- nohup python /root/MON/osm_mon/core/message_bus/common_consumer &
* To enable Aodh alarm notifications to be sent to SO:
::
- lxc exec MON - python /root/MON/osm_mon/plugins/OpenStack/Aodh/notifier.py
+ lxc exec MON - nohup python /root/MON/osm_mon/plugins/OpenStack/Aodh/notifier.py &
CloudWatch
~~~~~~~~~~
::
lxc exec MON -- service kafka status
+
+* To check the logs of the plugins:
+
+ ::
+
+ lxc exec MON -- tail -f /root/MON_plugins.log
import os
sys.path.append("/root/MON")
-sys.path.append("../../plugins/CloudWatch")
logging.basicConfig(filename='MON_plugins.log',
format='%(asctime)s %(message)s',
from osm_mon.plugins.OpenStack.common import Common
from osm_mon.plugins.OpenStack.Gnocchi import metrics
-from plugin_alarm import plugin_alarms
-from plugin_metric import plugin_metrics
+from osm_mon.plugins.CloudWatch.plugin_alarm import plugin_alarms
+from osm_mon.plugins.CloudWatch.plugin_metric import plugin_metrics
# Initialize servers
server = {'server': 'localhost:9092'}
lxc exec MON -- git clone https://osm.etsi.org/gerrit/osm/MON.git
lxc exec MON -- pip install -r /root/MON/requirements.txt
lxc exec MON -- python /root/MON/kafkad
-lxc exec MON -- . /root/MON/scripts/kafka.sh
-lxc exec MON -- . /root/MON/osm_mon/plugins/vRealiseOps/vROPs_Webservice/install.sh
+lxc exec MON -- /bin/bash /root/MON/scripts/kafka.sh
+lxc exec MON -- /bin/bash /root/MON/osm_mon/plugins/vRealiseOps/vROPs_Webservice/install.sh