)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"440eb6310a4a4b6029328b4a89bf16dffc8fd01a","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2018-01-22 00:56:15 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Guide of extending snmp support in alarm datasource"},{"line_number":8,"context_line":"    "},{"line_number":9,"context_line":"Guide of and how to add snmp parsing support in alarm"},{"line_number":10,"context_line":"datasources, and modify \"datasource\" to \"event_type\""},{"line_number":11,"context_line":"in snmp parsing config file."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_c9a2464c","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":4},"updated":"2018-01-22 01:41:54.000000000","message":"delete the whitespace","commit_id":"f29965080f088f85446349a0aef40817972fcfa4"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"2d644e243c7c52afa9cfbe93f0b1703f5b11f29e","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2018-01-22 00:56:15 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Guide of extending snmp support in alarm datasource"},{"line_number":8,"context_line":"    "},{"line_number":9,"context_line":"Guide of and how to add snmp parsing support in alarm"},{"line_number":10,"context_line":"datasources, and modify \"datasource\" to \"event_type\""},{"line_number":11,"context_line":"in snmp parsing config file."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_0203230f","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":4},"in_reply_to":"7f96bb07_c9a2464c","updated":"2018-01-22 03:37:50.000000000","message":"Done","commit_id":"f29965080f088f85446349a0aef40817972fcfa4"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"440eb6310a4a4b6029328b4a89bf16dffc8fd01a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Guide of extending snmp support in alarm datasource"},{"line_number":8,"context_line":"    "},{"line_number":9,"context_line":"Guide of and how to add snmp parsing support in alarm"},{"line_number":10,"context_line":"datasources, and modify \"datasource\" to \"event_type\""},{"line_number":11,"context_line":"in snmp parsing config file."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_69021241","line":9,"range":{"start_line":9,"start_character":9,"end_line":9,"end_character":12},"updated":"2018-01-22 01:41:54.000000000","message":"delete it?","commit_id":"f29965080f088f85446349a0aef40817972fcfa4"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"2d644e243c7c52afa9cfbe93f0b1703f5b11f29e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Guide of extending snmp support in alarm datasource"},{"line_number":8,"context_line":"    "},{"line_number":9,"context_line":"Guide of and how to add snmp parsing support in alarm"},{"line_number":10,"context_line":"datasources, and modify \"datasource\" to \"event_type\""},{"line_number":11,"context_line":"in snmp parsing config file."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"7f96bb07_a207cf18","line":9,"range":{"start_line":9,"start_character":9,"end_line":9,"end_character":12},"in_reply_to":"7f96bb07_69021241","updated":"2018-01-22 03:37:50.000000000","message":"Done","commit_id":"f29965080f088f85446349a0aef40817972fcfa4"}],"doc/source/contributor/datasource-snmp-parsing-support.rst":[{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Add Snmp Parsing Support in Datasource"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_ce89afca","line":2,"range":{"start_line":2,"start_character":0,"end_line":2,"end_character":3},"updated":"2018-01-15 10:08:15.000000000","message":"I think it should be: How to add\nOr: Adding","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":2,"context_line":"Add Snmp Parsing Support in Datasource"},{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_4ebfdf60","line":2,"range":{"start_line":2,"start_character":28,"end_line":2,"end_character":38},"updated":"2018-01-15 10:08:15.000000000","message":"a datasource","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"},{"line_number":6,"context_line":"--------"},{"line_number":7,"context_line":"Vitrage provides service to parse snmp triggered alarm event and send parsed"},{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that get the event and process it."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_0e6eb700","line":7,"range":{"start_line":7,"start_character":70,"end_line":7,"end_character":76},"updated":"2018-01-15 10:08:15.000000000","message":"the parsed","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"},{"line_number":6,"context_line":"--------"},{"line_number":7,"context_line":"Vitrage provides service to parse snmp triggered alarm event and send parsed"},{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that get the event and process it."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_6e673b27","line":7,"range":{"start_line":7,"start_character":39,"end_line":7,"end_character":60},"updated":"2018-01-15 10:08:15.000000000","message":"traps","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":6,"context_line":"--------"},{"line_number":7,"context_line":"Vitrage provides service to parse snmp triggered alarm event and send parsed"},{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that get the event and process it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Support Snmp Parsing Service in Datasource - HOW TO"},{"line_number":12,"context_line":"---------------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_ee726be3","line":9,"range":{"start_line":9,"start_character":18,"end_line":9,"end_character":43},"updated":"2018-01-15 10:08:15.000000000","message":"gets, processes","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that get the event and process it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Support Snmp Parsing Service in Datasource - HOW TO"},{"line_number":12,"context_line":"---------------------------------------------------"},{"line_number":13,"context_line":"In order to extend snmp support in datasources and configure it, users"},{"line_number":14,"context_line":"need to do the following steps:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_ae55431f","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":51},"updated":"2018-01-15 10:08:15.000000000","message":"I prefer: \nHow to support ...\n\nInstead of HOW TO at the end (although it is written in \"add new datasource\" rst)","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"Support Snmp Parsing Service in Datasource - HOW TO"},{"line_number":12,"context_line":"---------------------------------------------------"},{"line_number":13,"context_line":"In order to extend snmp support in datasources and configure it, users"},{"line_number":14,"context_line":"need to do the following steps:"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":" 1. Add the snmp configuration file ``snmp_parsing_conf.yaml``. It configures"},{"line_number":17,"context_line":"    the oid that maps system information and event type when snmp parsing service"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_0e3c77e0","line":14,"range":{"start_line":14,"start_character":25,"end_line":14,"end_character":30},"updated":"2018-01-15 10:08:15.000000000","message":"I think \u0027steps\u0027 can be deleted","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":" 1. Add the snmp configuration file ``snmp_parsing_conf.yaml``. It configures"},{"line_number":17,"context_line":"    the oid that maps system information and event type when snmp parsing service"},{"line_number":18,"context_line":"    send message."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    **Example**"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_ce252fc4","line":18,"range":{"start_line":18,"start_character":4,"end_line":18,"end_character":8},"updated":"2018-01-15 10:08:15.000000000","message":"sends","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    .. code:: python"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        - system_oid: 1.3.6.1.4.1.3902.4101.1.3.1.12  # for example"},{"line_number":25,"context_line":"          system: iaas_platform  # for example"},{"line_number":26,"context_line":"          datasource: vitrage.snmp.event # event type of alarm datasource"},{"line_number":27,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_c913e95b","line":24,"range":{"start_line":24,"start_character":54,"end_line":24,"end_character":67},"updated":"2018-01-15 10:08:15.000000000","message":"I think you can remove those, it is clear that this is an example :-)","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":28,"context_line":" 2. Under snmp_parsing package ``__init__.py``, set ``oid_mapping`` property"},{"line_number":29,"context_line":"    to the path of snmp configuration file."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":" 3. In the driver class of alarm datasource package, add an event type in the method"},{"line_number":32,"context_line":"    ``get_event_types``, which can be ``vitrage.snmp.event`` according to configuration"},{"line_number":33,"context_line":"    file above."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_0971d1a9","line":31,"range":{"start_line":31,"start_character":27,"end_line":31,"end_character":32},"updated":"2018-01-15 10:08:15.000000000","message":"Better: the alarm datasource\nOr: your alarm datasource\nOr: the added alarm datasource","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                        \u00271.3.6.1.4.1.3902.4101.1.4.1.2\u0027: \u0027down\u0027}"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":" 5. The method ``enrich_event`` of driver class is responsible for enriching given event."},{"line_number":61,"context_line":"    The following code should be added at the beginning of ``enrich_event``."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    **Example**"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_a95f7d0c","line":60,"range":{"start_line":60,"start_character":35,"end_line":60,"end_character":41},"updated":"2018-01-15 10:08:15.000000000","message":"the driver","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    .. code:: python"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_29a92dde","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":46},"updated":"2018-01-15 10:08:15.000000000","message":"Is it always the event type? or is it configurable? can the same user have two different datasources, that each receives different SNMP traps with different event types?","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"a60acf42defcb333234ae3afdcee2fcef550d857","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    .. code:: python"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_7e69e2f6","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":46},"in_reply_to":"7f96bb07_29a92dde","updated":"2018-01-17 07:20:41.000000000","message":"The event type is configurable, and \u0027vitrage.snmp.event\u0027 is consistent with the snmp_parsing_conf.yaml example above.\nLogically, same user can have different datasources receiving different snmp traps with different event types. It depends on how users configure the yaml file and how the snmp trap is organized, for example, which oid is mapped to system info, and how the system is named.\nIn the apllication, vitrage may be deployed in one system at a time and receives one kind SNMP traps. Users don\u0027t need to modify configure file, when vitrage is deployed in another system.","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"e6ef2169f002ece61b78b45a6f0278de724a0391","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    .. code:: python"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_66a15494","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":46},"in_reply_to":"7f96bb07_7e69e2f6","updated":"2018-01-17 08:59:09.000000000","message":"Ok, so please explain it somewhere in the rst","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"d595159eabff3e0f9f7d680c87018ccbcd8af03f","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"},{"line_number":71,"context_line":"    format."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    **Example**"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_c9dd2971","line":70,"range":{"start_line":70,"start_character":43,"end_line":70,"end_character":52},"updated":"2018-01-15 10:08:15.000000000","message":"is an example of a function that can be used to parse an snmp trap...\n\nIt\u0027s great that you supply the code for this function, I just want it to be clear that it is an example.","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"e6ef2169f002ece61b78b45a6f0278de724a0391","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"},{"line_number":71,"context_line":"    format."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    **Example**"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_46cd3864","line":70,"range":{"start_line":70,"start_character":43,"end_line":70,"end_character":52},"in_reply_to":"7f96bb07_be53ea38","updated":"2018-01-17 08:59:09.000000000","message":"So please write that this is an example. I\u0027m not sure if it is clear now.","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"a60acf42defcb333234ae3afdcee2fcef550d857","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":68,"context_line":"            self._transform_snmp_event(event)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"},{"line_number":71,"context_line":"    format."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    **Example**"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7f96bb07_be53ea38","line":70,"range":{"start_line":70,"start_character":43,"end_line":70,"end_character":52},"in_reply_to":"7f96bb07_c9dd2971","updated":"2018-01-17 07:20:41.000000000","message":"Yes. It is an example, and self.OID_INFO and self.ALARM_STATUS are configured in the datasource according to the SNMP trap organization.","commit_id":"c0af5955a3e4b12e10e29338f9aa824f37142261"},{"author":{"_account_id":19159,"name":"Ifat Afek","email":"ifat.afek@nokia.com","username":"ifat_afek"},"change_message_id":"a77f2f2a63f789d6726b415208a29991cc7a2cc0","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"},{"line_number":74,"context_line":"    format. An example is as follows. ``self.OID_INFO`` and ``self.ALARM_STATUS`` are defined"},{"line_number":75,"context_line":"    in th example above, and their content depends on SNMP trap organization."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    **Example**"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f96bb07_5493a25b","line":75,"range":{"start_line":75,"start_character":7,"end_line":75,"end_character":9},"updated":"2018-01-17 10:04:52.000000000","message":"the","commit_id":"5e02dcd3953d858ec60f027f1a3c3378a2e4b66e"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"95de9dff4ca745593da8ccfca27e67023464be89","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Overview"},{"line_number":6,"context_line":"--------"},{"line_number":7,"context_line":"Vitrage provides service to parse snmp traps and send the parsed"},{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that gets the event and processes it."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_323a8d98","line":7,"range":{"start_line":7,"start_character":16,"end_line":7,"end_character":17},"updated":"2018-01-18 01:34:01.000000000","message":"a service","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"95de9dff4ca745593da8ccfca27e67023464be89","unresolved":false,"context_lines":[{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that gets the event and processes it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"HOW to support Snmp Parsing Service in a datasource"},{"line_number":12,"context_line":"---------------------------------------------------"},{"line_number":13,"context_line":"In order to extend snmp support in datasources and configure it, users"},{"line_number":14,"context_line":"need to do the following:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_f2b425f4","line":11,"range":{"start_line":11,"start_character":40,"end_line":11,"end_character":51},"updated":"2018-01-18 01:34:01.000000000","message":"The \u0027datasource\u0027 is not what \u0027datasource\u0027 means (nova. aodh and etc) in Vitrage? Pepole may confused...","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"800ce93c76a061319c1d1a02552d43aa1c90c864","unresolved":false,"context_lines":[{"line_number":8,"context_line":"event to RabbitMQ queue. To add the snmp trap to graph, there should be"},{"line_number":9,"context_line":"a datasource that gets the event and processes it."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"HOW to support Snmp Parsing Service in a datasource"},{"line_number":12,"context_line":"---------------------------------------------------"},{"line_number":13,"context_line":"In order to extend snmp support in datasources and configure it, users"},{"line_number":14,"context_line":"need to do the following:"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_dd2d79fe","line":11,"range":{"start_line":11,"start_character":40,"end_line":11,"end_character":51},"in_reply_to":"7f96bb07_f2b425f4","updated":"2018-01-18 03:40:47.000000000","message":"The datasource means nova, aodh and etc.","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"95de9dff4ca745593da8ccfca27e67023464be89","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        - system_oid: 1.3.6.1.4.1.3902.4101.1.3.1.12"},{"line_number":25,"context_line":"          system: iaas_platform"},{"line_number":26,"context_line":"          datasource: vitrage.snmp.event"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":" 2. Under snmp_parsing package ``__init__.py``, set ``oid_mapping`` property"},{"line_number":29,"context_line":"    to the path of snmp configuration file."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_92c36157","line":26,"range":{"start_line":26,"start_character":10,"end_line":26,"end_character":20},"updated":"2018-01-18 01:34:01.000000000","message":"same as above.","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"1c43a673341ce42ab360bab2a04b5bf54412ed13","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        - system_oid: 1.3.6.1.4.1.3902.4101.1.3.1.12"},{"line_number":25,"context_line":"          system: iaas_platform"},{"line_number":26,"context_line":"          datasource: vitrage.snmp.event"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":" 2. Under snmp_parsing package ``__init__.py``, set ``oid_mapping`` property"},{"line_number":29,"context_line":"    to the path of snmp configuration file."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_c94ff768","line":26,"range":{"start_line":26,"start_character":10,"end_line":26,"end_character":20},"in_reply_to":"7f96bb07_1df2019b","updated":"2018-01-18 05:52:43.000000000","message":"Make sense, anyhow \u0027datasource\u0027 is not suitable here.","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"800ce93c76a061319c1d1a02552d43aa1c90c864","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        - system_oid: 1.3.6.1.4.1.3902.4101.1.3.1.12"},{"line_number":25,"context_line":"          system: iaas_platform"},{"line_number":26,"context_line":"          datasource: vitrage.snmp.event"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":" 2. Under snmp_parsing package ``__init__.py``, set ``oid_mapping`` property"},{"line_number":29,"context_line":"    to the path of snmp configuration file."}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_1df2019b","line":26,"range":{"start_line":26,"start_character":10,"end_line":26,"end_character":20},"in_reply_to":"7f96bb07_92c36157","updated":"2018-01-18 03:40:47.000000000","message":"Here should actually be an event type. How about modify \u0027datasource\u0027 to \u0027event_type\u0027?","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"95de9dff4ca745593da8ccfca27e67023464be89","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    .. code:: python"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":71,"context_line":"            self._transform_snmp_event(event)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_f465f2b5","line":70,"range":{"start_line":70,"start_character":8,"end_line":70,"end_character":46},"updated":"2018-01-18 01:34:01.000000000","message":"So if people config another \u0027event_type\u0027, they should hard code these code?? Is there a common way to handle this?","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":18783,"name":"dongwenjuan","email":"dong.wenjuan@zte.com.cn","username":"dongwenjuan"},"change_message_id":"1c43a673341ce42ab360bab2a04b5bf54412ed13","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    .. code:: python"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":71,"context_line":"            self._transform_snmp_event(event)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_09495f5e","line":70,"range":{"start_line":70,"start_character":8,"end_line":70,"end_character":46},"in_reply_to":"7f96bb07_7dd8e5ed","updated":"2018-01-18 05:52:43.000000000","message":"OK, understood.","commit_id":"01fa494a1c107947d514e891a4f015c324022544"},{"author":{"_account_id":25301,"name":"xupeipei","email":"xu.peipei1@zte.com.cn","username":"xupeipei"},"change_message_id":"800ce93c76a061319c1d1a02552d43aa1c90c864","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    .. code:: python"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        if \u0027vitrage.snmp.event\u0027 \u003d\u003d event_type:"},{"line_number":71,"context_line":"            self._transform_snmp_event(event)"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    The function ``_transform_snmp_event`` transform a parsed snmp trap to event of standard"}],"source_content_type":"text/x-rst","patch_set":6,"id":"7f96bb07_7dd8e5ed","line":70,"range":{"start_line":70,"start_character":8,"end_line":70,"end_character":46},"in_reply_to":"7f96bb07_f465f2b5","updated":"2018-01-18 03:40:47.000000000","message":"I think they have to config this and add their own code. How to process parsed snmp trap depends on snmp trap organization and alarm event structure.","commit_id":"01fa494a1c107947d514e891a4f015c324022544"}]}
