{"action":"created","issue":{"url":"https://api.github.com/repos/netniV/cisco-sfp/issues/7","repository_url":"https://api.github.com/repos/netniV/cisco-sfp","labels_url":"https://api.github.com/repos/netniV/cisco-sfp/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/netniV/cisco-sfp/issues/7/comments","events_url":"https://api.github.com/repos/netniV/cisco-sfp/issues/7/events","html_url":"https://github.com/netniV/cisco-sfp/issues/7","id":385644968,"node_id":"MDU6SXNzdWUzODU2NDQ5Njg=","number":7,"title":"Works on Nexus 9000 but not 5000?","user":{"login":"majed17","id":35138065,"node_id":"MDQ6VXNlcjM1MTM4MDY1","avatar_url":"https://avatars1.githubusercontent.com/u/35138065?v=4","gravatar_id":"","url":"https://api.github.com/users/majed17","html_url":"https://github.com/majed17","followers_url":"https://api.github.com/users/majed17/followers","following_url":"https://api.github.com/users/majed17/following{/other_user}","gists_url":"https://api.github.com/users/majed17/gists{/gist_id}","starred_url":"https://api.github.com/users/majed17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majed17/subscriptions","organizations_url":"https://api.github.com/users/majed17/orgs","repos_url":"https://api.github.com/users/majed17/repos","events_url":"https://api.github.com/users/majed17/events{/privacy}","received_events_url":"https://api.github.com/users/majed17/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-29T09:34:30Z","updated_at":"2018-11-30T12:06:09Z","closed_at":null,"author_association":"NONE","body":"Peace, here is the result of debug query:\r\n\r\n```\r\n\r\nTotal: 0.000000, Delta: 0.000000, Running Data Query [11]. Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server]. Total: 0.000000, Delta: 0.000000, Found data query XML file at  '/var/www/localhost/htdocs/cacti/resource/script_server/cisco_sfp.xml' Total: 0.000000, Delta: 0.000000, XML file parsed ok. Total: 0.000000, Delta: 0.000000, <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported Total: 0.220000, Delta: 0.220000, ERROR: Data Query returned no indexes. | Total: 0.000000, Delta: 0.000000, Running Data Query [11]. | Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server]. | Total: 0.000000, Delta: 0.000000, Found data query XML file at  '/var/www/localhost/htdocs/cacti/resource/script_server/cisco_sfp.xml' | Total: 0.000000, Delta: 0.000000, XML file parsed ok. | Total: 0.000000, Delta: 0.000000, <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported | Total: 0.220000, Delta: 0.220000, ERROR: Data Query returned no indexes.\r\n-- | -- | -- | -- | -- | -- | --\r\nTotal: 0.000000, Delta: 0.000000, Running Data Query [11].\r\nTotal: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server].\r\nTotal: 0.000000, Delta: 0.000000, Found data query XML file at  '/var/www/localhost/htdocs/cacti/resource/script_server/cisco_sfp.xml'\r\nTotal: 0.000000, Delta: 0.000000, XML file parsed ok.\r\nTotal: 0.000000, Delta: 0.000000, <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported\r\nTotal: 0.220000, Delta: 0.220000, ERROR: Data Query returned no indexes.\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/netniV/cisco-sfp/issues/comments/443184482","html_url":"https://github.com/netniV/cisco-sfp/issues/7#issuecomment-443184482","issue_url":"https://api.github.com/repos/netniV/cisco-sfp/issues/7","id":443184482,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzE4NDQ4Mg==","user":{"login":"netniV","id":9052188,"node_id":"MDQ6VXNlcjkwNTIxODg=","avatar_url":"https://avatars0.githubusercontent.com/u/9052188?v=4","gravatar_id":"","url":"https://api.github.com/users/netniV","html_url":"https://github.com/netniV","followers_url":"https://api.github.com/users/netniV/followers","following_url":"https://api.github.com/users/netniV/following{/other_user}","gists_url":"https://api.github.com/users/netniV/gists{/gist_id}","starred_url":"https://api.github.com/users/netniV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netniV/subscriptions","organizations_url":"https://api.github.com/users/netniV/orgs","repos_url":"https://api.github.com/users/netniV/repos","events_url":"https://api.github.com/users/netniV/events{/privacy}","received_events_url":"https://api.github.com/users/netniV/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T12:06:09Z","updated_at":"2018-11-30T12:06:09Z","author_association":"OWNER","body":"OK, as per the other ticket, this is because you need to run the script as your polling user.  Use `sudo -u <poller> <cmd>` replacing poller with the user that your poller normally runs under and `cmd` with the command that you wish to run (eg, the php one above)."}}
{"actor":{"display_login":"netniV"}}