{"action":"created","issue":{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/69","labels_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/69/comments","events_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/69/events","html_url":"https://github.com/dj-wasabi/puppet-zabbix/issues/69","id":65500672,"number":69,"title":"Multi-node Setup: Web class does not properly configure database port","user":{"login":"elricsfate","id":523926,"avatar_url":"https://avatars.githubusercontent.com/u/523926?v=3","gravatar_id":"","url":"https://api.github.com/users/elricsfate","html_url":"https://github.com/elricsfate","followers_url":"https://api.github.com/users/elricsfate/followers","following_url":"https://api.github.com/users/elricsfate/following{/other_user}","gists_url":"https://api.github.com/users/elricsfate/gists{/gist_id}","starred_url":"https://api.github.com/users/elricsfate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elricsfate/subscriptions","organizations_url":"https://api.github.com/users/elricsfate/orgs","repos_url":"https://api.github.com/users/elricsfate/repos","events_url":"https://api.github.com/users/elricsfate/events{/privacy}","received_events_url":"https://api.github.com/users/elricsfate/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/milestones/3","html_url":"https://github.com/dj-wasabi/puppet-zabbix/milestones/1.3.0","labels_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/milestones/3/labels","id":1050860,"number":3,"title":"1.3.0","description":"","creator":{"login":"dj-wasabi","id":1171720,"avatar_url":"https://avatars.githubusercontent.com/u/1171720?v=3","gravatar_id":"","url":"https://api.github.com/users/dj-wasabi","html_url":"https://github.com/dj-wasabi","followers_url":"https://api.github.com/users/dj-wasabi/followers","following_url":"https://api.github.com/users/dj-wasabi/following{/other_user}","gists_url":"https://api.github.com/users/dj-wasabi/gists{/gist_id}","starred_url":"https://api.github.com/users/dj-wasabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj-wasabi/subscriptions","organizations_url":"https://api.github.com/users/dj-wasabi/orgs","repos_url":"https://api.github.com/users/dj-wasabi/repos","events_url":"https://api.github.com/users/dj-wasabi/events{/privacy}","received_events_url":"https://api.github.com/users/dj-wasabi/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2015-04-02T19:32:31Z","updated_at":"2015-04-02T19:53:41Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-03-31T17:09:09Z","updated_at":"2015-04-02T20:10:25Z","closed_at":null,"body":"\"database_port\" is not properly set when web node is split from master node. \r\n\r\nPuppet code:\r\n\r\n```\r\n\r\n# Zabbix Web Node\r\n\r\nnode 'MASTER' {\r\n  file { '/etc/yum.conf':\r\n    source => 'puppet:///modules/yum/yum.conf',\r\n    owner  => root,\r\n    group  => root,\r\n  }\r\n  class { 'apache':\r\n      mpm_module => 'prefork',\r\n  }\r\n  class { 'apache::mod::php': }\r\n  class { 'zabbix::web':\r\n    zabbix_url      => '',\r\n    zabbix_server   => 'MASTER',\r\n    database_host   => 'MASTER',\r\n    zabbix_api_user => 'whatever',\r\n    zabbix_api_pass => 'crazysecurepassword',\r\n    database_type   => 'mysql',\r\n  }\r\n}\r\n```\r\n\r\n\r\nOutput:\r\n```\r\n/etc/zabbix/web/zabbix.conf.php\r\n\r\n<?php\r\n// Zabbix GUI configuration file\r\nglobal $DB;\r\n\r\n$DB['TYPE']     = 'MYSQL';\r\n$DB['SERVER']   = 'c2t06545.itcs.hp.com';\r\n$DB['PORT']     = '0';\r\n$DB['DATABASE'] = 'zabbix_server';\r\n$DB['USER']     = 'zabbix_server';\r\n$DB['PASSWORD'] = 'zabbix_server';\r\n\r\n// SCHEMA is relevant only for IBM_DB2 database\r\n$DB['SCHEMA'] = '';\r\n\r\n$ZBX_SERVER      = 'c2t06545.itcs.hp.com';\r\n$ZBX_SERVER_PORT = '10051';\r\n$ZBX_SERVER_NAME = 'c2t06545.itcs.hp.com';\r\n\r\n$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;\r\n?>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/comments/89029483","html_url":"https://github.com/dj-wasabi/puppet-zabbix/issues/69#issuecomment-89029483","issue_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/69","id":89029483,"user":{"login":"dj-wasabi","id":1171720,"avatar_url":"https://avatars.githubusercontent.com/u/1171720?v=3","gravatar_id":"","url":"https://api.github.com/users/dj-wasabi","html_url":"https://github.com/dj-wasabi","followers_url":"https://api.github.com/users/dj-wasabi/followers","following_url":"https://api.github.com/users/dj-wasabi/following{/other_user}","gists_url":"https://api.github.com/users/dj-wasabi/gists{/gist_id}","starred_url":"https://api.github.com/users/dj-wasabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj-wasabi/subscriptions","organizations_url":"https://api.github.com/users/dj-wasabi/orgs","repos_url":"https://api.github.com/users/dj-wasabi/repos","events_url":"https://api.github.com/users/dj-wasabi/events{/privacy}","received_events_url":"https://api.github.com/users/dj-wasabi/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T20:10:25Z","updated_at":"2015-04-02T20:10:25Z","body":"Hi,\r\n\r\nI just pushed an fix for this, would you please test it?\r\n\r\nKind regards,\r\nWerner"}}