b18c41b1a9
refactor: Use the Config class includes/discovery ( #7299 )
...
* refactor: use the Config class includes/discovery
* fix issue with $config variable not accessible in include-dir.inc.php
* improved whitespace
* Tidy up discovery_by_ip
2017-09-11 21:26:41 +01:00
8d1b7d5493
fix: fix marking invalid ports as deleted in discovery ( #6665 )
...
There seem to be other issues in this file, such as $ports_l is never defined...
2017-05-17 22:25:47 +01:00
cc51a68f85
feature: Optional partial port polling ( #5805 )
...
* feature: Added ability to switch port polling mode
* update, speed things up slightly by walking certain tables
* more fixes
* updates
* updates
* update to exclude ports that are down
* wrong variable used
* update to set previous port status when null
* small update to port disco
2017-02-14 17:26:07 -06: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
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
57650e4ffc
Remove nfs requirement for distributed poller (with rrdtool 1.5+)
...
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
d53619ab4f
Fix database update queries in discovery.php.
...
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-06-14 13:13:24 +02:00
2fd9879278
Fix database query for known ports in discovery.
...
While adding configurable port mapping in 2c9df26bbf22af94c354bcf445b55a56eaece81a
I broke the query for known ports from the database so discovery.php considered
ALL ports to be new every time it ran. Whoops.
This went undetected for so long as there is a unique constraint on the ports
table (device_id+ifIndex) which prevented ports from being added again and
again.
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-06-14 13:12:12 +02:00
2c9df26bbf
Update discovery and poller to allow stable interface mapping by ifName/ifDescr based port mapping.
...
By default libreNMS used the ifIndex to associate ports just found via SNMP
with ports discoverd/polled before and stored in the database. On Linux boxes
this is a problem as ifIndexes are rather likely to be unstable between reboots
or (re)configuration of tunnel interfaces (think: GRE/OpenVPN/Tinc/...), bridges,
Vlan interfaces, Bonding interfaces, etc.
This patch adds a »port association mode« configuration option per device which
allows to map discovered and known ports by their ifIndex, ifName, ifDescr, or
maybe other means in the future.
The default port association mode still is ifIndex for compatibility reasons.
As port RRD files were stored by their ifIndex before, they are now identified
by their unique and stable port_id to ensure a stable and unique mapping and
allow future port association modes to be added without requireing any further
internal changes. Existing RRD files are renamend accordingly in discovery and
poller tools to ensure stability of port associations in both modules as we
don't know which might run first after an update.
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-01-26 13:49:30 +01:00
677a4f3f5f
Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..
2015-08-21 16:10:01 +02:00
d8693f05ae
Fix coding style part 2
2015-07-15 11:04:22 +02:00
5a7988e2e4
chmod 0644 to php files not directly executed
2015-04-28 22:58:03 +02:00
b273e04241
/// -> //
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
cacf913a55
# -> / for phpdoc
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +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
4985943822
syntaxer run
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3185 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-15 15:18:57 +00:00
b891b6f4f2
ports poller update (fix not adding filtered interfaces)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3173 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 18:08:48 +00:00
606751f6fd
port poller
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3172 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 18:01:28 +00:00
9af156eb95
ports discovery updates
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3171 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 17:43:30 +00:00
f768558e7e
fix auth for graphs to allow cidr filter. fix schema 006
...
git-svn-id: http://www.observium.org/svn/observer/trunk@3169 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 15:21:42 +00:00
a433ecf05a
kankerhoer
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2948 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-03 10:36:26 +00:00
a369c442eb
syntaxer run
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
5033e81e87
don't discover ports that shouldn't be discovered!
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2347 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-18 23:08:45 +00:00
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
bb4746d4d0
cleanups, small fixes and remove test-*php from the root
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1998 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-31 10:51:02 +00:00
9fd77cd884
allow disabling of alerting per device, allow override of syscontact, minor cleanups
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1995 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 16:28:24 +00:00
463b0753a6
fix blocking dsl0 ports (sl0!) and tidied some other stuff up
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1993 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 11:25:39 +00:00
340c71b2e7
more code cleanups, modify renamehost to also take a source parameter so we can build a renamehost function into the web gui some day
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1980 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-27 10:21:19 +00:00
7454791074
code standard/cleanups
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1978 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 19:12:24 +00:00
80f6b2dcc2
VMWARE SUPPORT!! :)
...
- Support for VMware hosts AND Virtual Machines.
- VMware MIB files added.
- SVN property ignore on MIB .index files.
git-svn-id: http://www.observium.org/svn/observer/trunk@1976 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 17:16:09 +00:00
31b2092041
more trailing spaces hunted down and shot, then shot again
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1880 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 17:53:20 +00:00
96cedc5ed9
fix ASA port discovery (fuck you, cisco, just fuck you)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1844 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 13:49:11 +00:00
3a4e92e246
more cleanups and reindents, still a lot to come
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1836 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 09:45:00 +00:00
67124e84fb
Ignore empty interfaces (for some reason every Active Directory entry gets reports as an interface)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1773 61d68cd4-352d-0410-923a-c4978735b2b8
2011-01-26 10:30:04 +00:00
69a4a0f63c
fix interface descriptions, at least on windows - patch by Geert
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1772 61d68cd4-352d-0410-923a-c4978735b2b8
2011-01-25 11:42:47 +00:00
588491a1f1
fix bits_trio (this should be a specific type for its purpose, i think)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1680 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-13 14:23:05 +00:00
c5f851a00f
some code formatting improvements from sovern
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1300 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-05 19:21:36 +00:00
34a17ee537
implement bad_if_regexp regular expression filter for port ifDescr (clean and allow for portName and ifName too?) (thanks thevoke!)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1069 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-22 23:22:11 +00:00
caab3ee1c4
rename discovery include scripts and update discovery.php
...
git-svn-id: http://www.observium.org/svn/observer/trunk@890 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-20 17:29:47 +00:00