{"action":"created","issue":{"url":"https://api.github.com/repos/Cacti/cacti/issues/1865","repository_url":"https://api.github.com/repos/Cacti/cacti","labels_url":"https://api.github.com/repos/Cacti/cacti/issues/1865/labels{/name}","comments_url":"https://api.github.com/repos/Cacti/cacti/issues/1865/comments","events_url":"https://api.github.com/repos/Cacti/cacti/issues/1865/events","html_url":"https://github.com/Cacti/cacti/issues/1865","id":353097007,"node_id":"MDU6SXNzdWUzNTMwOTcwMDc=","number":1865,"title":"Support udp6: prefix for hosts","user":{"login":"mhoran","id":5330,"node_id":"MDQ6VXNlcjUzMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5330?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoran","html_url":"https://github.com/mhoran","followers_url":"https://api.github.com/users/mhoran/followers","following_url":"https://api.github.com/users/mhoran/following{/other_user}","gists_url":"https://api.github.com/users/mhoran/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoran/subscriptions","organizations_url":"https://api.github.com/users/mhoran/orgs","repos_url":"https://api.github.com/users/mhoran/repos","events_url":"https://api.github.com/users/mhoran/events{/privacy}","received_events_url":"https://api.github.com/users/mhoran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-22T19:44:32Z","updated_at":"2018-08-23T07:27:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Breaking out from #1416.\r\n\r\nIt is not possible to specify that Cacti should prefer IPv6 over IPv4 when connecting to hosts. This may be desirable if a host has an SNMP daemon listening on IPv6 but not IPv4. The Net-SNMP package instructs users to prefix hosts with `udp6:` if it is desired to prefer IPv6.\r\n\r\nToday, specifying `udp6:` in the hostname field today results in the following error on the host page:\r\n```\r\n System SNMP error - SNMP::get(): Could not open snmp connection: Unknown host (udp6) (Invalid argument) \r\n```\r\n\r\nThe following error show up in my Cacti log:\r\n```\r\n2018/08/22 15:35:02 - CMDPHP Device[10] Device[brooklyn] ERROR: HOST EVENT: Device is DOWN Message: Device did not respond to SNMP\r\n```\r\n\r\nTrying to view any graph in real-time also fails, and all my graphs fail to update any longer.\r\n\r\nI'm using the following data templates:\r\n* Host MIB - CPU Utilization\r\n* Unix - Ping Host\r\n* Interface - Traffic\r\n* Host MIB - Hard Drive Space\r\n\r\nI've worked around this for the time being by removing the paths to all Net-SNMP tools from my Cacti configuration. This forces Cacti to use the PHP SNMP libraries, which prefer IPv6. However, this doesn't seem like the right thing to do long term, as this implicit configuration seems error prone.\r\n"},"comment":{"url":"https://api.github.com/repos/Cacti/cacti/issues/comments/415318889","html_url":"https://github.com/Cacti/cacti/issues/1865#issuecomment-415318889","issue_url":"https://api.github.com/repos/Cacti/cacti/issues/1865","id":415318889,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTMxODg4OQ==","user":{"login":"mhoran","id":5330,"node_id":"MDQ6VXNlcjUzMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/5330?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoran","html_url":"https://github.com/mhoran","followers_url":"https://api.github.com/users/mhoran/followers","following_url":"https://api.github.com/users/mhoran/following{/other_user}","gists_url":"https://api.github.com/users/mhoran/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoran/subscriptions","organizations_url":"https://api.github.com/users/mhoran/orgs","repos_url":"https://api.github.com/users/mhoran/repos","events_url":"https://api.github.com/users/mhoran/events{/privacy}","received_events_url":"https://api.github.com/users/mhoran/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T07:27:20Z","updated_at":"2018-08-23T07:27:20Z","author_association":"CONTRIBUTOR","body":"php-snmp is not an issue for me. It works fine -- better than Net-SNMP for my case because it prefers IPv6 out of the box.\r\n\r\nI'm happy to remove php-snmp to test, but I'm confused about what we're trying to achieve here. The conversation in https://github.com/Cacti/cacti/issues/1416#issuecomment-414183759 led me to open this issue. Was that not the right thing to do?\r\n\r\nI am also happy to test with spine, but that seems like an unnecessary complication for my installation. I just have a few personal systems that I'm monitoring, and a persistent daemon running on a resource strapped host seems a bit overkill.\r\n\r\nAnyway, just trying to figure out how to move forward here. I thought this was the best course of action, based on our previous discussion. The current behavior is a bit confusing, though I'll accept that it's also unique."}}
{"actor":{"display_login":"mhoran"}}