)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"6404d511d9731f76a9f5ea280c1af043fff54ff3","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Install check_mk server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patchset compliments Ibc93bbb1f99efdde2792ece63f5cf332a2edddb7"},{"line_number":10,"context_line":"and Idced49d2ada450d7948036a9f475c33e29d65712 in implementing the"},{"line_number":11,"context_line":"check_mk server."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9ad9bd40_f76c1639","line":9,"updated":"2014-04-30 13:16:00.000000000","message":"complements","commit_id":"ad0e945ac0a1a05413d9f4425d604c1dcd28c5a7"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Install check_mk server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patchset compliments Ibc93bbb1f99efdde2792ece63f5cf332a2edddb7"},{"line_number":10,"context_line":"and Idced49d2ada450d7948036a9f475c33e29d65712 in implementing the"},{"line_number":11,"context_line":"check_mk server."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7adec928_53040615","line":9,"updated":"2014-05-08 10:08:21.000000000","message":"complements :)","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":10,"context_line":"and Idced49d2ada450d7948036a9f475c33e29d65712 in implementing the"},{"line_number":11,"context_line":"check_mk server."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This creates the nova_access_info from a HEAT template and then"},{"line_number":14,"context_line":"relies on this information to automatically build a list of nodes"},{"line_number":15,"context_line":"to monitor from the output of nova list"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7adec928_7309022c","line":13,"updated":"2014-05-08 10:08:21.000000000","message":"Heat","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This creates the nova_access_info from a HEAT template and then"},{"line_number":14,"context_line":"relies on this information to automatically build a list of nodes"},{"line_number":15,"context_line":"to monitor from the output of nova list"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I5c11017a025aee3bb43302c5d33dfd51ba9b48c5"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"7adec928_b312aa56","line":15,"updated":"2014-05-08 10:08:21.000000000","message":"full stop","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"}],"elements/check_mk-server/README.md":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"07a23273c918135571aca80c837a20343363c861","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Installs the \"Classic\" Icinga-CGI interface from packages."},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"Includes nova client used to get a list of IPs to monitor. Any found IPs are"},{"line_number":4,"context_line":"added to the Icinga \"generic-host\" group which should provide basic ping and"}],"source_content_type":"text/x-gfm","patch_set":3,"id":"AAAAXH%2F%2FOPk%3D","line":1,"updated":"2014-04-23 08:25:34.000000000","message":"Err, no it doesn\u0027t. :-P\n\nThis whole file needs to be revised for check_mk.","commit_id":"530fe154e10f7c5ee8d69b01d8adcce888c147a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Installs the check_mk server and configures it to talk to icinga"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"This element uses the nova credentials from the icinga-cgi element to"},{"line_number":4,"context_line":"get a list of all the nodes that should be in icinga from the overcloud"}],"source_content_type":"text/x-gfm","patch_set":11,"id":"7adec928_131a7e6e","line":1,"updated":"2014-05-08 10:08:21.000000000","message":"Full stop.","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"ab06724b0edd3d6cbdc564599fdd19f0cffd8861","unresolved":false,"context_lines":[{"line_number":11,"context_line":"        nova_api_url: https://192.0.2.1:5000/v2.0 # the full nova api url"},{"line_number":12,"context_line":"        nova_os_password: unset  # the nova password for the above api"},{"line_number":13,"context_line":"        nova_os_username: admin  # the nova user for the above api"},{"line_number":14,"context_line":"        nova_os_tenant_name: admin # the nova tenant for the above api"},{"line_number":15,"context_line":"        initial_network_split_key: ctlplane # the key to split output from Nova to get IP Addresses"}],"source_content_type":"text/x-gfm","patch_set":13,"id":"1ae5cdf2_41aac871","line":14,"updated":"2014-06-12 07:58:44.000000000","message":"Could we align this with the new nagios3 element? I just landed a change to use\n\n    os_auth_url\n    os_password\n    os_username\n    os_tenant_name\n\nThese are directly correlated with the environment variable names.","commit_id":"db1703f486d3238c5ece38cb40df87a479c12981"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"ab06724b0edd3d6cbdc564599fdd19f0cffd8861","unresolved":false,"context_lines":[{"line_number":12,"context_line":"        nova_os_password: unset  # the nova password for the above api"},{"line_number":13,"context_line":"        nova_os_username: admin  # the nova user for the above api"},{"line_number":14,"context_line":"        nova_os_tenant_name: admin # the nova tenant for the above api"},{"line_number":15,"context_line":"        initial_network_split_key: ctlplane # the key to split output from Nova to get IP Addresses"}],"source_content_type":"text/x-gfm","patch_set":13,"id":"1ae5cdf2_41c1e82d","line":15,"updated":"2014-06-12 07:58:44.000000000","message":"This was also changed, to a list:\n\nmonitor_networks:\n  - x\n  - y\n\nThe name \"initial_network_split_key\" is an implementation detail, and not the actual thing that you\u0027re looking for.\n\nPerhaps you can also crib the python script I wrote there and make it generate check_mk configs somehow.","commit_id":"db1703f486d3238c5ece38cb40df87a479c12981"}],"elements/check_mk-server/element-deps":[{"author":{"_account_id":1926,"name":"Derek Higgins","email":"derekh@redhat.com","username":"derekh"},"change_message_id":"ad4c961482d442736bf361fd042fc35efb036823","unresolved":false,"context_lines":[{"line_number":1,"context_line":"icinga-cgi"},{"line_number":2,"context_line":"openstack-clients"},{"line_number":3,"context_line":"os-apply-config"},{"line_number":4,"context_line":"os-refresh-config"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1ae5cdf2_0620f2aa","line":1,"range":{"start_line":1,"start_character":0,"end_line":1,"end_character":10},"updated":"2014-06-03 23:41:58.000000000","message":"Hit an error here, should it be icinga-web ?\n\n    ERROR: Element \u0027icinga-cgi\u0027 not found in \u0027/root/tripleo/tripleo-image-elements/elements:/root/tripleo/diskimage-builder/bin/../elements\u0027","commit_id":"4fd83e5af7fd2f8cee0c6563521c76d45fffa6d1"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"29fa9c950846f8e03910bf1926e1fa186a0867a0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"icinga-cgi"},{"line_number":2,"context_line":"openstack-clients"},{"line_number":3,"context_line":"os-apply-config"},{"line_number":4,"context_line":"os-refresh-config"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1ae5cdf2_3473c2b2","line":1,"in_reply_to":"1ae5cdf2_0620f2aa","updated":"2014-06-09 07:32:28.000000000","message":"Ah, there are other patches in this chain, perhaps I should make that more explicit in the commit message?","commit_id":"4fd83e5af7fd2f8cee0c6563521c76d45fffa6d1"},{"author":{"_account_id":1926,"name":"Derek Higgins","email":"derekh@redhat.com","username":"derekh"},"change_message_id":"4a669d4a4ed8c00a69c329a9fd8c8e20600760c6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"icinga-cgi"},{"line_number":2,"context_line":"openstack-clients"},{"line_number":3,"context_line":"os-apply-config"},{"line_number":4,"context_line":"os-refresh-config"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"1ae5cdf2_eb57b8c8","line":1,"in_reply_to":"1ae5cdf2_3473c2b2","updated":"2014-06-09 08:52:52.000000000","message":"Ahh ok, gottya, can you make them part of the same branch so they depend on each other? Anyways I\u0027ll try again.","commit_id":"4fd83e5af7fd2f8cee0c6563521c76d45fffa6d1"}],"elements/check_mk-server/install.d/18-check-mk-server":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# install check_mk server and dependencies"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"set -e"},{"line_number":6,"context_line":"set -o xtrace"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"install-packages check-mk-server check-mk-config-icinga check-mk-livestatus"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_ba041c16","line":5,"updated":"2014-05-01 08:47:31.000000000","message":"please add u and -o pipefail","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# install check_mk server and dependencies"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"set -e"},{"line_number":6,"context_line":"set -o xtrace"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"install-packages check-mk-server check-mk-config-icinga check-mk-livestatus"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_ba2b3c81","line":5,"in_reply_to":"9ad9bd40_ba041c16","updated":"2014-05-01 09:43:17.000000000","message":"Done","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":5,"context_line":"set -eux"},{"line_number":6,"context_line":"set -o pipefail"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"install-packages check-mk-server check-mk-config-icinga check-mk-livestatus"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":11,"context_line":"# force it so we don\u0027t get an error if the file has gone already"}],"source_content_type":"application/x-shellscript","patch_set":11,"id":"7adec928_f33352f4","line":8,"updated":"2014-05-08 10:08:21.000000000","message":"Are these available from distro repos? Not a problem if they aren\u0027t, just might help me out. Assuming they aren\u0027t, are you relying on users leveraging apt-sources + dpkg to add extra repos + keys?","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"}],"elements/check_mk-server/os-apply-config/etc/check_mk/main.mk":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":1,"context_line":"all_hosts \u003d [\u0027localhost\u0027]"},{"line_number":2,"context_line":"www_group \u003d \"www-data\""}],"source_content_type":"application/octet-stream","patch_set":9,"id":"9ad9bd40_8703850e","line":2,"updated":"2014-05-01 08:47:31.000000000","message":"Optional: if this is static data, you can copy it in at build time rather than templating it.","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"all_hosts \u003d [\u0027localhost\u0027]"},{"line_number":2,"context_line":"www_group \u003d \"www-data\""}],"source_content_type":"application/octet-stream","patch_set":9,"id":"9ad9bd40_7a9c546a","line":2,"in_reply_to":"9ad9bd40_8703850e","updated":"2014-05-01 09:43:17.000000000","message":"We may want to add to this template in future, so I\u0027m going to leave it here...","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"}],"elements/check_mk-server/os-apply-config/etc/check_mk/nova_access_info":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"9f8f73ea8418006c58203c01982f17bb54363b9c","unresolved":false,"context_lines":[{"line_number":6,"context_line":"export COMPUTE_API_VERSION\u003d1.1"},{"line_number":7,"context_line":"export OS_NO_CACHE\u003dTrue"},{"line_number":8,"context_line":"# add initial split network."},{"line_number":9,"context_line":"export split_key\u003d{{check_mk.initial_network_split_key}}"}],"source_content_type":"application/octet-stream","patch_set":10,"id":"9ad9bd40_c0b6413d","line":9,"updated":"2014-05-02 01:28:29.000000000","message":"Same comments as I made about having too much in this file, an the need to chmod it in the icinga review apply here.","commit_id":"ba7f76fe488afa46d911b0ff1bbb195a090444f7"}],"elements/check_mk-server/os-apply-config/etc/cron.d/check_mk_update":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":1,"context_line":"*/5 * * * * root /bin/bash /usr/local/bin/nova_to_check_mk \u003e /var/log/nova_to_checkmk.log"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"9ad9bd40_67068122","line":1,"updated":"2014-05-01 08:47:31.000000000","message":"/mnt/state/var/log/... please.","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"*/5 * * * * root /bin/bash /usr/local/bin/nova_to_check_mk \u003e /var/log/nova_to_checkmk.log"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"9ad9bd40_1a3a68cd","line":1,"in_reply_to":"9ad9bd40_67068122","updated":"2014-05-01 09:43:17.000000000","message":"Done","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"9f8f73ea8418006c58203c01982f17bb54363b9c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"*/5 * * * * root /bin/bash /usr/local/bin/nova_to_check_mk \u003e /mnt/state/var/log/nova_to_checkmk.log"}],"source_content_type":"application/octet-stream","patch_set":10,"id":"9ad9bd40_c05f210d","line":1,"updated":"2014-05-02 01:28:29.000000000","message":"Oh, this probably wants to be \u003e\u003e, not \u003e, no?","commit_id":"ba7f76fe488afa46d911b0ff1bbb195a090444f7"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"39020d255af2634ff8cd2d9b1309da68b98390e6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":14,"id":"baada198_f04dcf73","updated":"2014-07-01 19:02:50.000000000","message":"i wouldn\u0027t use os-apply-config to install this file, and instead do it at image build time via the install.d hook. see the keystone element for an example of installing a file under /etc/cron.d","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"c0a46408e9c1668e3a76fb55e5d0dbe2070be9c2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":14,"id":"baada198_196332dd","in_reply_to":"baada198_f04dcf73","updated":"2014-07-02 13:26:10.000000000","message":"OK, if there is an existing pattern to do this then I\u0027m happy to follow it but I\u0027d be interested in knowing why this won\u0027t work/is \"wrong\".","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"}],"elements/check_mk-server/os-apply-config/etc/icinga/modules/livestatus.cfg":[{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"9f8f73ea8418006c58203c01982f17bb54363b9c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# enable livestatus"},{"line_number":2,"context_line":"broker_module\u003d/usr/lib/check_mk/livestatus.o /mnt/state/var/lib/icinga/rw/live"},{"line_number":3,"context_line":"event_broker_options\u003d-1"}],"source_content_type":"text/x-ttcn-cfg","patch_set":10,"id":"9ad9bd40_e09b45c7","line":3,"updated":"2014-05-02 01:28:29.000000000","message":"Much nicer, thank you!","commit_id":"ba7f76fe488afa46d911b0ff1bbb195a090444f7"}],"elements/check_mk-server/os-apply-config/usr/local/bin/nova_to_check_mk":[{"author":{"_account_id":5639,"name":"Coleman Corrigan","email":"coleman.corrigan@hp.com","username":"coleman-corrigan"},"change_message_id":"73c5cdbe12dedaa6df601dce38dfd7af5080c0f7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we cann\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"},{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"AAAAXH%2F%2FA8A%3D","line":4,"updated":"2014-04-24 16:44:18.000000000","message":"typo","commit_id":"caeb8c8dc05344ee8f9434ce3cb06be9998370eb"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we can\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_c71d8d75","line":2,"updated":"2014-05-01 08:47:31.000000000","message":"set -o pipefail please","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":18,"context_line":"EOF"},{"line_number":19,"context_line":"    fi"},{"line_number":20,"context_line":"    /usr/bin/check_mk -II $node_ip"},{"line_number":21,"context_line":"done"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"# reload the Icinga config"},{"line_number":24,"context_line":"/usr/bin/check_mk -O"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_47097d30","line":21,"updated":"2014-05-01 08:47:31.000000000","message":"same concern applies here about how to get the list of things to monitor","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":18,"context_line":"EOF"},{"line_number":19,"context_line":"    fi"},{"line_number":20,"context_line":"    /usr/bin/check_mk -II $node_ip"},{"line_number":21,"context_line":"done"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"# reload the Icinga config"},{"line_number":24,"context_line":"/usr/bin/check_mk -O"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_da572001","line":21,"in_reply_to":"9ad9bd40_47097d30","updated":"2014-05-01 09:43:17.000000000","message":"Executing the code here as part of a cron job means that if addtional nodes are added to the overcloud (I\u0027m assuming this monitoring will be run on the undercloud) then they will show up in Monitoring very quickly.\n\nI\u0027d be happy to add additional code to pull in a list of servers from HEAT as well to allow for additional config?","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"9f8f73ea8418006c58203c01982f17bb54363b9c","unresolved":false,"context_lines":[{"line_number":22,"context_line":"done"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# reload the Icinga config"},{"line_number":25,"context_line":"/usr/bin/check_mk -O"}],"source_content_type":"application/x-shellscript","patch_set":10,"id":"9ad9bd40_a0b93d30","line":25,"updated":"2014-05-02 01:28:29.000000000","message":"This doesn\u0027t look like a template - shouldn\u0027t it be in bin/ in your element (gets copied to usr-local-bin for you.","commit_id":"ba7f76fe488afa46d911b0ff1bbb195a090444f7"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"a677ab72c74e1fec106930228334e6640316665d","unresolved":false,"context_lines":[{"line_number":6,"context_line":"DEFAULTS\u003d/etc/check_mk/nova_access_info"},{"line_number":7,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":8,"context_line":"source $DEFAULTS"},{"line_number":9,"context_line":"echo \"defaults loaded.\""},{"line_number":10,"context_line":"nova_ip_list\u003d$(/usr/local/bin/nova list | awk -F\"|\" \u0027/\u0027$split_key\u0027/ { split($7,x,\"\u003d\"); print x[2] }\u0027)"},{"line_number":11,"context_line":"echo \"Found $nova_ip_list\""},{"line_number":12,"context_line":"for node_ip in $nova_ip_list"}],"source_content_type":"application/x-shellscript","patch_set":11,"id":"7adec928_dd11eead","line":9,"updated":"2014-05-08 10:08:21.000000000","message":"Given this is running as a cronjob, IMO it should only provide output if truly necessary. Remove all echoes","commit_id":"c78a413913dcbe6910c7dd1b1e04d7293deedb40"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"39020d255af2634ff8cd2d9b1309da68b98390e6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":14,"id":"baada198_4d4a6881","updated":"2014-07-01 19:02:50.000000000","message":"is there a reason why this file is installed via os-apply-config? That\u0027s not a typical pattern. i don\u0027t see anything in the script that needs to be templated. also, os-apply-config won\u0027t install it +x fwiw. i see /bin/bash \u003cscript\u003e is used in the cron job, so perhaps it\u0027s not meant to be +x?\n\ni would recommend just installing this script via the install.d hook.","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"c0a46408e9c1668e3a76fb55e5d0dbe2070be9c2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":14,"id":"baada198_39bab60a","in_reply_to":"baada198_4d4a6881","updated":"2014-07-02 13:26:10.000000000","message":"OK, same as the crontab file - I\u0027m happy to change the methodology however it is my understanding that if you want similar behaviour to chef/puppet templates/files in TripleO you used o-a-c so if this is not the case I\u0027d appreciate an explanation why it needs changing given that the current approach works.","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"39020d255af2634ff8cd2d9b1309da68b98390e6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"HEAT_COMPLETE\u003d$(/usr/local/bin/heat stack-list | grep CREATE_COMPLETE | wc -l)"},{"line_number":16,"context_line":"if [ $HEAT_COMPLETE -gt 0 ]; then"},{"line_number":17,"context_line":"    echo \"Stack provisioned, scanning for nodes to monitor\""},{"line_number":18,"context_line":"    nova_ip_list\u003d$(/usr/local/bin/nova list --fields Networks | sed -n \"s,.*[[:space:]]\\+$split_key\u003d\\([^[:space:]]\\+\\).*,\\1,gp\")"},{"line_number":19,"context_line":"    echo \"Found $nova_ip_list\""},{"line_number":20,"context_line":"    for node_ip in $nova_ip_list"},{"line_number":21,"context_line":"    do"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_7041bf38","line":18,"updated":"2014-07-01 19:02:50.000000000","message":"is $split_key defined anywhere?","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"}],"elements/check_mk-server/os-refresh-config/post-configure.d/18-check_mk-server":[{"author":{"_account_id":5639,"name":"Coleman Corrigan","email":"coleman.corrigan@hp.com","username":"coleman-corrigan"},"change_message_id":"1a90cf668499cddf000e8cf05a289137d04df708","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eux"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we cann\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"},{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAW3%2F%2FevQ%3D","line":3,"updated":"2014-04-14 10:39:57.000000000","message":"is -x intended here ?","commit_id":"5ecd9fe3b6bdd3d590917fbdcb9605b933ec0d4d"},{"author":{"_account_id":5639,"name":"Coleman Corrigan","email":"coleman.corrigan@hp.com","username":"coleman-corrigan"},"change_message_id":"1a90cf668499cddf000e8cf05a289137d04df708","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    echo \"setup cfg file for $node_ip.\""},{"line_number":14,"context_line":"    # TODO: make host_name \u0026 alias real names"},{"line_number":15,"context_line":"    if [ ! -f /etc/check_mk/conf.d/$node_ip.mk ]; then"},{"line_number":16,"context_line":"        cat \u003c\u003c _EOF_ \u003e\u003e /etc/check_mk/conf.d/$node_ip.mk"},{"line_number":17,"context_line":"all_hosts \u003d all_hosts + [\"$node_ip\"]"},{"line_number":18,"context_line":"_EOF_"},{"line_number":19,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAW3%2F%2FeuM%3D","line":16,"updated":"2014-04-14 10:39:57.000000000","message":"Please use the standard EOF rather than _EOF_  \nWould you consider using \u003c\u003c- and sticking with tab indent ?","commit_id":"5ecd9fe3b6bdd3d590917fbdcb9605b933ec0d4d"},{"author":{"_account_id":5639,"name":"Coleman Corrigan","email":"coleman.corrigan@hp.com","username":"coleman-corrigan"},"change_message_id":"1a90cf668499cddf000e8cf05a289137d04df708","unresolved":false,"context_lines":[{"line_number":23,"context_line":"# enable livestatus"},{"line_number":24,"context_line":"if [ ! -f /etc/icinga/modules/livestatus.cfg ]; then"},{"line_number":25,"context_line":"    echo \"Enabling livestatus\""},{"line_number":26,"context_line":"    cat \u003c\u003c _EOF_ \u003e\u003e /etc/icinga/icinga.cfg"},{"line_number":27,"context_line":"broker_module\u003d/usr/lib/check_mk/livestatus.o /var/lib/icinga/rw/live"},{"line_number":28,"context_line":"event_broker_options\u003d-1"},{"line_number":29,"context_line":"_EOF_"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAW3%2F%2Fet0%3D","line":26,"updated":"2014-04-14 10:39:57.000000000","message":"as above","commit_id":"5ecd9fe3b6bdd3d590917fbdcb9605b933ec0d4d"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"6404d511d9731f76a9f5ea280c1af043fff54ff3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":"set -eu"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"# exit if we cann\u0027t source our required data"},{"line_number":5,"context_line":"DEFAULTS\u003d/etc/icinga/nova_access_info"},{"line_number":6,"context_line":"[ -e $DEFAULTS ] || exit 0"},{"line_number":7,"context_line":"source $DEFAULTS"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"9ad9bd40_97658a47","line":4,"updated":"2014-04-30 13:16:00.000000000","message":"can\u0027t","commit_id":"ad0e945ac0a1a05413d9f4425d604c1dcd28c5a7"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":8,"context_line":"broker_module\u003d/usr/lib/check_mk/livestatus.o /mnt/state/var/lib/icinga/rw/live"},{"line_number":9,"context_line":"event_broker_options\u003d-1"},{"line_number":10,"context_line":"EOF"},{"line_number":11,"context_line":"fi"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":14,"context_line":"# force it so we don\u0027t get an error if the file has gone already"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_672f61a2","line":11,"updated":"2014-05-01 08:47:31.000000000","message":"This should be enabled by exporting the broker module option via cfn local metadata (see the seed-config element for an example of how that works) and then consuming it in the icinga.cfg template I asked for in the other review.","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":8,"context_line":"broker_module\u003d/usr/lib/check_mk/livestatus.o /mnt/state/var/lib/icinga/rw/live"},{"line_number":9,"context_line":"event_broker_options\u003d-1"},{"line_number":10,"context_line":"EOF"},{"line_number":11,"context_line":"fi"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":14,"context_line":"# force it so we don\u0027t get an error if the file has gone already"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_7a5ff40e","line":11,"in_reply_to":"9ad9bd40_672f61a2","updated":"2014-05-01 09:43:17.000000000","message":"I\u0027m going to move this into a separate file instead of having it here - using cat and EOF is just dumb now I think about it! :)\n\nIf we\u0027re going to start implementing other things in icinga, then this needs to be enabled to allow them to talk to one another so this is part of the \"next steps\".","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"d39b3853da7359aee9e0c45ce06fa4c618bcc754","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":14,"context_line":"# force it so we don\u0027t get an error if the file has gone already"},{"line_number":15,"context_line":"rm -f /etc/icinga/objects/localhost_icinga.cfg"},{"line_number":16,"context_line":"check_mk -O"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_a7188985","line":15,"updated":"2014-05-01 08:47:31.000000000","message":"Should be done at build time.","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"a6fc1039f9a7219677b4a6d454861fb15ad2bc2f","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":14,"context_line":"# force it so we don\u0027t get an error if the file has gone already"},{"line_number":15,"context_line":"rm -f /etc/icinga/objects/localhost_icinga.cfg"},{"line_number":16,"context_line":"check_mk -O"}],"source_content_type":"application/x-shellscript","patch_set":9,"id":"9ad9bd40_1a418839","line":15,"in_reply_to":"9ad9bd40_a7188985","updated":"2014-05-01 09:43:17.000000000","message":"Done","commit_id":"120d28e625dc603976a0e4c3d9fce0f52e4f955c"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"39020d255af2634ff8cd2d9b1309da68b98390e6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# install check_mk server and dependencies"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"set -eux"},{"line_number":6,"context_line":"set -o pipefail"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_2d3c54e2","line":3,"updated":"2014-07-01 19:02:50.000000000","message":"this comment needs updating/removing","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"39020d255af2634ff8cd2d9b1309da68b98390e6","unresolved":false,"context_lines":[{"line_number":7,"context_line":""},{"line_number":8,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":9,"context_line":"# force it so we don\u0027t get an error if the file has gone already"},{"line_number":10,"context_line":"rm -f /etc/icinga/objects/localhost_icinga.cfg"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_ad06a41e","line":10,"updated":"2014-07-01 19:02:50.000000000","message":"any reason this can\u0027t happen during image build time instead of runtime configuration? read only root is still (eventually) a goal....so we should avoid making runtime configurations if possible.","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"},{"author":{"_account_id":7537,"name":"Matthew Macdonald-Wallace","email":"mmw@hp.com","username":"macdomat"},"change_message_id":"c0a46408e9c1668e3a76fb55e5d0dbe2070be9c2","unresolved":false,"context_lines":[{"line_number":7,"context_line":""},{"line_number":8,"context_line":"# we need to remove the \"default\" localhost check so that we can override it with the check_mk stuff"},{"line_number":9,"context_line":"# force it so we don\u0027t get an error if the file has gone already"},{"line_number":10,"context_line":"rm -f /etc/icinga/objects/localhost_icinga.cfg"}],"source_content_type":"application/x-shellscript","patch_set":14,"id":"baada198_99274264","line":10,"in_reply_to":"baada198_ad06a41e","updated":"2014-07-02 13:26:10.000000000","message":"There is a chance that other scripts/packages will install this file during runtime and overwrite the content, forcing icinga to stop working and complain about duplicate entries for \"localhost\".\n\nBy doing this at Runtime, we effectively prevent the above from happening.","commit_id":"5d21fca06a9714d6e89586fac3517cfc1dc05368"}]}
