{"action":"opened","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/1454","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/1454/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/1454/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/1454/events","html_url":"https://github.com/ytti/oxidized/issues/1454","id":342237419,"node_id":"MDU6SXNzdWUzNDIyMzc0MTk=","number":1454,"title":"Oxidized crash: Cannot assign requested address - bind(2)","user":{"login":"rongtler","id":21296059,"node_id":"MDQ6VXNlcjIxMjk2MDU5","avatar_url":"https://avatars0.githubusercontent.com/u/21296059?v=4","gravatar_id":"","url":"https://api.github.com/users/rongtler","html_url":"https://github.com/rongtler","followers_url":"https://api.github.com/users/rongtler/followers","following_url":"https://api.github.com/users/rongtler/following{/other_user}","gists_url":"https://api.github.com/users/rongtler/gists{/gist_id}","starred_url":"https://api.github.com/users/rongtler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rongtler/subscriptions","organizations_url":"https://api.github.com/users/rongtler/orgs","repos_url":"https://api.github.com/users/rongtler/repos","events_url":"https://api.github.com/users/rongtler/events{/privacy}","received_events_url":"https://api.github.com/users/rongtler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T09:00:02Z","updated_at":"2018-07-18T09:00:02Z","closed_at":null,"author_association":"NONE","body":"Hi guys, \r\nI'm trying to integrating Oxidized into LibreNMS. When I run `oxidized`, an error appear:\r\n\r\n```\r\n[oxidized@localhost ~]$ oxidized\r\nI, [2018-07-18T15:42:29.896795 #14638]  INFO -- : Oxidized starting, running as pid 14638\r\nI, [2018-07-18T15:42:29.898713 #14638]  INFO -- : lib/oxidized/nodes.rb: Loading nodes\r\nD, [2018-07-18T15:42:29.899018 #14638] DEBUG -- : resolving DNS for 192.168.10.11...\r\nD, [2018-07-18T15:42:29.899102 #14638] DEBUG -- : IPADDR \r\nD, [2018-07-18T15:42:29.899622 #14638] DEBUG -- : node.rb: resolving node key 'model', with passed global value of '' and node value 'ios'\r\nD, [2018-07-18T15:42:29.899678 #14638] DEBUG -- : node.rb: setting node key 'model' to value 'cisco' from global\r\nD, [2018-07-18T15:42:29.899738 #14638] DEBUG -- : node.rb: returning node key 'model' with value 'ios'\r\nD, [2018-07-18T15:42:29.899848 #14638] DEBUG -- : lib/oxidized/node.rb: Loading model \"ios\"\r\nD, [2018-07-18T15:42:29.902588 #14638] DEBUG -- : lib/oxidized/model/model.rb Added all to the commands list\r\nD, [2018-07-18T15:42:29.902683 #14638] DEBUG -- : lib/oxidized/model/model.rb Added secret to the commands list\r\nD, [2018-07-18T15:42:29.902729 #14638] DEBUG -- : lib/oxidized/model/model.rb Added show version to the commands list\r\nD, [2018-07-18T15:42:29.902766 #14638] DEBUG -- : lib/oxidized/model/model.rb Added show vtp status to the commands list\r\nD, [2018-07-18T15:42:29.902801 #14638] DEBUG -- : lib/oxidized/model/model.rb Added show inventory to the commands list\r\nD, [2018-07-18T15:42:29.902837 #14638] DEBUG -- : lib/oxidized/model/model.rb Added show running-config to the commands list\r\nD, [2018-07-18T15:42:29.903489 #14638] DEBUG -- : node.rb: resolving node key 'input', with passed global value of 'telnet, ssh' and node value ''\r\nD, [2018-07-18T15:42:29.903566 #14638] DEBUG -- : node.rb: returning node key 'input' with value 'telnet, ssh'\r\nD, [2018-07-18T15:42:30.223243 #14638] DEBUG -- : node.rb: resolving node key 'output', with passed global value of 'git' and node value ''\r\nD, [2018-07-18T15:42:30.223341 #14638] DEBUG -- : node.rb: returning node key 'output' with value 'git'\r\nD, [2018-07-18T15:42:30.454280 #14638] DEBUG -- : node.rb: resolving node key 'username', with passed global value of '' and node value ''\r\nD, [2018-07-18T15:42:30.454366 #14638] DEBUG -- : node.rb: setting node key 'username' to value 'username' from global\r\nD, [2018-07-18T15:42:30.454413 #14638] DEBUG -- : node.rb: returning node key 'username' with value 'username'\r\nD, [2018-07-18T15:42:30.454442 #14638] DEBUG -- : node.rb: resolving node key 'password', with passed global value of '' and node value ''\r\nD, [2018-07-18T15:42:30.454474 #14638] DEBUG -- : node.rb: setting node key 'password' to value 'password' from global\r\nD, [2018-07-18T15:42:30.454508 #14638] DEBUG -- : node.rb: returning node key 'password' with value 'password'\r\nI, [2018-07-18T15:42:30.454619 #14638]  INFO -- : lib/oxidized/nodes.rb: Loaded 1 nodes\r\nD, [2018-07-18T15:42:31.684188 #14638] DEBUG -- : lib/oxidized/core.rb: Starting the worker...\r\nD, [2018-07-18T15:42:31.684517 #14638] DEBUG -- : lib/oxidized/worker.rb: Jobs running: 0 of 1 - ended: 0 of 1\r\nD, [2018-07-18T15:42:31.684884 #14638] DEBUG -- : lib/oxidized/worker.rb: Added 192.168.10.11 to the job queue\r\nD, [2018-07-18T15:42:31.684973 #14638] DEBUG -- : lib/oxidized/worker.rb: 1 jobs running in parallel\r\nD, [2018-07-18T15:42:31.685163 #14638] DEBUG -- : lib/oxidized/job.rb: Starting fetching process for 192.168.10.11 at 2018-07-18 08:42:31 UTC\r\nPuma starting in single mode...\r\n* Version 3.11.4 (ruby 2.0.0-p648), codename: Love Song\r\n* Min threads: 0, max threads: 16\r\n* Environment: development\r\n* Listening on tcp://192.168.10.11:8888\r\nF, [2018-07-18T15:42:31.782547 #14638] FATAL -- : Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash\r\nCannot assign requested address - bind(2)\r\n/usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:270:in `initialize': Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:270:in `new'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:270:in `add_tcp_listener'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:105:in `block in parse'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:88:in `each'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/binder.rb:88:in `parse'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/runner.rb:144:in `load_and_bind'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/single.rb:87:in `run'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/puma/launcher.rb:184:in `run'\r\n\tfrom /usr/local/share/gems/gems/puma-3.11.4/lib/rack/handler/puma.rb:70:in `run'\r\n\tfrom /usr/local/share/gems/gems/oxidized-web-0.11.1/lib/oxidized/web.rb:29:in `block in run'\r\n```\r\n\r\nHere is my config file:\r\n```\r\n---\r\nusername: username\r\npassword: password\r\nmodel: cisco\r\ninterval: 3600\r\nuse_syslog: false\r\ndebug: true\r\nthreads: 30\r\ntimeout: 20\r\nretries: 3\r\nprompt: !ruby/regexp /^([\\w.@-]+[#>]\\s?)$/\r\nrest: 192.168.10.11:8888\r\nnext_adds_job: false\r\nvars: {}\r\ngroups: {}\r\nmodels: {}\r\npid: /home/oxidized/.config/oxidized/pid\r\ninput:\r\n  default: telnet, ssh\r\n  debug: true\r\noutput:\r\n  default: git\r\n  git:\r\n    user: sysadmin\r\n    email: o@example.com\r\n    repo: \"/home/oxidized/.config/oxidized/devices\"\r\nsource:\r\n  default: csv\r\n  csv:\r\n    file: /home/oxidized/.config/oxidized/router.db\r\n    delimiter: !ruby/regexp /:/\r\n    map:\r\n      name: 0\r\n      model: 1\r\n    gpg: false\r\nmodel_map:\r\n  cisco: ios\r\n  juniper: junos\r\n```\r\nAnd the router.db file:\r\n\r\n```\r\n#Switch1\r\n192.168.10.11:ios:username:password\r\n```\r\n\r\nAny idea to solve this problem? \r\nI'm also curious to know about the meaning of `rest: 192.168.10.11:8888` in the config file and how to config it properly. \r\nThanks!\r\n"}}
{"actor":{"display_login":"rongtler"}}