{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-metron/issues/118","repository_url":"https://api.github.com/repos/apache/incubator-metron","labels_url":"https://api.github.com/repos/apache/incubator-metron/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-metron/issues/118/comments","events_url":"https://api.github.com/repos/apache/incubator-metron/issues/118/events","html_url":"https://github.com/apache/incubator-metron/pull/118","id":154353275,"number":118,"title":"METRON-132 Monit Integration","user":{"login":"nickwallen","id":2475409,"avatar_url":"https://avatars.githubusercontent.com/u/2475409?v=3","gravatar_id":"","url":"https://api.github.com/users/nickwallen","html_url":"https://github.com/nickwallen","followers_url":"https://api.github.com/users/nickwallen/followers","following_url":"https://api.github.com/users/nickwallen/following{/other_user}","gists_url":"https://api.github.com/users/nickwallen/gists{/gist_id}","starred_url":"https://api.github.com/users/nickwallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickwallen/subscriptions","organizations_url":"https://api.github.com/users/nickwallen/orgs","repos_url":"https://api.github.com/users/nickwallen/repos","events_url":"https://api.github.com/users/nickwallen/events{/privacy}","received_events_url":"https://api.github.com/users/nickwallen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-11T22:02:38Z","updated_at":"2016-05-13T21:04:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-metron/pulls/118","html_url":"https://github.com/apache/incubator-metron/pull/118","diff_url":"https://github.com/apache/incubator-metron/pull/118.diff","patch_url":"https://github.com/apache/incubator-metron/pull/118.patch"},"body":"#### Changes\r\n\r\n##### METRON-85\r\nAddressed bug that caused Amazon EC2 deployment to always wait a fixed 5 minutes instead of continuing when the hosts are actually ready\r\n\r\n##### METRON-132\r\nDecouple Install and Start of System Components\r\n\r\n- Decouples the installation of components from the starting of them.  A component can be installed, but not started.\r\n- Define which services need started as a property.  \r\n- Enables different deployments to start more or fewer services.  A development platform can start no services by default, while an Amazon EC2 cluster can start all services.\r\n- For example, to start only component related to YAF ingestion, run the following.\r\n\r\n  ```\r\n  services_to_start:\r\n    - mysql\r\n    - elasticsearch\r\n    - enrichment\r\n    - yaf-parser\r\n    - yaf\r\n  ```\r\n\r\n##### METRON-132\r\nMonit Integration\r\n- Leverages Monit as a process watchdog to manage sensors, topologies, and core services.\r\n- Monit web interface exposed at http://hostname:2812 which can be used to start, stop, check status of any of the sensors or topologies.\r\n- When monitoring is enabled (on by default) if a process dies, it will be restarted.\r\n- Will not monitor a service that is not installed.\r\n- Monit command line tools simplify the process of managing Metron components\r\n\r\n    For example, tired of the noise from your laptop fan when running Metron's 'single node vagrant'?  This will quiet her down.  Finally, peace and quiet!\r\n    ```\r\n    monit stop all\r\n    ```\r\n\r\n    Need to work on a single ingest feed?\r\n    ```\r\n    monit start bro\r\n    monit start bro-parser\r\n    ```\r\n\r\n    Getting cold and need some heat?  Start everything.\r\n    ```\r\n    monit start all\r\n    ```\r\n\r\n    Groups have also been defined to make things simpler.  For example, start all parser topologies.\r\n    ```\r\n    monit -g parsers start\r\n    ```\r\n\r\n    Start all components required to consume and enrich Bro data.\r\n    ```\r\n    monit -g bro start\r\n    ```\r\n\r\n    What is running?\r\n    ```\r\n    monit summary\r\n    ```\r\n\r\n- The post-deployment report for Amazon-EC2 provides links to Monit's web interface.\r\n\r\n  ```\r\n  ok: [localhost] => {\r\n    \"Success\": [\r\n        \"Apache Metron deployed successfully\",\r\n        \"   Metron          @ http://ec2-52-39-143-62.us-west-2.compute.amazonaws.com:5000\",\r\n        \"   Ambari          @ http://ec2-52-39-4-93.us-west-2.compute.amazonaws.com:8080\",\r\n        \"   Sensor Status   @ http://ec2-52-39-4-93.us-west-2.compute.amazonaws.com:2812\",\r\n        \"   Topology Status @ http://ec2-52-39-130-62.us-west-2.compute.amazonaws.com:2812\",\r\n        \"For additional information, see https://metron.incubator.apache.org/'\"\r\n    ]\r\n  }\r\n  ```\r\n\r\n#### Validation\r\n\r\n##### Quick Dev Platform\r\n- Deploy\r\n- Open http://node1:2812\r\n- Ensure that all of the following services are running and visible in the Monit web interface.\r\n  - mysql, elasticsearch, pcap-service, metron-ui\r\n  - yaf, snort, snort-logs, bro, pcap-replay\r\n  - yaf-parser, bro-parser, snort-parser, enrichment\r\n- Login to node1 and validate the previous step by running `monit summary`\r\n- Run `monit stop all`\r\n- Ensure all services stopped on the host\r\n\r\n##### Amazon EC2\r\n- Deploy\r\n- Open http://ec2-host:2812 across each of the 10 nodes.\r\n- Ensure that all of the following services are running somewhere on the cluster.\r\n  - mysql, elasticsearch, pcap-service, metron-ui\r\n  - yaf, snort, snort-logs, bro, pcap-replay\r\n  - yaf-parser, bro-parser, snort-parser, enrichment\r\n- Login to a host and validate the previous step by running `monit summary`\r\n- Run `monit stop all` on the same host\r\n- Ensure all services stopped on the host\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-metron/issues/comments/219158724","html_url":"https://github.com/apache/incubator-metron/pull/118#issuecomment-219158724","issue_url":"https://api.github.com/repos/apache/incubator-metron/issues/118","id":219158724,"user":{"login":"cestella","id":540359,"avatar_url":"https://avatars.githubusercontent.com/u/540359?v=3","gravatar_id":"","url":"https://api.github.com/users/cestella","html_url":"https://github.com/cestella","followers_url":"https://api.github.com/users/cestella/followers","following_url":"https://api.github.com/users/cestella/following{/other_user}","gists_url":"https://api.github.com/users/cestella/gists{/gist_id}","starred_url":"https://api.github.com/users/cestella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cestella/subscriptions","organizations_url":"https://api.github.com/users/cestella/orgs","repos_url":"https://api.github.com/users/cestella/repos","events_url":"https://api.github.com/users/cestella/events{/privacy}","received_events_url":"https://api.github.com/users/cestella/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T21:04:14Z","updated_at":"2016-05-13T21:04:14Z","body":"+1, looks great!"}}