sorry,
what does this <snip> mean in this code below :
<snip>
from cabbyimport create_client
base_uri = 'http://localhost:9000'
try:
# create a connection
client =
create_client(host='localhost',port=9000,discovery_path='/services/discovery')
# iterate through each defined collection
collections = client.get_collections(uri='%s/services/collection'%base_uri)
for collection in collections:
# how many records in each collection?
count = client.get_content_count(collection_name=collection.name,
uri='%s/services/poll'%base_uri)
print"%-50s %-10d" % (collection.name, count.count)
except:
print"Services not defined"
i add that code but i've got SyntaxError: invalid syntax message on it
when i run service opentaxii status command.
but when i remove it, i still got msg services not defined.
On 30/03/17 01:07, Youzha wrote:
I just add this line into your ansible metron_install.yml
- hosts: metron
become: true
roles:
- role: opentaxii
And then i comment the part of start service opentaxii inside the
opentaxii role script because centos 7 uses systemd like what you said
before.
Is it any steps that i must do anymore?
On Mar 30, 2017 1:00 AM, "Nick Allen" <n...@nickallen.org
<mailto:n...@nickallen.org>> wrote:
Ok, it looks like the install of the service script and
integration with systemd looks good. It is the definition of the
collections in OpenTaxii that is not working.
How did you install OpenTaxii exactly? Did you manually follow
the steps in our Ansible role or did you actually use Ansible to
install it auto-magically? Can you describe what commands you ran?
On Wed, Mar 29, 2017 at 1:46 PM, tkg_cangkul
<yuza.ras...@gmail.com <mailto:yuza.ras...@gmail.com>> wrote:
Hi Nick,
this is all the results from that commands:
On 30/03/17 00:35, Nick Allen wrote:
I am assuming that you are following the Ansible installation
that we have for OpenTaxii. That installation was built for
CentOS 6, which explains the problem. CentOS 7 uses Systemd,
instead of the older SysV scripts. The problem might be in
getting systemctl to recognize the old SysV script.
(1) What if you run `systemctl enable opentaxii` then try
`service opentaxii status`?
(2) What does `ls -l /etc/init.d/opentaxii` look-like?
(3) What happens with `/etc/init.d/opentaxii status`?
On Wed, Mar 29, 2017 at 1:00 PM, tkg_cangkul
<yuza.ras...@gmail.com <mailto:yuza.ras...@gmail.com>> wrote:
i'm using centos 7 anyway. is it any problem with centos 7?
On 29/03/17 23:36, Nick Allen wrote:
What OS are you running? If CentOS what version ( `rpm
--query centos-release`)?
On Wed, Mar 29, 2017 at 12:05 PM, tkg_cangkul
<yuza.ras...@gmail.com <mailto:yuza.ras...@gmail.com>>
wrote:
hi,
i'm trying to install opentaxii on metron 0.3.0. but
i found a problem when i run a command
*service opentaxii status
*there is a message like this :
*Checking opentaxii... Running**
**Services not defined**
*
i've try to follow this suggestion :
https://issues.apache.org/jira/browse/METRON-484
<https://issues.apache.org/jira/browse/METRON-484>
but i still got that message.
any suggest pls?