Commit Graph
104 Commits
Author SHA1 Message Date
arrmo 73113b888f Pull the latest from recent merge (corrections by Paul Gear) 2016-01-18 11:55:19 -06:00
arrmo 734f9bc34e Revert "Patch from Paul Gear, for Custom MIB data handling (non-integer)"
This reverts commit d3cddffdc7.
2016-01-17 17:06:30 -06: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
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 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
Paul Gear aa9dded019 Remove user-facing references to Observium
This eliminates nearly all of the user-facing references to Observium,
including in the names of temporary files and in the metadata of PDFs.  Many
of these may not be used any more, but I've adjusted them anyway.  These
changes should also make it easier to change the branding later if it is
needed.  There are a few references of which I still don't understand the
significance, so I've left them as-is for now.  The Unix agent in particular
is rather untidy.
2013-11-05 09:33:32 +10:00
Adam Amstrong d3796004ae accesspoint support (probably) from ethan sommer (#50)
git-svn-id: http://www.observium.org/svn/observer/trunk@3223 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-21 18:17:23 +00:00
Adam Amstrong 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
Tom Laermans 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