bda5a4343e
fix: Fixed auto discovery for lldp not adding new hosts ( #6919 )
2017-06-29 19:29:33 +01:00
90aa485149
refactor: discovery code cleanups ( #6856 )
...
* Use foreach $key => value
* use get_port_by_ifIndex
get rid of the rest of the array_keys()
* improve hex_to_ip() function, add tests, use in more places
* Simplify can_skip_discovery logic
2017-06-22 21:08:20 +01:00
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
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
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
175db1deb5
fix lldp discovery
2016-10-20 20:36:18 -04:00
41a40bf6e6
fix copy paste error
2016-10-20 20:24:40 -04:00
46d2f578e7
added central function and updated
2016-10-18 03:06:03 +00:00
2aae3e6dff
add xdp exclude device filters
2016-10-17 00:38:47 -04:00
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
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
f019a28d8c
and a semicolon
2016-08-15 14:53:44 -06:00
71625f6aba
fix whitespace (spaces, not tabs)
2016-08-15 14:44:19 -06:00
c405c38eff
Check against the proper subtype variable, initialize variable
2016-08-15 11:52:21 -06:00
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
850c4a2f92
move pbn mibs to subdirectory
2016-08-07 11:40:37 +02:00
558dfb2344
Pretty up the discovery process output
2016-06-21 00:59:43 +01:00
a5d0b0a306
Changed syntax of if statement for readability
2016-05-26 20:43:56 +01:00
18eab48d7e
Correct array name
2016-05-25 20:13:56 +01:00
db5d074a52
Enable discovery of CDP neighbour by IP address
2016-05-25 09:52:28 +01:00
4bd3b12c44
revert to fetchRow
2015-12-13 21:00:39 +01:00
7237c84164
change fetchRow to fetchCell
2015-12-13 20:24:08 +01:00
29e708819a
closes #2614
2015-12-13 20:15:43 +01:00
8ed1a50657
Added parameter for sql query to check ifPhysAddress as thats what lldpRemPortId is
2015-12-09 20:37:15 +00:00
677a4f3f5f
Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..
2015-08-21 16:10:01 +02:00
009cfdf13f
ource of MIBs is www.pbnglobal.com
2015-08-17 20:44:52 +02:00
5fea54ca6a
add NMS-LLDP-MIB discovery for PBN devices
2015-08-17 18:12:49 +02:00
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
741742aa85
Added debug to discovery protocols + stop them running if not configured
2015-08-02 19:23:54 +00:00
d8693f05ae
Fix coding style part 2
2015-07-15 11:04:22 +02:00
adb036759e
Updated autodiscovery to use log_event better
2015-07-13 11:52:38 +01:00
ac0221f7e5
Update SQL query for ospf_nbrs lookup to use device_id
2015-05-20 13:41:23 +01:00
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
5a7988e2e4
chmod 0644 to php files not directly executed
2015-04-28 22:58:03 +02:00
c8a5a90364
Updated dbFetchRows
2015-04-11 15:45:17 +01:00
818cbcc731
Added ospf discovery
2015-04-11 15:01:14 +01:00
8f5d6e8a94
Added code to rediscovery links and include device ids
2015-03-28 14:05:40 +00:00
3483952dd7
Fixed more backticks missing
2014-06-24 02:43:05 +01:00
02792176fa
Updated most files to use dbFacile
2014-03-12 22:21:33 +00:00
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
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
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
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
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
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
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
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
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
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
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