{"action":"created","issue":{"url":"https://api.github.com/repos/librenms/librenms/issues/3949","repository_url":"https://api.github.com/repos/librenms/librenms","labels_url":"https://api.github.com/repos/librenms/librenms/issues/3949/labels{/name}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/3949/comments","events_url":"https://api.github.com/repos/librenms/librenms/issues/3949/events","html_url":"https://github.com/librenms/librenms/pull/3949","id":169258337,"number":3949,"title":"Add snmp polling capability for Memcached","user":{"login":"florianbeer","id":800047,"avatar_url":"https://avatars.githubusercontent.com/u/800047?v=3","gravatar_id":"","url":"https://api.github.com/users/florianbeer","html_url":"https://github.com/florianbeer","followers_url":"https://api.github.com/users/florianbeer/followers","following_url":"https://api.github.com/users/florianbeer/following{/other_user}","gists_url":"https://api.github.com/users/florianbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/florianbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianbeer/subscriptions","organizations_url":"https://api.github.com/users/florianbeer/orgs","repos_url":"https://api.github.com/users/florianbeer/repos","events_url":"https://api.github.com/users/florianbeer/events{/privacy}","received_events_url":"https://api.github.com/users/florianbeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T23:31:45Z","updated_at":"2016-08-03T23:37:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/librenms/librenms/pulls/3949","html_url":"https://github.com/librenms/librenms/pull/3949","diff_url":"https://github.com/librenms/librenms/pull/3949.diff","patch_url":"https://github.com/librenms/librenms/pull/3949.patch"},"body":"This is a sort of proof of concept of snmp's extend feature. It is here to show, that no check_mk is needed to run local scripts on remote servers, it's all available within snmp.  \r\nThe apache, nginx and mysql scripts in `/opt/librenms/includes/polling/application` already have snmp polling included, I just ported it to the memcache poller script.\r\n\r\nThe slightly daunting nested code beginning on line 30 is just a transformation to get memcached's strange status output into the required php array. It is basically a map/reduce for all of the available values using native php functions.\r\n\r\nTo activate memcache over snmp take the following steps:\r\n\r\n- Deploy the memcache status script (https://github.com/librenms/librenms-agent/blob/master/agent-local/memcached) on your remote server for example in `/usr/local/bin`\r\n- On your remote server edit the snmp daemon config (most probably in `/etc/snmp/snmpd.conf`) and add the following line at the bottom `extend memcached /usr/local/memcached`\r\n- Restart snmpd\r\n- On your LibreNMS webfrontend, find the device you just deployed the script to, click on edit and activate \"Memcached\" on the \"Applications\" tab."},"comment":{"url":"https://api.github.com/repos/librenms/librenms/issues/comments/237408173","html_url":"https://github.com/librenms/librenms/pull/3949#issuecomment-237408173","issue_url":"https://api.github.com/repos/librenms/librenms/issues/3949","id":237408173,"user":{"login":"LibreNMS-CI","id":12872343,"avatar_url":"https://avatars.githubusercontent.com/u/12872343?v=3","gravatar_id":"","url":"https://api.github.com/users/LibreNMS-CI","html_url":"https://github.com/LibreNMS-CI","followers_url":"https://api.github.com/users/LibreNMS-CI/followers","following_url":"https://api.github.com/users/LibreNMS-CI/following{/other_user}","gists_url":"https://api.github.com/users/LibreNMS-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreNMS-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreNMS-CI/subscriptions","organizations_url":"https://api.github.com/users/LibreNMS-CI/orgs","repos_url":"https://api.github.com/users/LibreNMS-CI/repos","events_url":"https://api.github.com/users/LibreNMS-CI/events{/privacy}","received_events_url":"https://api.github.com/users/LibreNMS-CI/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T23:37:52Z","updated_at":"2016-08-03T23:37:52Z","body":"Auto-Deploy finished, Test PR at http://3949.ci.librenms.org or https://3949.ci.librenms.org \n"}}
{"actor":{"display_login":"LibreNMS-CI"}}