{"action":"closed","number":406,"pull_request":{"url":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406","id":64252405,"html_url":"https://github.com/pi-hole/pi-hole/pull/406","diff_url":"https://github.com/pi-hole/pi-hole/pull/406.diff","patch_url":"https://github.com/pi-hole/pi-hole/pull/406.patch","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/406","number":406,"state":"closed","locked":false,"title":"Pihole debug","user":{"login":"nate-ubiquisoft","id":12561926,"avatar_url":"https://avatars.githubusercontent.com/u/12561926?v=3","gravatar_id":"","url":"https://api.github.com/users/nate-ubiquisoft","html_url":"https://github.com/nate-ubiquisoft","followers_url":"https://api.github.com/users/nate-ubiquisoft/followers","following_url":"https://api.github.com/users/nate-ubiquisoft/following{/other_user}","gists_url":"https://api.github.com/users/nate-ubiquisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/nate-ubiquisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate-ubiquisoft/subscriptions","organizations_url":"https://api.github.com/users/nate-ubiquisoft/orgs","repos_url":"https://api.github.com/users/nate-ubiquisoft/repos","events_url":"https://api.github.com/users/nate-ubiquisoft/events{/privacy}","received_events_url":"https://api.github.com/users/nate-ubiquisoft/received_events","type":"User","site_admin":false},"body":"Added script piholeDebug.sh to generate a detailed logfile `/var/log/pihole_debug.log`\r\nIt logs the following items:\r\n\r\n- Ip adresses of the Pi\r\n- Checks access to local Gateway\r\n- Compares Whitelist.txt to gravity.list for any matches\r\n- Compares Blacklist.txt to gravity.list for any matches\r\n- Test nslookup\r\n - 2 nslookups, first through pihole as dns, second though 8.8.8.8\r\n - URL to lookup is chosen from gravity.list if there are any whitelist matches, otherwise use doubleclick.com as it is more globally available.\r\n- Log dnsmasq.conf without whitespace or comments\r\n- Log 01-pihole.conf without whitespace or comments\r\n- Log lighttpd.conf without whitespace or comments\r\n- Log gravity.list line count\r\n- Log `hostname` of this Pi\r\n- Log `/etc/hosts` file\r\n- Log Whitelist.txt\r\n- Log Blacklist.txt\r\n- `tail -f` with interruption instructions to log pihole.log until interruption event\r\n- Futureproof interrupt trap to execute functions after interruption before exiting script\r\n\r\nAll of this has been thoroughly tested on my end. Not much to \"break\" since this is just another script but will help drastically cut down time spent on support cases.\r\n\r\n\r\n@pihole/gravity\r\n","created_at":"2016-03-26T23:37:56Z","updated_at":"2016-03-28T17:24:08Z","closed_at":"2016-03-28T17:24:08Z","merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406/commits","review_comments_url":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406/comments","review_comment_url":"https://api.github.com/repos/pi-hole/pi-hole/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/406/comments","statuses_url":"https://api.github.com/repos/pi-hole/pi-hole/statuses/6145748bfb3e922068b51c4d97108cdd6cb825c8","head":{"label":"nate-ubiquisoft:PiholeDebug","ref":"PiholeDebug","sha":"6145748bfb3e922068b51c4d97108cdd6cb825c8","user":{"login":"nate-ubiquisoft","id":12561926,"avatar_url":"https://avatars.githubusercontent.com/u/12561926?v=3","gravatar_id":"","url":"https://api.github.com/users/nate-ubiquisoft","html_url":"https://github.com/nate-ubiquisoft","followers_url":"https://api.github.com/users/nate-ubiquisoft/followers","following_url":"https://api.github.com/users/nate-ubiquisoft/following{/other_user}","gists_url":"https://api.github.com/users/nate-ubiquisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/nate-ubiquisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate-ubiquisoft/subscriptions","organizations_url":"https://api.github.com/users/nate-ubiquisoft/orgs","repos_url":"https://api.github.com/users/nate-ubiquisoft/repos","events_url":"https://api.github.com/users/nate-ubiquisoft/events{/privacy}","received_events_url":"https://api.github.com/users/nate-ubiquisoft/received_events","type":"User","site_admin":false},"repo":{"id":54290629,"name":"pi-hole","full_name":"nate-ubiquisoft/pi-hole","owner":{"login":"nate-ubiquisoft","id":12561926,"avatar_url":"https://avatars.githubusercontent.com/u/12561926?v=3","gravatar_id":"","url":"https://api.github.com/users/nate-ubiquisoft","html_url":"https://github.com/nate-ubiquisoft","followers_url":"https://api.github.com/users/nate-ubiquisoft/followers","following_url":"https://api.github.com/users/nate-ubiquisoft/following{/other_user}","gists_url":"https://api.github.com/users/nate-ubiquisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/nate-ubiquisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nate-ubiquisoft/subscriptions","organizations_url":"https://api.github.com/users/nate-ubiquisoft/orgs","repos_url":"https://api.github.com/users/nate-ubiquisoft/repos","events_url":"https://api.github.com/users/nate-ubiquisoft/events{/privacy}","received_events_url":"https://api.github.com/users/nate-ubiquisoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nate-ubiquisoft/pi-hole","description":"A black hole for Internet advertisements (designed for Raspberry Pi)","fork":true,"url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole","forks_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/forks","keys_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/teams","hooks_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/hooks","issue_events_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/issues/events{/number}","events_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/events","assignees_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/assignees{/user}","branches_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/branches{/branch}","tags_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/tags","blobs_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/git/refs{/sha}","trees_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/statuses/{sha}","languages_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/languages","stargazers_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/stargazers","contributors_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/contributors","subscribers_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/subscribers","subscription_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/subscription","commits_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/commits{/sha}","git_commits_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/git/commits{/sha}","comments_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/comments{/number}","issue_comment_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/issues/comments{/number}","contents_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/contents/{+path}","compare_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/merges","archive_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/downloads","issues_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/issues{/number}","pulls_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/pulls{/number}","milestones_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/milestones{/number}","notifications_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/labels{/name}","releases_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/releases{/id}","deployments_url":"https://api.github.com/repos/nate-ubiquisoft/pi-hole/deployments","created_at":"2016-03-19T22:49:27Z","updated_at":"2016-03-19T22:49:28Z","pushed_at":"2016-03-28T17:23:56Z","git_url":"git://github.com/nate-ubiquisoft/pi-hole.git","ssh_url":"git@github.com:nate-ubiquisoft/pi-hole.git","clone_url":"https://github.com/nate-ubiquisoft/pi-hole.git","svn_url":"https://github.com/nate-ubiquisoft/pi-hole","homepage":"https://pi-hole.net","size":780,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pi-hole:development","ref":"development","sha":"26b7e7ec8efb280dc66db233a3df2b8312e5cb1e","user":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"repo":{"id":20619036,"name":"pi-hole","full_name":"pi-hole/pi-hole","owner":{"login":"pi-hole","id":16827203,"avatar_url":"https://avatars.githubusercontent.com/u/16827203?v=3","gravatar_id":"","url":"https://api.github.com/users/pi-hole","html_url":"https://github.com/pi-hole","followers_url":"https://api.github.com/users/pi-hole/followers","following_url":"https://api.github.com/users/pi-hole/following{/other_user}","gists_url":"https://api.github.com/users/pi-hole/gists{/gist_id}","starred_url":"https://api.github.com/users/pi-hole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pi-hole/subscriptions","organizations_url":"https://api.github.com/users/pi-hole/orgs","repos_url":"https://api.github.com/users/pi-hole/repos","events_url":"https://api.github.com/users/pi-hole/events{/privacy}","received_events_url":"https://api.github.com/users/pi-hole/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pi-hole/pi-hole","description":"A black hole for Internet advertisements (designed for Raspberry Pi)","fork":false,"url":"https://api.github.com/repos/pi-hole/pi-hole","forks_url":"https://api.github.com/repos/pi-hole/pi-hole/forks","keys_url":"https://api.github.com/repos/pi-hole/pi-hole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pi-hole/pi-hole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pi-hole/pi-hole/teams","hooks_url":"https://api.github.com/repos/pi-hole/pi-hole/hooks","issue_events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/events{/number}","events_url":"https://api.github.com/repos/pi-hole/pi-hole/events","assignees_url":"https://api.github.com/repos/pi-hole/pi-hole/assignees{/user}","branches_url":"https://api.github.com/repos/pi-hole/pi-hole/branches{/branch}","tags_url":"https://api.github.com/repos/pi-hole/pi-hole/tags","blobs_url":"https://api.github.com/repos/pi-hole/pi-hole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pi-hole/pi-hole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pi-hole/pi-hole/git/refs{/sha}","trees_url":"https://api.github.com/repos/pi-hole/pi-hole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pi-hole/pi-hole/statuses/{sha}","languages_url":"https://api.github.com/repos/pi-hole/pi-hole/languages","stargazers_url":"https://api.github.com/repos/pi-hole/pi-hole/stargazers","contributors_url":"https://api.github.com/repos/pi-hole/pi-hole/contributors","subscribers_url":"https://api.github.com/repos/pi-hole/pi-hole/subscribers","subscription_url":"https://api.github.com/repos/pi-hole/pi-hole/subscription","commits_url":"https://api.github.com/repos/pi-hole/pi-hole/commits{/sha}","git_commits_url":"https://api.github.com/repos/pi-hole/pi-hole/git/commits{/sha}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/comments{/number}","issue_comment_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments{/number}","contents_url":"https://api.github.com/repos/pi-hole/pi-hole/contents/{+path}","compare_url":"https://api.github.com/repos/pi-hole/pi-hole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pi-hole/pi-hole/merges","archive_url":"https://api.github.com/repos/pi-hole/pi-hole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pi-hole/pi-hole/downloads","issues_url":"https://api.github.com/repos/pi-hole/pi-hole/issues{/number}","pulls_url":"https://api.github.com/repos/pi-hole/pi-hole/pulls{/number}","milestones_url":"https://api.github.com/repos/pi-hole/pi-hole/milestones{/number}","notifications_url":"https://api.github.com/repos/pi-hole/pi-hole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/labels{/name}","releases_url":"https://api.github.com/repos/pi-hole/pi-hole/releases{/id}","deployments_url":"https://api.github.com/repos/pi-hole/pi-hole/deployments","created_at":"2014-06-08T15:02:55Z","updated_at":"2016-03-28T16:52:22Z","pushed_at":"2016-03-28T15:24:24Z","git_url":"git://github.com/pi-hole/pi-hole.git","ssh_url":"git@github.com:pi-hole/pi-hole.git","clone_url":"https://github.com/pi-hole/pi-hole.git","svn_url":"https://github.com/pi-hole/pi-hole","homepage":"https://pi-hole.net","size":1001,"stargazers_count":892,"watchers_count":892,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":58,"forks":120,"open_issues":58,"watchers":892,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406"},"html":{"href":"https://github.com/pi-hole/pi-hole/pull/406"},"issue":{"href":"https://api.github.com/repos/pi-hole/pi-hole/issues/406"},"comments":{"href":"https://api.github.com/repos/pi-hole/pi-hole/issues/406/comments"},"review_comments":{"href":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406/comments"},"review_comment":{"href":"https://api.github.com/repos/pi-hole/pi-hole/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pi-hole/pi-hole/pulls/406/commits"},"statuses":{"href":"https://api.github.com/repos/pi-hole/pi-hole/statuses/6145748bfb3e922068b51c4d97108cdd6cb825c8"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":11,"additions":295,"deletions":2,"changed_files":6}}