{"action":"opened","number":2590,"pull_request":{"url":"https://api.github.com/repos/librenms/librenms/pulls/2590","id":53166586,"html_url":"https://github.com/librenms/librenms/pull/2590","diff_url":"https://github.com/librenms/librenms/pull/2590.diff","patch_url":"https://github.com/librenms/librenms/pull/2590.patch","issue_url":"https://api.github.com/repos/librenms/librenms/issues/2590","number":2590,"state":"open","locked":false,"title":"Added lastupdate column which will always use NOW() when doing a dbUpdate","user":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"body":"Would enable #2493 \r\n\r\nHandy for alerts as you can then see when a sensor stops responding. At present you can only alert when values change. If they stop updating you can now alert.\r\n\r\nSeems minimal impact running the query:\r\n\r\n```bash\r\nmysql> ALTER TABLE  `sensors` ADD  `lastupdate` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;\r\nQuery OK, 3443 rows affected (0.10 sec)\r\nRecords: 3443  Duplicates: 0  Warnings: 0\r\n```","created_at":"2015-12-09T19:33:49Z","updated_at":"2015-12-09T19:33:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/librenms/librenms/pulls/2590/commits","review_comments_url":"https://api.github.com/repos/librenms/librenms/pulls/2590/comments","review_comment_url":"https://api.github.com/repos/librenms/librenms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/2590/comments","statuses_url":"https://api.github.com/repos/librenms/librenms/statuses/c141efcd5e13f7a48f580008259d7aea0e11c9f6","head":{"label":"laf:issue-2493","ref":"issue-2493","sha":"c141efcd5e13f7a48f580008259d7aea0e11c9f6","user":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"repo":{"id":39854429,"name":"librenms","full_name":"laf/librenms","owner":{"login":"laf","id":3941142,"avatar_url":"https://avatars.githubusercontent.com/u/3941142?v=3","gravatar_id":"","url":"https://api.github.com/users/laf","html_url":"https://github.com/laf","followers_url":"https://api.github.com/users/laf/followers","following_url":"https://api.github.com/users/laf/following{/other_user}","gists_url":"https://api.github.com/users/laf/gists{/gist_id}","starred_url":"https://api.github.com/users/laf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laf/subscriptions","organizations_url":"https://api.github.com/users/laf/orgs","repos_url":"https://api.github.com/users/laf/repos","events_url":"https://api.github.com/users/laf/events{/privacy}","received_events_url":"https://api.github.com/users/laf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laf/librenms","description":"Community-based GPL-licensed network monitoring system","fork":true,"url":"https://api.github.com/repos/laf/librenms","forks_url":"https://api.github.com/repos/laf/librenms/forks","keys_url":"https://api.github.com/repos/laf/librenms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laf/librenms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laf/librenms/teams","hooks_url":"https://api.github.com/repos/laf/librenms/hooks","issue_events_url":"https://api.github.com/repos/laf/librenms/issues/events{/number}","events_url":"https://api.github.com/repos/laf/librenms/events","assignees_url":"https://api.github.com/repos/laf/librenms/assignees{/user}","branches_url":"https://api.github.com/repos/laf/librenms/branches{/branch}","tags_url":"https://api.github.com/repos/laf/librenms/tags","blobs_url":"https://api.github.com/repos/laf/librenms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laf/librenms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laf/librenms/git/refs{/sha}","trees_url":"https://api.github.com/repos/laf/librenms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laf/librenms/statuses/{sha}","languages_url":"https://api.github.com/repos/laf/librenms/languages","stargazers_url":"https://api.github.com/repos/laf/librenms/stargazers","contributors_url":"https://api.github.com/repos/laf/librenms/contributors","subscribers_url":"https://api.github.com/repos/laf/librenms/subscribers","subscription_url":"https://api.github.com/repos/laf/librenms/subscription","commits_url":"https://api.github.com/repos/laf/librenms/commits{/sha}","git_commits_url":"https://api.github.com/repos/laf/librenms/git/commits{/sha}","comments_url":"https://api.github.com/repos/laf/librenms/comments{/number}","issue_comment_url":"https://api.github.com/repos/laf/librenms/issues/comments{/number}","contents_url":"https://api.github.com/repos/laf/librenms/contents/{+path}","compare_url":"https://api.github.com/repos/laf/librenms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laf/librenms/merges","archive_url":"https://api.github.com/repos/laf/librenms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laf/librenms/downloads","issues_url":"https://api.github.com/repos/laf/librenms/issues{/number}","pulls_url":"https://api.github.com/repos/laf/librenms/pulls{/number}","milestones_url":"https://api.github.com/repos/laf/librenms/milestones{/number}","notifications_url":"https://api.github.com/repos/laf/librenms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laf/librenms/labels{/name}","releases_url":"https://api.github.com/repos/laf/librenms/releases{/id}","created_at":"2015-07-28T19:47:06Z","updated_at":"2015-10-27T20:57:28Z","pushed_at":"2015-12-09T19:31:43Z","git_url":"git://github.com/laf/librenms.git","ssh_url":"git@github.com:laf/librenms.git","clone_url":"https://github.com/laf/librenms.git","svn_url":"https://github.com/laf/librenms","homepage":"http://www.librenms.org/","size":66142,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"librenms:master","ref":"master","sha":"bd03371699b1f2451e49f1b710e489cd6b9711a7","user":{"login":"librenms","id":5791783,"avatar_url":"https://avatars.githubusercontent.com/u/5791783?v=3","gravatar_id":"","url":"https://api.github.com/users/librenms","html_url":"https://github.com/librenms","followers_url":"https://api.github.com/users/librenms/followers","following_url":"https://api.github.com/users/librenms/following{/other_user}","gists_url":"https://api.github.com/users/librenms/gists{/gist_id}","starred_url":"https://api.github.com/users/librenms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librenms/subscriptions","organizations_url":"https://api.github.com/users/librenms/orgs","repos_url":"https://api.github.com/users/librenms/repos","events_url":"https://api.github.com/users/librenms/events{/privacy}","received_events_url":"https://api.github.com/users/librenms/received_events","type":"Organization","site_admin":false},"repo":{"id":13914116,"name":"librenms","full_name":"librenms/librenms","owner":{"login":"librenms","id":5791783,"avatar_url":"https://avatars.githubusercontent.com/u/5791783?v=3","gravatar_id":"","url":"https://api.github.com/users/librenms","html_url":"https://github.com/librenms","followers_url":"https://api.github.com/users/librenms/followers","following_url":"https://api.github.com/users/librenms/following{/other_user}","gists_url":"https://api.github.com/users/librenms/gists{/gist_id}","starred_url":"https://api.github.com/users/librenms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librenms/subscriptions","organizations_url":"https://api.github.com/users/librenms/orgs","repos_url":"https://api.github.com/users/librenms/repos","events_url":"https://api.github.com/users/librenms/events{/privacy}","received_events_url":"https://api.github.com/users/librenms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/librenms/librenms","description":"Community-based GPL-licensed network monitoring system","fork":false,"url":"https://api.github.com/repos/librenms/librenms","forks_url":"https://api.github.com/repos/librenms/librenms/forks","keys_url":"https://api.github.com/repos/librenms/librenms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/librenms/librenms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/librenms/librenms/teams","hooks_url":"https://api.github.com/repos/librenms/librenms/hooks","issue_events_url":"https://api.github.com/repos/librenms/librenms/issues/events{/number}","events_url":"https://api.github.com/repos/librenms/librenms/events","assignees_url":"https://api.github.com/repos/librenms/librenms/assignees{/user}","branches_url":"https://api.github.com/repos/librenms/librenms/branches{/branch}","tags_url":"https://api.github.com/repos/librenms/librenms/tags","blobs_url":"https://api.github.com/repos/librenms/librenms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/librenms/librenms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/librenms/librenms/git/refs{/sha}","trees_url":"https://api.github.com/repos/librenms/librenms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/librenms/librenms/statuses/{sha}","languages_url":"https://api.github.com/repos/librenms/librenms/languages","stargazers_url":"https://api.github.com/repos/librenms/librenms/stargazers","contributors_url":"https://api.github.com/repos/librenms/librenms/contributors","subscribers_url":"https://api.github.com/repos/librenms/librenms/subscribers","subscription_url":"https://api.github.com/repos/librenms/librenms/subscription","commits_url":"https://api.github.com/repos/librenms/librenms/commits{/sha}","git_commits_url":"https://api.github.com/repos/librenms/librenms/git/commits{/sha}","comments_url":"https://api.github.com/repos/librenms/librenms/comments{/number}","issue_comment_url":"https://api.github.com/repos/librenms/librenms/issues/comments{/number}","contents_url":"https://api.github.com/repos/librenms/librenms/contents/{+path}","compare_url":"https://api.github.com/repos/librenms/librenms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/librenms/librenms/merges","archive_url":"https://api.github.com/repos/librenms/librenms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/librenms/librenms/downloads","issues_url":"https://api.github.com/repos/librenms/librenms/issues{/number}","pulls_url":"https://api.github.com/repos/librenms/librenms/pulls{/number}","milestones_url":"https://api.github.com/repos/librenms/librenms/milestones{/number}","notifications_url":"https://api.github.com/repos/librenms/librenms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/librenms/librenms/labels{/name}","releases_url":"https://api.github.com/repos/librenms/librenms/releases{/id}","created_at":"2013-10-28T01:37:13Z","updated_at":"2015-12-09T17:40:17Z","pushed_at":"2015-12-09T18:05:08Z","git_url":"git://github.com/librenms/librenms.git","ssh_url":"git@github.com:librenms/librenms.git","clone_url":"https://github.com/librenms/librenms.git","svn_url":"https://github.com/librenms/librenms","homepage":"http://www.librenms.org/","size":87980,"stargazers_count":279,"watchers_count":279,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":190,"mirror_url":null,"open_issues_count":258,"forks":190,"open_issues":258,"watchers":279,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/librenms/librenms/pulls/2590"},"html":{"href":"https://github.com/librenms/librenms/pull/2590"},"issue":{"href":"https://api.github.com/repos/librenms/librenms/issues/2590"},"comments":{"href":"https://api.github.com/repos/librenms/librenms/issues/2590/comments"},"review_comments":{"href":"https://api.github.com/repos/librenms/librenms/pulls/2590/comments"},"review_comment":{"href":"https://api.github.com/repos/librenms/librenms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/librenms/librenms/pulls/2590/commits"},"statuses":{"href":"https://api.github.com/repos/librenms/librenms/statuses/c141efcd5e13f7a48f580008259d7aea0e11c9f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}