I searched for masakarimonitors.conf on my both controller and compute node in my devstack stein setup, but I did not find this file present anywhere. After I run "sudo python setup.py install" from my controller's "/opt/stack/masakari-monitors" path, it installed the necessary monitoring binaries in /usr/local/bin/ path-
stack@stein-cntlr-masakari:~/masakari-monitors$ ls -ltr /usr/local/bin/masakari*
-rwxr-xr-x 1 root root 976 May 9 00:21 /usr/local/bin/masakari-processmonitor.sh
-rwxr-xr-x 1 root root 918 May 9 00:21 /usr/local/bin/masakari-hostmonitor.sh
-rwxr-xr-x 1 root root 222 May 9 00:45 /usr/local/bin/masakari
-rwxr-xr-x 1 root root 1854 May 10 00:06 /usr/local/bin/masakari-wsgi
-rwxr-xr-x 1 root root 158 May 10 00:06 /usr/local/bin/masakari-status
-rwxr-xr-x 1 root root 158 May 10 00:06 /usr/local/bin/masakari-manage
-rwxr-xr-x 1 root root 158 May 10 00:06 /usr/local/bin/masakari-engine
-rwxr-xr-x 1 root root 155 May 10 00:06 /usr/local/bin/masakari-api
-rwxr-xr-x 1 root root 188 May 12 23:23 /usr/local/bin/masakari-introspectiveinstancemonitor
-rwxr-xr-x 1 root root 174 May 12 23:23 /usr/local/bin/masakari-processmonitor
-rwxr-xr-x 1 root root 175 May 12 23:23 /usr/local/bin/masakari-instancemonitor
-rwxr-xr-x 1 root root 171 May 12 23:23 /usr/local/bin/masakari-hostmonitor
Under /opt/stack/masakari-monitors, I can find below config files inside etc/ -
$ ls -lt etc/masakarimonitors/
total 24
-rwxr-xr-x 1 stack stack 1743 May 9 00:21 hostmonitor.conf.sample
-rw-r--r-- 1 stack stack 173 May 9 00:21 masakarimonitors-config-generator.conf
-rw-r--r-- 1 stack stack 2188 May 9 00:21 process_list.yaml.sample
-rwxr-xr-x 1 stack stack 290 May 9 00:21 processmonitor.conf.sample
-rwxr-xr-x 1 stack stack 239 May 9 00:21 proc.list.sample
-rw-r--r-- 1 stack stack 144 May 9 00:21 README-masakarimonitors.conf.txt
Following steps from README-masakarimonitors.conf.txt to generate masakarimonitors.conf file by running "tox -egenconfig", I get errors below-
===Errors===
I/opt/stack/masakari-monitors/.tox/genconfig/include/python3.5m -c ext/_yaml.c -o build/temp.linux-x86_64-3.5/ext/_yaml.o
ext/_yaml.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/opt/stack/masakari-monitors/.tox/genconfig/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-_yy7e6rg/PyYAML/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fbsfgz00/install-record.txt --single-version-externally-managed --compile --install-headers /opt/stack/masakari-monitors/.tox/genconfig/include/site/python3.5/PyYAML" failed with error code 1 in /tmp/pip-install-_yy7e6rg/PyYAML/
==================================================================================================== log end =====================================================================================================
ERROR: could not install deps [-r/opt/stack/masakari-monitors/test-requirements.txt]; v = InvocationError(u'/opt/stack/masakari-monitors/.tox/genconfig/bin/pip install -chttps://
releases.openstack.org/constraints/upper/stein -r/opt/stack/masakari-monitors/test-requirements.txt', 1)
____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
ERROR: genconfig: could not install deps [-r/opt/stack/masakari-monitors/test-requirements.txt]; v = InvocationError(u'/opt/stack/masakari-monitors/.tox/genconfig/bin/pip install -chttps://
releases.openstack.org/constraints/upper/stein -r/opt/stack/masakari-monitors/test-requirements.txt', 1)
===Errors END===
I also get this same errors when I try to generate masakarimonitors.conf file on my compute host after installing masakari monitors binaries on it.
As mentioned by you earlier in this thread, Masakari dev guys are going to add these monitoring processes in devstack Train release. So my queries are -
1. whether devstack stein currently does not support these monitoring processes as of now? If not, whether Masakari service can be utilized fully using the normal Masakari Stein release branch integrating it with the other services, not using this devstack version of Masakari what I am trying in my test multi host setup?
Can you please provide me the documentation link for how to integrate Masakari and its additional sub binaries to existing openstack services under stein release.
2. whether Train Masakari main release and Devstack release will completely support Masakari monitoring services which in turn gives Masakari its full features to utilize in openstack?
If yes, then I will wait for the next Train release to have this feature work completely.
thank you for support and help on this as I am trying to put these pieces together at my end.
Sorry for my long thread.
best regards,
Sanjay