{"action":"reopened","number":21,"pull_request":{"url":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21","id":94377280,"html_url":"https://github.com/DIRACGrid/Pilot/pull/21","diff_url":"https://github.com/DIRACGrid/Pilot/pull/21.diff","patch_url":"https://github.com/DIRACGrid/Pilot/pull/21.patch","issue_url":"https://api.github.com/repos/DIRACGrid/Pilot/issues/21","number":21,"state":"open","locked":false,"title":"Add NagiosProbes to pilotCommands.py","user":{"login":"Andrew-McNab-UK","id":4834885,"avatar_url":"https://avatars.githubusercontent.com/u/4834885?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrew-McNab-UK","html_url":"https://github.com/Andrew-McNab-UK","followers_url":"https://api.github.com/users/Andrew-McNab-UK/followers","following_url":"https://api.github.com/users/Andrew-McNab-UK/following{/other_user}","gists_url":"https://api.github.com/users/Andrew-McNab-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrew-McNab-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrew-McNab-UK/subscriptions","organizations_url":"https://api.github.com/users/Andrew-McNab-UK/orgs","repos_url":"https://api.github.com/users/Andrew-McNab-UK/repos","events_url":"https://api.github.com/users/Andrew-McNab-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Andrew-McNab-UK/received_events","type":"User","site_admin":false},"body":"This PR adds the ability to run scripts following the Nagios Plugin API https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/pluginapi.html within the Pilot. Scripts of this form are used as the worker node probes of the WLCG SAM and ETF monitoring of sites. The list of scripts can be set in Operations/SETUP/Pilot/NagiosProbes in the CS. The result of the probes is logged and can optionally be uploaded via HTTPS PUT to a URL given by NagiosPutURL in the CS. A corresponding consumer Nagios probe is in pre-production on the ETF services machines. For LHCb, the plan is use the Pilot Logging mechanism when this is ready to log the results of the probes and to provide ETF with a Nagios probe to query the pilot logging database somehow, via an intermediary service. This PR has been tested at 5 VM-based sites.","created_at":"2016-11-18T15:05:33Z","updated_at":"2016-12-01T15:34:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2000f42c55326332b989c64cfbd0111e71667da0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21/commits","review_comments_url":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21/comments","review_comment_url":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DIRACGrid/Pilot/issues/21/comments","statuses_url":"https://api.github.com/repos/DIRACGrid/Pilot/statuses/13a3a57b3727aa14ea839861a1074701c86d6d80","head":{"label":"Andrew-McNab-UK:master","ref":"master","sha":"13a3a57b3727aa14ea839861a1074701c86d6d80","user":{"login":"Andrew-McNab-UK","id":4834885,"avatar_url":"https://avatars.githubusercontent.com/u/4834885?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrew-McNab-UK","html_url":"https://github.com/Andrew-McNab-UK","followers_url":"https://api.github.com/users/Andrew-McNab-UK/followers","following_url":"https://api.github.com/users/Andrew-McNab-UK/following{/other_user}","gists_url":"https://api.github.com/users/Andrew-McNab-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrew-McNab-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrew-McNab-UK/subscriptions","organizations_url":"https://api.github.com/users/Andrew-McNab-UK/orgs","repos_url":"https://api.github.com/users/Andrew-McNab-UK/repos","events_url":"https://api.github.com/users/Andrew-McNab-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Andrew-McNab-UK/received_events","type":"User","site_admin":false},"repo":{"id":71836208,"name":"Pilot","full_name":"Andrew-McNab-UK/Pilot","owner":{"login":"Andrew-McNab-UK","id":4834885,"avatar_url":"https://avatars.githubusercontent.com/u/4834885?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrew-McNab-UK","html_url":"https://github.com/Andrew-McNab-UK","followers_url":"https://api.github.com/users/Andrew-McNab-UK/followers","following_url":"https://api.github.com/users/Andrew-McNab-UK/following{/other_user}","gists_url":"https://api.github.com/users/Andrew-McNab-UK/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrew-McNab-UK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrew-McNab-UK/subscriptions","organizations_url":"https://api.github.com/users/Andrew-McNab-UK/orgs","repos_url":"https://api.github.com/users/Andrew-McNab-UK/repos","events_url":"https://api.github.com/users/Andrew-McNab-UK/events{/privacy}","received_events_url":"https://api.github.com/users/Andrew-McNab-UK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Andrew-McNab-UK/Pilot","description":"DIRAC pilot. See diracgrid.org for more info","fork":true,"url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot","forks_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/forks","keys_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/teams","hooks_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/hooks","issue_events_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/issues/events{/number}","events_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/events","assignees_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/assignees{/user}","branches_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/branches{/branch}","tags_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/tags","blobs_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/statuses/{sha}","languages_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/languages","stargazers_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/stargazers","contributors_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/contributors","subscribers_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/subscribers","subscription_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/subscription","commits_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/contents/{+path}","compare_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/merges","archive_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/downloads","issues_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/issues{/number}","pulls_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/pulls{/number}","milestones_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/milestones{/number}","notifications_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/labels{/name}","releases_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/releases{/id}","deployments_url":"https://api.github.com/repos/Andrew-McNab-UK/Pilot/deployments","created_at":"2016-10-24T22:07:15Z","updated_at":"2016-10-24T22:07:16Z","pushed_at":"2016-12-01T15:33:12Z","git_url":"git://github.com/Andrew-McNab-UK/Pilot.git","ssh_url":"git@github.com:Andrew-McNab-UK/Pilot.git","clone_url":"https://github.com/Andrew-McNab-UK/Pilot.git","svn_url":"https://github.com/Andrew-McNab-UK/Pilot","homepage":null,"size":299,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"DIRACGrid:master","ref":"master","sha":"eeeb08d5605f3f8a8e38b5663aaec0a73881c31b","user":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"repo":{"id":57302203,"name":"Pilot","full_name":"DIRACGrid/Pilot","owner":{"login":"DIRACGrid","id":694842,"avatar_url":"https://avatars.githubusercontent.com/u/694842?v=3","gravatar_id":"","url":"https://api.github.com/users/DIRACGrid","html_url":"https://github.com/DIRACGrid","followers_url":"https://api.github.com/users/DIRACGrid/followers","following_url":"https://api.github.com/users/DIRACGrid/following{/other_user}","gists_url":"https://api.github.com/users/DIRACGrid/gists{/gist_id}","starred_url":"https://api.github.com/users/DIRACGrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DIRACGrid/subscriptions","organizations_url":"https://api.github.com/users/DIRACGrid/orgs","repos_url":"https://api.github.com/users/DIRACGrid/repos","events_url":"https://api.github.com/users/DIRACGrid/events{/privacy}","received_events_url":"https://api.github.com/users/DIRACGrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DIRACGrid/Pilot","description":"DIRAC pilot. See diracgrid.org for more info","fork":false,"url":"https://api.github.com/repos/DIRACGrid/Pilot","forks_url":"https://api.github.com/repos/DIRACGrid/Pilot/forks","keys_url":"https://api.github.com/repos/DIRACGrid/Pilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DIRACGrid/Pilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DIRACGrid/Pilot/teams","hooks_url":"https://api.github.com/repos/DIRACGrid/Pilot/hooks","issue_events_url":"https://api.github.com/repos/DIRACGrid/Pilot/issues/events{/number}","events_url":"https://api.github.com/repos/DIRACGrid/Pilot/events","assignees_url":"https://api.github.com/repos/DIRACGrid/Pilot/assignees{/user}","branches_url":"https://api.github.com/repos/DIRACGrid/Pilot/branches{/branch}","tags_url":"https://api.github.com/repos/DIRACGrid/Pilot/tags","blobs_url":"https://api.github.com/repos/DIRACGrid/Pilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DIRACGrid/Pilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DIRACGrid/Pilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/DIRACGrid/Pilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DIRACGrid/Pilot/statuses/{sha}","languages_url":"https://api.github.com/repos/DIRACGrid/Pilot/languages","stargazers_url":"https://api.github.com/repos/DIRACGrid/Pilot/stargazers","contributors_url":"https://api.github.com/repos/DIRACGrid/Pilot/contributors","subscribers_url":"https://api.github.com/repos/DIRACGrid/Pilot/subscribers","subscription_url":"https://api.github.com/repos/DIRACGrid/Pilot/subscription","commits_url":"https://api.github.com/repos/DIRACGrid/Pilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/DIRACGrid/Pilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/DIRACGrid/Pilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/DIRACGrid/Pilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/DIRACGrid/Pilot/contents/{+path}","compare_url":"https://api.github.com/repos/DIRACGrid/Pilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DIRACGrid/Pilot/merges","archive_url":"https://api.github.com/repos/DIRACGrid/Pilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DIRACGrid/Pilot/downloads","issues_url":"https://api.github.com/repos/DIRACGrid/Pilot/issues{/number}","pulls_url":"https://api.github.com/repos/DIRACGrid/Pilot/pulls{/number}","milestones_url":"https://api.github.com/repos/DIRACGrid/Pilot/milestones{/number}","notifications_url":"https://api.github.com/repos/DIRACGrid/Pilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DIRACGrid/Pilot/labels{/name}","releases_url":"https://api.github.com/repos/DIRACGrid/Pilot/releases{/id}","deployments_url":"https://api.github.com/repos/DIRACGrid/Pilot/deployments","created_at":"2016-04-28T13:00:41Z","updated_at":"2016-10-28T19:44:50Z","pushed_at":"2016-12-01T15:33:12Z","git_url":"git://github.com/DIRACGrid/Pilot.git","ssh_url":"git@github.com:DIRACGrid/Pilot.git","clone_url":"https://github.com/DIRACGrid/Pilot.git","svn_url":"https://github.com/DIRACGrid/Pilot","homepage":null,"size":250,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21"},"html":{"href":"https://github.com/DIRACGrid/Pilot/pull/21"},"issue":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/issues/21"},"comments":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/DIRACGrid/Pilot/statuses/13a3a57b3727aa14ea839861a1074701c86d6d80"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":9,"review_comments":5,"commits":11,"additions":221,"deletions":63,"changed_files":4}}
{"actor":{"display_login":"schitic"}}