Commit Graph

69 Commits

Author SHA1 Message Date
Bennett Blodinger
07574b27d8 Move to Font Awesome
Keeps the look more in line with the navigation bar icons.
In the future with Bootstrap 4, Glyphicons will not be included, so this
starts the transistions away.
2016-09-22 10:44:17 -04:00
Tony Murray
b8e9b2d917 Implement an autoloader (#4140)
* Implement an autoloader

When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings

This reduces the file includes needed and only loads classes when needed.

* Add teh autoloader to graph.php

* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
2016-08-21 14:07:14 +01:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
Neil Lathwood
e09f5c552c Merge pull request #3800 from murrant/rrd-create-remote
RRD Cleanup: centralize rrd_exists check, utilize data_update() and rrd_name()
2016-08-10 18:44:45 +01:00
laf
08c77862b9 Renamed variable for sql query 2016-08-02 23:38:08 +01:00
laf
e54881df14 Improved junos BGP code + WebUI 2016-08-02 22:28:57 +01:00
Tony Murray
97daf3dd54 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-01 10:18:28 -05:00
Rosiak
1bad01fbc1 OSPF Display Update 2016-07-31 01:05:02 +02:00
Tony Murray
2c98fd7426 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-26 19:29:11 -05:00
Neil Lathwood
42a8c27237 Merge pull request #3821 from adaniels21487/issue-3272-1
Component Update - Status
2016-07-25 20:13:25 +01:00
Rosiak
bc18e1a85c Prettify Cisco IPSec Tunnel Display
Bootstrapify etc.
2016-07-24 11:36:20 +02:00
Aaron Daniels
52455e1128 Component Update - Status
- Align the component status field with the Nagios standard
  0=ok, 1=warning, 2=critical
- Modify existing modules to report these status' (Cisco-OTV)
- Add/Modify Alerting Macros to use these status'
- Add the a component status widget
- update edit page to report these status'
2016-07-11 16:51:01 +10:00
Tony Murray
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
laf
f3ee9dcc2e Fixed php short tags 2016-05-02 18:43:06 +00:00
Daniel Preussker
975ddbc517 Revert "Fixed php short tags :/" 2016-05-02 20:19:18 +02:00
laf
a14ae0bc18 Fixed php short tags :/ 2016-05-02 18:09:58 +00:00
Neil Lathwood
fa783dc07e Merge pull request #2841 from adaniels21487/issue-2665
Cisco OTV
2016-02-10 19:49:59 +00:00
Aaron Daniels
4ebc2b1f33 - Modified code to use graph generation functions instead of calling overlib directly.
The graph generation functions check for the status of 'web_mouseover'.
2016-02-03 06:41:20 +10:00
Aaron Daniels
d96e2216a7 - Changed upper case variables to lower case. 2016-01-28 07:04:12 +10:00
Aaron Daniels
8f4dbb5338 Cisco OTV
Implements the CISCO-OTV-MIB to retrieve OTV counters from Cisco devices.
This collects information on the configured Overlays and Adjacencies

Statistics are collected for the amount of VLAN's on each overlay and the amount of MAC addresses available over each OTV endpoint.
OTV alerts are collected and generated if the appropriate alerting rules exist.

Data is displayed under routing at both the global and device level.

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 22:04:20 +10:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Job Snijders
ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
laf
d24a79f2ba Webui updates for BGP 2015-06-09 14:30:31 +01:00
laf
b9dabae7d8 Updated BGP polling for Cisco to support CISCO-BGP4-MIB better 2015-06-02 16:32:39 +01:00
Adam Amstrong
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
Adam Amstrong
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
Adam Amstrong
9dc57f7dae update ipsectunnels to work again
git-svn-id: http://www.observium.org/svn/observer/trunk@3236 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-24 21:22:41 +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
8df2b9b3f5 remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 18:38:11 +00:00
Adam Amstrong
a12c71df4e quadgraphs -> graphrow
git-svn-id: http://www.observium.org/svn/observer/trunk@3093 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 16:49:38 +00:00
Tom Laermans
2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Adam Amstrong
ee1517e38b ldap tls support
git-svn-id: http://www.observium.org/svn/observer/trunk@2880 61d68cd4-352d-0410-923a-c4978735b2b8
2012-02-27 23:36:19 +00:00
Adam Amstrong
e9749884cd fix BGP page
git-svn-id: http://www.observium.org/svn/observer/trunk@2876 61d68cd4-352d-0410-923a-c4978735b2b8
2012-02-17 16:46:28 +00:00
Adam Amstrong
d28c092c16 split netscaler and cisco ace stats to new load balancer tab (it's not routing :P)
git-svn-id: http://www.observium.org/svn/observer/trunk@2828 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-18 09:25:16 +00:00
Adam Amstrong
fd8d9a8c1b updated netscaler mib. netscaler vserver poller. netscaler vserver subtab in routing.
git-svn-id: http://www.observium.org/svn/observer/trunk@2826 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-18 08:12:37 +00:00
Adam Amstrong
b15ac997f8 Cisco ACE support thanks to wez_db
git-svn-id: http://www.observium.org/svn/observer/trunk@2814 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-12 11:09:45 +00:00
Adam Amstrong
314937de14 location bits!
git-svn-id: http://www.observium.org/svn/observer/trunk@2742 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-29 10:34:18 +00:00
Adam Amstrong
a076ee0c10 show host/port on bgp neighbour page
git-svn-id: http://www.observium.org/svn/observer/trunk@2729 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-17 14:19:21 +00:00
Adam Amstrong
a4bde74a48 pathces from wez to fix webinf stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@2695 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-21 13:27:59 +00:00
Adam Amstrong
870cb75038 fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2660 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-07 13:42:02 +00:00
Adam Amstrong
198dc4c902 fix ospf page
git-svn-id: http://www.observium.org/svn/observer/trunk@2655 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-06 08:22:49 +00:00
Tom Laermans
b6e7b4ef7a remove almost all base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2648 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-05 10:55:10 +00:00
Tom Laermans
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
Tom Laermans
9a1bee1458 more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:37:54 +00:00
Tom Laermans
d864ce234f kill a whole bunch of trailing spaces
git-svn-id: http://www.observium.org/svn/observer/trunk@2516 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 09:55:11 +00:00
Adam Amstrong
7930814d0d migrate routing/vrf&bgp to new urls
git-svn-id: http://www.observium.org/svn/observer/trunk@2501 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-19 08:54:48 +00:00
Adam Amstrong
e9f14f8f85 many lovely GUI changes.
git-svn-id: http://www.observium.org/svn/observer/trunk@2454 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 13:38:01 +00:00
Adam Amstrong
7c8f91e797 add graphing of ipsec tunnels on cisco kit
git-svn-id: http://www.observium.org/svn/observer/trunk@2450 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 13:53:37 +00:00
Adam Amstrong
fc40257da9 more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-16 12:48:50 +00:00
Adam Amstrong
a88b4bb970 routing -> db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2332 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-16 10:44:50 +00:00