[ https://issues.apache.org/jira/browse/METRON-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15650941#comment-15650941 ]
Anand Subramanian commented on METRON-484: ------------------------------------------ This defect was verified off the latest bits and the service counts are now coming up fine. Here's the sample output. {code} [root@hcsa-12 ~]# service opentaxii status Checking opentaxii... Running guest.phishtank_com 184 guest.Abuse_ch 0 guest.CyberCrime_Tracker 0 guest.EmergingThreats_rules 0 guest.Lehigh_edu 0 guest.MalwareDomainList_Hostlist 0 guest.blutmagie_de_torExits 469 guest.dataForLast_7daysOnly 653 guest.dshield_BlockList 0 {code} Here's the build info against which this was verified: {code} commit e1401d01ecc87e652931aaada4bc7500df984da2 Author: JonZeolla <zeo...@gmail.com> Date: Fri Nov 4 09:16:37 2016 -0400 METRON-510 Update elasticsearch bro templates for *_body_len (JonZeolla via dlyle65535) closes apache/incubator-metron#326 commit b390c6d16a43a5907a742ab3690cf29bb76ea80d Author: dlyle65535 <dlyle65...@gmail.com> Date: Fri Nov 4 09:12:28 2016 -0400 METRON-463 Pull RPMs from Remote (configurable) repos closes apache/incubator-metron#339 {code} > Opentaxi service does not show count for subscribed services > -------------------------------------------------------------- > > Key: METRON-484 > URL: https://issues.apache.org/jira/browse/METRON-484 > Project: Metron > Issue Type: Bug > Affects Versions: 0.2.1BETA > Environment: 12 node cluster running CentOS 7 on Openstack. > Reporter: Anand Subramanian > Assignee: Nick Allen > Fix For: 0.2.2BETA > > > *Steps Followed* > a) Created an ansible playbook for 'opentaxii' role and installed on a > pre-deployed 12-node cluster with the following playbook definition: > {code} > - hosts: metron > become: true > roles: > - role: opentaxii > {code} > b) Followed the documentation at: > https://github.com/apache/incubator-metron/tree/master/metron-deployment/roles/opentaxii#getting-started > c) Ensure that the opentaxii service is installed on the 'metron' nodes viz. > 1, 3, 8, 10, 11 and 12. > Observed on all the nodes that the 'status' command output is as follows: > {code} > [root@metron-test-1 ~]# service opentaxii status > Checking opentaxii... Running > Services not defined > {code} > *Workaround* > In order to get around this issue, edit the file at > /usr/local/opentaxii/bin/collection-status.py and change it to look like the > below. > {code} > <snip> > from cabby import 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" > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)