{"action":"opened","issue":{"url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/issues/9","repository_url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp","labels_url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/issues/9/comments","events_url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/issues/9/events","html_url":"https://github.com/Metaswitch/clearwater-net-snmp/issues/9","id":197608980,"number":9,"title":"Log spam in syslog when SNMP queries are received","user":{"login":"rkd-msw","id":4363492,"avatar_url":"https://avatars.githubusercontent.com/u/4363492?v=3","gravatar_id":"","url":"https://api.github.com/users/rkd-msw","html_url":"https://github.com/rkd-msw","followers_url":"https://api.github.com/users/rkd-msw/followers","following_url":"https://api.github.com/users/rkd-msw/following{/other_user}","gists_url":"https://api.github.com/users/rkd-msw/gists{/gist_id}","starred_url":"https://api.github.com/users/rkd-msw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkd-msw/subscriptions","organizations_url":"https://api.github.com/users/rkd-msw/orgs","repos_url":"https://api.github.com/users/rkd-msw/repos","events_url":"https://api.github.com/users/rkd-msw/events{/privacy}","received_events_url":"https://api.github.com/users/rkd-msw/received_events","type":"User","site_admin":false},"labels":[{"id":269976242,"url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/labels/bug","name":"bug","color":"fc2929","default":true},{"id":486016969,"url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/labels/cat:system-test","name":"cat:system-test","color":"996633","default":false},{"id":492394761,"url":"https://api.github.com/repos/Metaswitch/clearwater-net-snmp/labels/critical","name":"critical","color":"ff0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-26T18:01:26Z","updated_at":"2016-12-26T18:01:26Z","closed_at":null,"body":"On a Homestead node that was receiving SNMP queries, I saw the following logs in /var/log/syslog:\r\n\r\n```\r\nDec 26 17:55:12 stress-homestead-1 snmpd[2353]: message repeated 49 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:17 stress-homestead-1 snmpd[2353]: message repeated 51 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:17 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:17 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:18 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:22 stress-homestead-1 snmpd[2353]: message repeated 49 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:22 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:22 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:22 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:27 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:27 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:27 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:27 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:32 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:32 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:32 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:32 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:37 stress-homestead-1 snmpd[2353]: message repeated 51 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:37 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:37 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:37 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:42 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:42 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:42 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:43 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:48 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:48 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:48 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:48 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:53 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:53 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:53 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:53 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:55:57 stress-homestead-1 snmpd[2353]: message repeated 49 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:55:57 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:55:57 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:55:57 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:56:01 stress-homestead-1 CRON[30980]: (root) CMD (/usr/lib/sysstat/sadc 1 1 /var/log/sysstat/clearwater-sa`date +%d` > /dev/null 2>&1)\r\nDec 26 17:56:03 stress-homestead-1 snmpd[2353]: message repeated 51 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:56:03 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:56:03 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:56:03 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:56:07 stress-homestead-1 snmpd[2353]: message repeated 49 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:56:07 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:56:07 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:56:07 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:56:12 stress-homestead-1 snmpd[2353]: message repeated 50 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:56:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:56:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:56:12 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\nDec 26 17:56:17 stress-homestead-1 snmpd[2353]: message repeated 51 times: [ Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161]\r\nDec 26 17:56:17 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56105->[127.0.0.1]:161\r\nDec 26 17:56:17 stress-homestead-1 snmpd[2353]: Connection from UDP: [127.0.0.1]:56039->[127.0.0.1]:161\r\nDec 26 17:56:17 stress-homestead-1 snmpd[2353]: Connection from UDP: [10.225.166.27]:55298->[10.225.166.40]:161\r\n```\r\n\r\nIt looks like a log is written to syslog every time it receives an SNMP request.\r\n\r\nThis makes it harder to look through /var/log/syslog to find ENT logs or other useful logs, and could result in the disk filling up sooner (or the syslog file being rotated sooner) and other useful diagnostics disappearing.\r\n\r\nI'm marking this as critical because we're expecting a lot more SNMP traffic in this release, so this relates to new features."}}
{"actor":{"display_login":"rkd-msw"}}