{"action":"created","issue":{"url":"https://api.github.com/repos/librenms/librenms/issues/4943","repository_url":"https://api.github.com/repos/librenms/librenms","labels_url":"https://api.github.com/repos/librenms/librenms/issues/4943/labels{/name}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/4943/comments","events_url":"https://api.github.com/repos/librenms/librenms/issues/4943/events","html_url":"https://github.com/librenms/librenms/issues/4943","id":187462360,"number":4943,"title":"OSPF data not being polled","user":{"login":"bmhughes","id":23269128,"avatar_url":"https://avatars.githubusercontent.com/u/23269128?v=3","gravatar_id":"","url":"https://api.github.com/users/bmhughes","html_url":"https://github.com/bmhughes","followers_url":"https://api.github.com/users/bmhughes/followers","following_url":"https://api.github.com/users/bmhughes/following{/other_user}","gists_url":"https://api.github.com/users/bmhughes/gists{/gist_id}","starred_url":"https://api.github.com/users/bmhughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmhughes/subscriptions","organizations_url":"https://api.github.com/users/bmhughes/orgs","repos_url":"https://api.github.com/users/bmhughes/repos","events_url":"https://api.github.com/users/bmhughes/events{/privacy}","received_events_url":"https://api.github.com/users/bmhughes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T23:57:49Z","updated_at":"2016-11-15T20:56:54Z","closed_at":"2016-11-15T20:56:54Z","body":"DO NOT DELETE THIS INFORMATION.\r\n\r\n> Please read this information carefully.\r\n\r\nGitHub issues is for feature requests or bugs, please do not post issues asking for help or how to do X, Y or Z. \r\nYou can use our irc channel ##librenms on freenode to ask questions or our [community site](https://community.librenms.org).\r\n\r\n- [x] Is your install up to date? [Updating your install](http://docs.librenms.org/General/Updating/)\r\n      Please do not submit an issue if your install is not up to date within the last 24 hours or on a stable monthly release.\r\n- [x] Please include all of the information between the `====================================` section of `./validate.php`.\r\n- [ ] If you would like us to add a new device then please provide the information asked for [here](http://docs.librenms.org/Support/FAQ/#faq20)\r\n- [x] Please provide as much detail as possible.\r\n\r\n\r\n**## validate.php output**\r\nComponent | Version\r\n--------- | -------\r\nLibreNMS  | `1840310f811653653f21622501c6b8d3b50594b7`\r\nDB Schema | 148\r\nPHP       | 5.4.16\r\nMySQL     | 5.5.50-MariaDB\r\nRRDTool   | 1.6.0\r\nSNMP      | NET-SNMP 5.7.2\r\n\r\nI hope someone may be able to help here as i've spent several hours looking at this and can't see why this isn't happening.\r\n\r\nI have a monitored Cisco 2851 and 3750 (both IOS15) that for whatever reason won't populate their OSPF data, the 2851 that was added some time ago did have OSPF data but it was old and also duplicated as if I had multiple OSPF processed running when I one have the one. The 3750 I added 24 hours ago has everything collected apart from the OSPF data. \r\n\r\nDeleting and recreating the 2851 produces the same result as the 3750, everything barring OSPF.\r\n\r\nWhen deleting the original 2851 host I ran in #4685 which had multiple foreign keys with delete restrict set which I assume the changes in #3805 should have deleted, upon manually removing the restrict constraints I was able to delete the host without issue. The new constraint with delete cascade was present and all the old device data does appear to have been removed.\r\n\r\nI also witnessed #4768 whereby I have a lot of entries for almost every device with nothing but zeroes present, i've cleaned them out as mentioned in the other issue and this hasn't made any difference.\r\n\r\nHaving looked at the OSPF polling code i'm not sure that actual SNMP polling is being perfored as a manual `snmpwalk` shows all data is present and avaliable. \r\n\r\nThe old 2851 OSPF data which was also duplicated, one set had a context of `null` and the other an empty string. I'm assuming this relates to the code below and seeing as I have no VRFs configured that at one point the OSPF polling module did indeed run.\r\n\r\n`if (key_exists('vrf_lite_cisco', $device) && (count($device['vrf_lite_cisco']) != 0)) {\r\n    $vrfs_lite_cisco = $device['vrf_lite_cisco'];\r\n} else {\r\n    $vrfs_lite_cisco = array(array('context_name' => null));\r\n}`\r\n\r\nI stood this box upon around 18 months ago and its been on nightly updates ever since then.\r\n\r\nSorry to bother but i've spent several hours looking at this tonight and I can't see any reason why the OSPF module won't poll but then again i'm no PHP dev. A manual poller.php run with just the OSPF module with `-d` and `-v` flags doesn't shed any light or throw any errors and neither does the poller log so i'm out of ideas.\r\n"},"comment":{"url":"https://api.github.com/repos/librenms/librenms/issues/comments/260765383","html_url":"https://github.com/librenms/librenms/issues/4943#issuecomment-260765383","issue_url":"https://api.github.com/repos/librenms/librenms/issues/4943","id":260765383,"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},"created_at":"2016-11-15T20:56:54Z","updated_at":"2016-11-15T20:56:54Z","body":"A fix was merged in, please comment back if this isn't fixed still."}}
{"actor":{"display_login":"laf"}}