Commit Graph

108 Commits

Author SHA1 Message Date
Daniel Preussker 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
Neil Lathwood 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
Neil Lathwood 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
Paul Gear fc6a4b7076 Include shortname in all cases 2016-01-17 14:05:37 +10:00
Paul Gear 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
Paul Gear ee75253310 Build in automated RRD file renaming 2016-01-15 21:49:58 +10:00
Paul Gear a8e0a8b078 Add appropriate tags for MIB-based polling 2016-01-15 21:49:57 +10:00
Paul Gear 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
Paul Gear 31bb1f6ff4 MIB-based polling: attempt to support more SNMP counter types 2016-01-14 13:38:10 +10:00
Paul Gear 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
Paul Gear 2244a5f31d Fix issues flagged by scrutinizer 2016-01-02 07:10:43 +10:00
Paul Gear 2558aa9bda Fix up some funky formatting; add/tidy end-of-function markers to reduce diff churn 2016-01-02 07:10:43 +10:00
Paul Gear 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
Paul Gear 1b0614ad87 Overhaul documentation for MIB-based poller 2016-01-02 07:10:42 +10:00
Paul Gear 953ea3fa15 Add device OID storage and display 2016-01-02 07:10:42 +10:00
Paul Gear 5d53761727 Trivial cleanups 2016-01-02 07:10:42 +10:00
Paul Gear 161e2b82e1 Include copyright 2016-01-02 07:10:42 +10:00
Paul Gear 7619a340d6 Split polling & discovery of MIB-based poller 2016-01-02 07:10:42 +10:00
Paul Gear 4d6e671e71 Add code to populate mibdefs table; note about moving some items to discovery 2016-01-02 07:10:41 +10:00
Paul Gear 9b6496b404 Add debugging of MIB objects again 2016-01-02 07:10:41 +10:00
Paul Gear 7752bc0494 Move to fixed DS names in MIB-based polling; add script to convert RRDs 2016-01-02 07:10:40 +10:00
Mike Rostermund 613050e117 Remove old comment to kickstart scrut 2015-10-14 21:31:03 +02:00
Mike Rostermund f064061b1c Fixes issue where snmp_get would not return the value 0 2015-10-14 20:33:59 +02:00
Daniel Preussker 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
Mike Rostermund 5369112d48 Fix some scrutinizer coding style issues 2015-08-04 18:36:03 +02:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Job Snijders 77486d3c98 Remove duplicate code, compress code, adhere to style guide 2015-07-08 20:28:28 +02:00
Job Snijders fa9fb61d85 gg=G on on snmp.inc.php for readability 2015-07-08 14:24:59 +02:00
Paul Gear 884b98e250 Another scrutinizer fix 2015-06-16 09:01:13 +10:00
Paul Gear 0eb3e69167 Fix Scrutinizer issues 2015-06-16 08:42:05 +10:00
Paul Gear 55496bf943 Add example referred to in documentation 2015-06-16 08:27:58 +10:00
Paul Gear 0e218ef22c Move MIB poller debugging into SNMP functions 2015-06-16 08:27:58 +10:00
Paul Gear da346c3a35 Tidy up debug vs. non-debug output 2015-06-16 08:27:57 +10:00
Paul Gear a2baae3ccf Move convenience functions into common; d_echo no longer adds "\n" automatically 2015-06-16 08:27:57 +10:00
Paul Gear 942e5047e5 Graph sections must be lower case 2015-06-16 08:27:57 +10:00
Paul Gear 984ec0d060 Save MIB graphs in database, tag devices for graphing 2015-06-16 08:27:56 +10:00
Paul Gear 1ddaa5c288 Minor fixup to MIB polling 2015-06-16 08:27:56 +10:00
Paul Gear 4af7dd8225 First cut at working poller for MIBs 2015-06-16 08:27:56 +10:00
Paul Gear f27de0b8ff Remove duplicate code 2015-06-16 08:27:55 +10:00
Paul Gear d969ef679b First cut at MIB-based discovery; not efficient 2015-06-16 08:13:08 +10:00
Paul Gear 874dc5ede5 Start at generic MIB parsing 2015-06-16 08:12:28 +10:00
Paul Gear 217202f18a Reduce duplication of mibdir code 2015-06-13 09:51:22 +10:00
Mickael Marchand 8705dfa033 Fix ifAlias parsing when the description contains "="
It might also fix a few other parsing issues involving "=" in other snmp fields
2015-05-11 12:25:59 +02:00
laf 192d1be102 Added a hard limit for explode on oid 2015-03-31 21:18:43 +01:00
Neil Lathwood a4d3c8709d Fixed the scrut coding style issues 2015-02-22 16:45:40 +00:00
Paul Gear 45d8325e97 Revert "Merge pull request #160 from laf/issue-159"
This reverts commit 59dfe4eee2, reversing
changes made to e6fa7d433d.

This commit does not constitute agreement with the claim of copyright violation made by Adam Armstrong at
https://github.com/librenms/librenms/commit/59dfe4eee24630649a1b96b82cb55fb29e07a0b0
2014-04-28 20:10:36 +10:00
laf fe100a499a Fix for Cisco kit where match prefix is switched off. 2014-03-05 15:02:04 +00:00