{"action":"created","issue":{"url":"https://api.github.com/repos/bicofino/Pyora/issues/12","repository_url":"https://api.github.com/repos/bicofino/Pyora","labels_url":"https://api.github.com/repos/bicofino/Pyora/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bicofino/Pyora/issues/12/comments","events_url":"https://api.github.com/repos/bicofino/Pyora/issues/12/events","html_url":"https://github.com/bicofino/Pyora/issues/12","id":178406147,"number":12,"title":"Error using External Checks (zabbix)","user":{"login":"augustoferronato","id":13663686,"avatar_url":"https://avatars.githubusercontent.com/u/13663686?v=3","gravatar_id":"","url":"https://api.github.com/users/augustoferronato","html_url":"https://github.com/augustoferronato","followers_url":"https://api.github.com/users/augustoferronato/followers","following_url":"https://api.github.com/users/augustoferronato/following{/other_user}","gists_url":"https://api.github.com/users/augustoferronato/gists{/gist_id}","starred_url":"https://api.github.com/users/augustoferronato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustoferronato/subscriptions","organizations_url":"https://api.github.com/users/augustoferronato/orgs","repos_url":"https://api.github.com/users/augustoferronato/repos","events_url":"https://api.github.com/users/augustoferronato/events{/privacy}","received_events_url":"https://api.github.com/users/augustoferronato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-21T17:02:06Z","updated_at":"2016-09-28T12:45:29Z","closed_at":null,"body":"Hi,\r\nWhen i try to use the script has a external check, the erro below:\r\n**\"invalid choice: zabbix\"**\r\n\r\nI change the item on zabbix:\r\n\r\nOriginal.\r\n\r\n> pyora[{$USERNAME},{$PASSWORD},{$ADDRESS},{$DATABASE},activeusercount]\r\n\r\n\r\nWith my changes:\r\n\r\n> pyora[ --username {$USERNAME} --password {$PASSWORD} --address {$ADDRESS} --database {$DATABASE} activeusercount]\r\n\r\nOn the second (using my changes) i receive:\r\n\r\n> Received value [usage: pyora [-h] [--username USERNAME] [--password PASSWORD] [--address ADDRESS] [--database DATABASE] {dbseqread,tablespace_abs,lastapplarclog,show_users,tablespace_temp,query_rollbacks,indexffs,bufbusywaits,show_asm_volumes,logswcompletion,netresv,db_connect,redowrites,user_status,logonscurrent,fra_use,netroundtrips,directread,directwrite,rollbacks,logfilesync,show_tablespaces_temp,lastarclog,dbfilesize,query_sessions,dbsnglwrite,tblscans,dsksortratio,netsent,commits,version,uptime,query_lock,enqueue,hparsratio,tablespace,check_active,rcachehit,activeusercount,logprllwrite,dbscattread,deadlocks,query_redologs,tblrowsscans,latchfree,check_archive,asm_volume_use,query_sysmetrics,dbprllwrite,show_tablespaces,dbsize,freebufwaits,db_close} **...pyora: error: invalid choice: '--username zabbix --password password--address SERVER --database DATABASE_SERVICE activeusercount'** (choose from 'dbseqread', 'tablespace_abs', 'lastapplarclog', 'show_users', 'tablespace_temp', 'query_rollbacks', 'indexffs', 'bufbusywaits', 'show_asm_volumes', 'logswcompletion', 'netresv', 'db_connect', 'redowrites', 'user_status', 'logonscurrent', 'fra_use', 'netroundtrips', 'directread', 'directwrite', 'rollbacks', 'logfilesync', 'show_tablespaces_temp', 'lastarclog', 'dbfilesize', 'query_sessions', 'dbsnglwrite', 'tblscans', 'dsksortratio', 'netsent', 'commits', 'version', 'uptime', 'query_lock', 'enqueue', 'hparsratio', 'tablespace', 'check_active', 'rcachehit', 'activeusercount', 'logprllwrite', 'dbscattread', 'deadlocks', 'query_redologs', 'tblrowsscans', 'latchfree', 'check_archive', 'asm_volume_use', 'query_sysmetrics', 'dbprllwrite', 'show_tablespaces', 'dbsize', 'freebufwaits', 'db_close')] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]\r\n\r\nBut if a go to the terminal, and put the command line, works fine.\r\n\r\nI don't know if is Zabbix or the script. Zabbix 2.4\r\n"},"comment":{"url":"https://api.github.com/repos/bicofino/Pyora/issues/comments/250156048","html_url":"https://github.com/bicofino/Pyora/issues/12#issuecomment-250156048","issue_url":"https://api.github.com/repos/bicofino/Pyora/issues/12","id":250156048,"user":{"login":"bicofino","id":682902,"avatar_url":"https://avatars.githubusercontent.com/u/682902?v=3","gravatar_id":"","url":"https://api.github.com/users/bicofino","html_url":"https://github.com/bicofino","followers_url":"https://api.github.com/users/bicofino/followers","following_url":"https://api.github.com/users/bicofino/following{/other_user}","gists_url":"https://api.github.com/users/bicofino/gists{/gist_id}","starred_url":"https://api.github.com/users/bicofino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bicofino/subscriptions","organizations_url":"https://api.github.com/users/bicofino/orgs","repos_url":"https://api.github.com/users/bicofino/repos","events_url":"https://api.github.com/users/bicofino/events{/privacy}","received_events_url":"https://api.github.com/users/bicofino/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T12:45:29Z","updated_at":"2016-09-28T12:45:29Z","body":"Hello,\r\n\r\nYou change the Macro values to actual ADDRESS/DATABASE and etc?"}}
{"actor":{"display_login":"bicofino"}}