Commit Graph

145 Commits

Author SHA1 Message Date
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
01e4ac3d58 newdevice: Added additional sensor support for Huawei VRP #4279 2017-01-19 16:42:57 +00:00
7215059fd0 fix: Re-order snmp mib dirs to load mibs correctly #5405 (#5415)
* fix: Re-order snmp mib dirs to load mibs correctly #5405

* Remove unneeded code
2017-01-12 23:46:09 -06:00
5c156e7e01 fix: Remove usage of -CI, it is not allowed for snmpbulkwalk #5164 2016-12-20 16:58:20 +00:00
db240cb4eb refactor: Collection and output of db and snmp stats (#5049) 2016-11-23 06:57:19 +00:00
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
d389069e2e refactor: Tidy up mibs V-Z (#4979) 2016-11-17 15:43:31 -06:00
d9f4096821 Start of cleaning up mibs (#4806)
refactor: Start of cleaning up mibs
2016-11-09 18:23:27 -06:00
b89ebabecc Feature: Added support for global max repeaters for snmp (#4880)
* Feature: Added support for global max repeaters for snmp

* added phpdoc
2016-10-28 06:02:09 +00:00
6c324cd03e refactor: Improve sensors polling for performance increase (#4725)
refactor: Improve sensors polling for performance increase
2016-10-11 19:34:09 +03:00
c0d7ad44b0 Revert "refactor: snmp cleanup" (#4746) 2016-10-07 09:26:10 +01:00
07e8e9f2be refactor: snmp cleanup (#4683) 2016-10-06 21:20:11 +01:00
59da343f7d changed from isset to !empty 2016-10-03 18:23:59 +01:00
032bfe0745 Fixes issue-4677 2016-09-30 15:08:11 +02: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
c31b3c0301 feature: use snmpsim for testing
fallback feature so we don't have to run snmpsim on devel computers, should be adequate for now
./scripts/pre-commit.php -u -snmpsim will start an snmpsimd.py process automatically
2016-09-23 14:57:31 -05:00
7371c6e1b8 feature: improved readability for snmp debug output
It now matches RRD and SQL output format, the color is cyan
Slightly better ip removal from debug output, only removes valid IPs now.
2016-09-21 17:15:28 -05:00
bb318fdcad refactor: consolidate snmpcmd generation
I needed to generate an snmpcmd for an upcoming PR, so I figured I'd save a little code duplication.
2016-09-18 00:08:14 -05:00
0351b54fb8 webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
2016-09-14 10:05:49 +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
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