{"action":"created","issue":{"url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4","labels_url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4/comments","events_url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4/events","html_url":"https://github.com/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4","id":58304315,"number":4,"title":"Issue with .php","user":{"login":"bradenwright","id":1551550,"avatar_url":"https://avatars.githubusercontent.com/u/1551550?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenwright","html_url":"https://github.com/bradenwright","followers_url":"https://api.github.com/users/bradenwright/followers","following_url":"https://api.github.com/users/bradenwright/following{/other_user}","gists_url":"https://api.github.com/users/bradenwright/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenwright/subscriptions","organizations_url":"https://api.github.com/users/bradenwright/orgs","repos_url":"https://api.github.com/users/bradenwright/repos","events_url":"https://api.github.com/users/bradenwright/events{/privacy}","received_events_url":"https://api.github.com/users/bradenwright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T02:54:53Z","updated_at":"2015-02-24T15:54:58Z","closed_at":null,"body":"So I'd really like to get this working, been using mongodb and zabbix for a little while so seems like a good combo.  Thanks for keeping up with this project!\r\n\r\nAnyways I don't know very much about php.... but I'm getting the following error:\r\n\r\n<code>PHP Parse error:  syntax error, unexpected '[' in /etc/zabbix/externalscripts/mikoomi-mongodb-plugin.php on line 30\r\n0</code>\r\n\r\nThe line is:\r\n<code>\r\n$options = getopt(\"Dh:p:z:u:x:H:P:\", [\"ssl\"]) ;\r\n</code>\r\nI tried removing the ssl portion or using a script from the git history from before ssl support was added.  When I do this the script runs (via /etc/zabbix/externalscripts/mikoomi-mongodb-plugin.sh -z dev-db1.example.com) but I don't get any data on the zabbix server.\r\n\r\nI tried to check /tmp/mikoomi-mongodb-plugin.php_*.log but nothing is being written in the log or data file.\r\n\r\nI'm running on ubuntu 12.04, PHP 5.3.10-1ubuntu3.16 with Suhosin-Patch (cli) (built: Feb 13 2015 20:15:04).  Any help on tracking down the issue would be appreciated"},"comment":{"url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/comments/75782804","html_url":"https://github.com/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4#issuecomment-75782804","issue_url":"https://api.github.com/repos/nightw/mikoomi-zabbix-mongodb-monitoring/issues/4","id":75782804,"user":{"login":"bradenwright","id":1551550,"avatar_url":"https://avatars.githubusercontent.com/u/1551550?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenwright","html_url":"https://github.com/bradenwright","followers_url":"https://api.github.com/users/bradenwright/followers","following_url":"https://api.github.com/users/bradenwright/following{/other_user}","gists_url":"https://api.github.com/users/bradenwright/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenwright/subscriptions","organizations_url":"https://api.github.com/users/bradenwright/orgs","repos_url":"https://api.github.com/users/bradenwright/repos","events_url":"https://api.github.com/users/bradenwright/events{/privacy}","received_events_url":"https://api.github.com/users/bradenwright/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T15:54:58Z","updated_at":"2015-02-24T15:54:58Z","body":"FYI that fix did work to get the script running so thanks for the quick reply.  Also I went ahead and looked up how to upgrade to newer php.  \r\n\r\nI'm having some issue not getting data, but I want to retest a few things before I post further on that."}}