Commit Graph

125 Commits

Author SHA1 Message Date
laf
d56ff8b87f More updates for junos bgp polling 2016-08-03 16:49:41 +01:00
laf
f02ffce87c Merge branch 'master' of github.com:laf/librenms into issue-3877 2016-08-02 22:52:15 +01:00
laf
e54881df14 Improved junos BGP code + WebUI 2016-08-02 22:28:57 +01:00
laf
2d60ca9197 Updated multi_oid cache function 2016-08-01 15:01:52 +01:00
laf
d722bb6943 Update use of max repeaters to save mysql queries 2016-07-30 15:11:29 +01:00
laf
8239109f78 Added support for setting max-repeaters per device 2016-07-06 14:45:23 +01:00
4fa4dc2723 Use debug echo on register_mib to prevent interfering with API 2016-06-29 07:57:54 +10:00
692c29cbd8 Merge pull request #3576 from Exa-Omicron/master
Enabling "Random access" lookups fixes "MIB: Could not find all::enterprises.xxx" error
2016-06-27 11:04:03 +01:00
64c55acecd Update snmp.inc.php
Catching BSD 'End of MIB' messages and stripping it out.
2016-06-23 13:19:12 +02:00
b6e76f911e Enabling "Random access" lookups for snmp_translate fixes the "MIB: Could not find all::enterprises.xxxx" error 2016-05-31 20:02:09 +02:00
7a00d913a1 update branch 2016-02-06 06:52:21 +01:00
4ff92481e4 - Quote the SNMP v2c community, v3 is already quoted.
- Change the snmpver to double quotes for consistency.
2016-02-04 16:38:07 +10:00
6de58f55df merging 2016-02-02 12:58:05 +01:00
7c79d62baf Merge pull request #2840 from adaniels21487/issue-1851
Cisco CBQOS
2016-01-29 10:21:34 +00:00
0ac8f584b2 discoverying and polling VRF 2016-01-26 15:22:49 +01:00
e54e22b56e - Changed upper case variables to lower case. 2016-01-26 23:31:07 +10:00
3e97875d77 Merge pull request #2787 from laf/anonymous-data
Added verbose debugging, normal debugging will now try and mask certain information
2016-01-26 08:09:05 +00:00
abf2fc0ba5 Merge pull request #2740 from paulgear/unified-data-storage-rrd-influx
First cut at unified data storage for rrdtool & influxdb
2016-01-21 23:31:09 +00:00
bf37312bdc Cisco CBQOS
Implements the CISCO-CLASS-BASED-QOS-MIB to retrieve QOS counters from Cisco devices.
Policy and Class-map details are collected and stored in the database.
Details are presented on a new "CBQoS" tab of the interface that the policy is applied to.
Includes a policy selector that allows you to select which policy-map to show graphs for.

Each class-map has its own rrd file, in which 3 metrics are stored: Bytes, QoS Drops, Buffer Drops.
This can produce a LOT of rrd files.

As an example:
A Cisco 4500 series switch, running MQC on 200 ports. Each port has a common 5 class queueing policy applied, this creates 1000 (5 x 200) RRD's.

Because of this I have currently set:
```
$config['discovery_modules']['cisco-cbqos']    = 0;
```

Includes function snmpwalk_array_num, which performs a numeric SNMPWalk and returns an array containing $count indexes
One Index:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27.18']['655360'] = 0
Two Indexes:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27']['18']['655360'] = 0
And so on...
2016-01-21 21:18:14 +10:00
5cfc5fb328 Merge pull request #2785 from paulgear/mib-based-polling-fix-shortname
MIB-based-polling: Fix short name generation
2016-01-17 14:49:04 +00:00
laf
0558275414 Added verbose debugging, normal debugging will now try and mask certain information 2016-01-17 14:39:17 +00:00
fc6a4b7076 Include shortname in all cases 2016-01-17 14:05:37 +10:00
9e9f5f787f Fix short name generation
Should only replace first occurrence of prefix in the string.
Also only strips the prefix if it saves more than 2 characters.

This fixes a bug where, e.g., 'casnDisconnect' would be shortened to 'asnDisonnet'.
2016-01-17 13:57:34 +10:00
ee75253310 Build in automated RRD file renaming 2016-01-15 21:49:58 +10:00
a8e0a8b078 Add appropriate tags for MIB-based polling 2016-01-15 21:49:57 +10:00
3831ad3f45 First cut at unified data storage for rrdtool & influxdb
As a side-effect, this adds InfluxDB support for MIB-based polling.
2016-01-15 21:49:57 +10:00
31bb1f6ff4 MIB-based polling: attempt to support more SNMP counter types 2016-01-14 13:38:10 +10:00
f672a8e12e is_mib_poller_enabled() needs to be in common.php for code paths that don't use includes/snmp.inc.php (e.g. graph.php) 2016-01-07 09:38:32 +10:00
2244a5f31d Fix issues flagged by scrutinizer 2016-01-02 07:10:43 +10:00
2558aa9bda Fix up some funky formatting; add/tidy end-of-function markers to reduce diff churn 2016-01-02 07:10:43 +10:00
8a20ad4896 Move rrd handling functions into includes/rrdtool.inc.php; add backwards compatibility with file naming in old version of MIB-based polling 2016-01-02 07:10:42 +10:00
1b0614ad87 Overhaul documentation for MIB-based poller 2016-01-02 07:10:42 +10:00
953ea3fa15 Add device OID storage and display 2016-01-02 07:10:42 +10:00
5d53761727 Trivial cleanups 2016-01-02 07:10:42 +10:00
161e2b82e1 Include copyright 2016-01-02 07:10:42 +10:00
7619a340d6 Split polling & discovery of MIB-based poller 2016-01-02 07:10:42 +10:00
4d6e671e71 Add code to populate mibdefs table; note about moving some items to discovery 2016-01-02 07:10:41 +10:00
9b6496b404 Add debugging of MIB objects again 2016-01-02 07:10:41 +10:00
7752bc0494 Move to fixed DS names in MIB-based polling; add script to convert RRDs 2016-01-02 07:10:40 +10:00
613050e117 Remove old comment to kickstart scrut 2015-10-14 21:31:03 +02:00
f064061b1c Fixes issue where snmp_get would not return the value 0 2015-10-14 20:33:59 +02:00
ba7bf5f60b Merge pull request #1715 from laf/rrdoptions
Updated rrdtool_update() to use new array format
2015-09-22 12:15:59 +00:00
f0o
5e858b63e5 Pass snmp-auth parameters enclosed by single-quotes 2015-08-20 19:19:15 +00:00
laf
987634e463 Updated rrdtool_update() to use new array format 2015-08-18 16:26:55 +00:00
5369112d48 Fix some scrutinizer coding style issues 2015-08-04 18:36:03 +02:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
77486d3c98 Remove duplicate code, compress code, adhere to style guide 2015-07-08 20:28:28 +02:00
fa9fb61d85 gg=G on on snmp.inc.php for readability 2015-07-08 14:24:59 +02:00
884b98e250 Another scrutinizer fix 2015-06-16 09:01:13 +10:00
0eb3e69167 Fix Scrutinizer issues 2015-06-16 08:42:05 +10:00