Commit Graph

60 Commits

Author SHA1 Message Date
David Bell
3512b19e2b feature: Update LLDP discovery to use IP address if discovery_by_ip is enabled #5872
* Update LLDP discovery to use IP address if discovery_by_ip is enabled

* Update as per laf's suggetions

* Fix indentation

* Updated with Laf's suggestion

* Add more debugging

* Trim MAC address

* Remove debug statements
2017-02-23 22:47:58 +00:00
Neil Lathwood
21898a3c29 Disco / Poller tidy up + Added display of module mem usage (#5778)
* tidyup + added mem usage for poller modules

* tidied up discovery modules

* fix sensors
2017-02-07 22:54:30 -06:00
towster
3fb65da339 fix: Fix for issue #5525
* Update discovery-protocols.inc.php

Allow invalid hostnames if discovery by IP is true

* Update AUTHORS.md

signing

* Update AUTHORS.md

signing

* CDP discovery by IP modification

CDP would not discover devices that had invalid DNS value for cdpCacheDeviceId - modified to accept 
Also exclude adding devices whose hostname matches the IP

* Update AUTHORS.md

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
2017-01-26 22:52:13 +00:00
NetworkNub
175db1deb5 fix lldp discovery 2016-10-20 20:36:18 -04:00
NetworkNub
41a40bf6e6 fix copy paste error 2016-10-20 20:24:40 -04:00
laf
46d2f578e7 added central function and updated 2016-10-18 03:06:03 +00:00
NetworkNub
2aae3e6dff add xdp exclude device filters 2016-10-17 00:38:47 -04:00
Tony Murray
edbb6ae0e3 refactor: Centralize MIB include directory specification (#4603)
* refactor: Centralize MIB include directory specification
The default is now:
```
$config['mib_dir'].'/mibdirname:'.$config['mib_dir']
```
This means we exclude OS mibs and only use ours  (we could prepend `+` if we want to include os mibs.
All snmp calls should only include the name of the subdirectory under the mibs directory.

* Remove d_echo from Proc
Fix snmpsim tests.
2016-09-28 14:19:28 +01:00
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
Eldon Koyle
f019a28d8c and a semicolon 2016-08-15 14:53:44 -06:00
Eldon Koyle
71625f6aba fix whitespace (spaces, not tabs) 2016-08-15 14:44:19 -06:00
Eldon Koyle
c405c38eff Check against the proper subtype variable, initialize variable 2016-08-15 11:52:21 -06:00
Eldon Koyle
34f503afb8 Use port instead of chassis ID for port matching
Code was improperly using chassis id for port matching.

Fixes #4069 .
2016-08-15 11:40:11 -06:00
vitalisator
850c4a2f92 move pbn mibs to subdirectory 2016-08-07 11:40:37 +02:00
laf
558dfb2344 Pretty up the discovery process output 2016-06-21 00:59:43 +01:00
Dave Bell
a5d0b0a306 Changed syntax of if statement for readability 2016-05-26 20:43:56 +01:00
Dave Bell
18eab48d7e Correct array name 2016-05-25 20:13:56 +01:00
Dave Bell
db5d074a52 Enable discovery of CDP neighbour by IP address 2016-05-25 09:52:28 +01:00
vitalisator
4bd3b12c44 revert to fetchRow 2015-12-13 21:00:39 +01:00
vitalisator
7237c84164 change fetchRow to fetchCell 2015-12-13 20:24:08 +01:00
vitalisator
29e708819a closes #2614 2015-12-13 20:15:43 +01:00
root
8ed1a50657 Added parameter for sql query to check ifPhysAddress as thats what lldpRemPortId is 2015-12-09 20:37:15 +00:00
Mark Schouten
677a4f3f5f Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir.. 2015-08-21 16:10:01 +02:00
vitalisator
009cfdf13f ource of MIBs is www.pbnglobal.com 2015-08-17 20:44:52 +02:00
vitalisator
5fea54ca6a add NMS-LLDP-MIB discovery for PBN devices 2015-08-17 18:12:49 +02:00
laf
de0f9ee697 PBN devices support CDP but does not output like Cisco so using a different function to grab the first array needed 2015-08-04 20:37:05 +00:00
laf
741742aa85 Added debug to discovery protocols + stop them running if not configured 2015-08-02 19:23:54 +00:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
adb036759e Updated autodiscovery to use log_event better 2015-07-13 11:52:38 +01:00
laf
ac0221f7e5 Update SQL query for ospf_nbrs lookup to use device_id 2015-05-20 13:41:23 +01:00
Paul Gear
ab66b453e4 Make OSPF & ARP autodiscovery independent of xDP autodiscovery
Both OSPF & ARP discovery use discover_new_device(), but it was checking
$config[autodiscovery][xdp] internally, meaning xDP had to be enabled for the other two to work.
2015-05-18 20:32:11 +10:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
laf
c8a5a90364 Updated dbFetchRows 2015-04-11 15:45:17 +01:00
laf
818cbcc731 Added ospf discovery 2015-04-11 15:01:14 +01:00
laf
8f5d6e8a94 Added code to rediscovery links and include device ids 2015-03-28 14:05:40 +00:00
laf
3483952dd7 Fixed more backticks missing 2014-06-24 02:43:05 +01:00
laf
02792176fa Updated most files to use dbFacile 2014-03-12 22:21:33 +00:00
Adam Amstrong
4db1454e92 move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-16 13:25:50 +00:00
Tom Laermans
3407022cb0 add loadbalancer device type, netscaler = loadbalancer, patch by mgm
git-svn-id: http://www.observium.org/svn/observer/trunk@2844 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-20 13:15:05 +00:00
Adam Amstrong
fe53a6b9ff move cdp detection to dbFacile, make dbFacile debugging output put \n before output
git-svn-id: http://www.observium.org/svn/observer/trunk@2791 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-16 14:42:37 +00:00
Tom Laermans
de3dda9c0b fix cdp discovery exclusions, adds is_valid_hostname function; get values from database if cache is not populated
git-svn-id: http://www.observium.org/svn/observer/trunk@2657 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-06 13:13:15 +00:00
Tom Laermans
a6c0719c29 fix cdp link discovery?
git-svn-id: http://www.observium.org/svn/observer/trunk@2656 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-06 09:46:51 +00:00
Tom Laermans
8364eb102b filter out weird entries from CDP link discovery, generated at least by hp procurve switches
git-svn-id: http://www.observium.org/svn/observer/trunk@2649 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-05 13:46:16 +00:00
Tom Laermans
649e8586e1 remove battery status from areca; code cleanup; insert into eventlog when device is XDP-discovered
git-svn-id: http://www.observium.org/svn/observer/trunk@2601 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-28 14:30:24 +00:00
Tom Laermans
dc0ebc7343 more code cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@2517 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:22:34 +00:00
Adam Amstrong
fb5d8b398f new funky discovery stuff (autodiscovery works now for discovery protocols)
git-svn-id: http://www.observium.org/svn/observer/trunk@2460 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 17:26:59 +00:00
Adam Amstrong
57e292907a fix globals in discovery modules
git-svn-id: http://www.observium.org/svn/observer/trunk@2234 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-04 09:13:32 +00:00
Tom Laermans
2b9cad302d add xen support to libvirt vm discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@2111 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-20 16:48:33 +00:00
Adam Amstrong
d038a24ffe update to map
git-svn-id: http://www.observium.org/svn/observer/trunk@2108 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-20 11:19:46 +00:00
Tom Laermans
f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00