Commit Graph

4384 Commits

Author SHA1 Message Date
Tony Murray
200e670315 Fix defunct process issues: create Proc class (#4210)
* Proc class
Encapsulate processes in a class, when they go out of scope, we can use the __destruct() process to make sure the process terminates.

* Fix rrdtool_last checks failing

* Don't close rrdtool in rrd_graph
Try to start rrdtool process if they haven't been started yet
Remove some extra debug output

* phpdocs added
several cleanups
should still be functioning the same
Only open one  rrdtool process for graph.php
2016-08-26 07:50:29 +01:00
Tony Murray
53b07d7a2a Fix deprecated constructors
This small change should't prevent easy updates to libraries and fixes the lint check on php7
2016-08-26 00:35:09 -05:00
Neil Lathwood
9f1930a81e More more docs (#4197)
* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements
2016-08-25 18:40:11 -05:00
Neil Lathwood
dda6bf7576 Removed / Updated version info to just be LibreNMS (#4193) 2016-08-24 12:39:57 -05:00
crcro
f30c3907a8 initial sonus support (#4176)
* initial sonus support, tidy definitions.inc.php

* proper copyright in files

* limiting the noise

* used too old definitions.inc.php
2016-08-24 14:33:00 +01:00
zarya
10d7451a74 Hytera repeater support (#4163) 2016-08-23 19:44:45 +01:00
Eldon Koyle
787c4f09f7 Config option for global default dashboard (#4080)
* Config option for global default dashboard

Add config option to set a global default dashbord.  This will be used
instead of the user's "Default" dashboard unless they have changed their
default dashboard in their user settings.

* Use a dropdown for the default_dashboard option

Update generate_dynamic_config_panel to allow assoc arrays with
`'value'` and `'description'` as keys and change to a select box.

* Fix PHP style issues lost during merge
2016-08-23 19:37:12 +01:00
Tony Murray
7b93b564da Centralize class loader (#4169)
Move the classloader to as early as possible in defaults.inc.php
This should cover all application entrances.
Set install_dir based on the location of defaults.inc.php
2016-08-22 23:59:59 +01:00
Tony Murray
70a0e17a2b Re-fix realtime 2016-08-22 15:13:41 -05:00
crcro
6190562d9a availability map updates (#4160)
* fix for services visibility if no service available or not enabled in config

* availability map option to switch to old view

* updates as guided by @laf
2016-08-22 19:12:44 +01:00
Bennett Blodinger
2fd6a9f0fb Fix button jumping for dashboard tooltips (#4164)
http://getbootstrap.com/javascript/#callout-tooltip-groups
2016-08-22 19:09:22 +01:00
Tony Murray
e80a385b7f RRDtool dual process (remote creation/check) (#4104)
* Prepare for dual rrdtool processes
Disabled at this time
Split out rrdtool version checks into rrdtool_create_command()
Tests for rrdtool_create_command()
Fixes a few small issues.

* Enable dual process and remote rrd check/creation

* remove full path for remote commands

* Doc updates
minor fix to rrdtool_tune()

* Set up bootstrap for phpunit
Fix issues with FileExistsException

* Attempt to fix phpunit

* Fix classloader and bootstrap to use full paths only (not depending on $config)

* Fix phpunit tests, config.php does not exist.
2016-08-22 16:32:05 +01:00
Neil Lathwood
27c1c72b19 Fixed realtime graphs (#4162) 2016-08-22 11:46:22 +01:00
arrmo
b1cfaa7ec0 OS Icon Updates + Added Info to AUTHORS.md (#4058)
* Updated OS Icons

Cleaned up image for Lenovo - new images for asuswrt-merlin, swos,
tomato. Minor update for MikroTik RB260GS.

* Added Contact Information to AUTHORS.md

* Update Lenovo Icon (32x32), Revert SwOS Change

* Added Text per Contributor Agreement

I agree to the conditions of the Contributor Agreement
contained in doc/General/Contributing.md.
2016-08-21 21:11:10 +01:00
Søren Rosiak
edab8aa191 Merge pull request #4153 from laf/issue-4152 2016-08-21 17:05:15 +03:00
laf
ab8acf2773 Fixed ntpd application graphs 2016-08-21 14:58:02 +01: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
5ce1fd207e Fix code style 2016-08-20 11:06:27 -05:00
Tony Murray
9babc10820 Use tabs for global settings 2016-08-20 10:16:56 -05:00
Tony Murray
7b7d7b3bfa Extra settings buttons
Fix issues with extra buttons from using v2, which doesn't set config_group
2016-08-20 08:08:24 -05:00
laf
5f8705bd37 Changed package names 2016-08-20 12:21:13 +01:00
Neil Lathwood
aefa24385e Merge pull request #4139 from benwa/fix-widget-bootgrid
Bootgrid alignment
2016-08-20 11:49:53 +01:00
Neil Lathwood
fb935cdb30 Merge pull request #4122 from murrant/more-avail
Availability: small changes
2016-08-20 01:13:58 +01:00
Bennett Blodinger
509978172e Fixes bootgrid alignment
The dropdown li inherit text alignment.
2016-08-19 20:11:35 -04:00
Tony Murray
cfe2cf8069 Merge remote-tracking branch 'upstream/master' into psr2-html 2016-08-19 13:54:45 -05:00
Bennett Blodinger
60e13a5d15 Update device-summary-vert.inc.php 2016-08-19 13:45:04 -04:00
Bennett Blodinger
aeb1c1fc43 Keep theme consistent on tables
Makes the tables a bit more uniform
2016-08-19 13:39:58 -04:00
Tony Murray
257cec197d Availability: small changes
Mouse pointer to indicate the labels are clickable.
<label> is a form element and should not be a child of <a>, use span
2016-08-19 09:51:21 -05: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
laf
2a54c096af Fixed namespace issue 2016-08-18 22:06:00 +01:00
Neil Lathwood
cbf1ec09c3 Merge pull request #4106 from murrant/availibilty-shadows
Availability map: shadow
2016-08-18 21:47:09 +01:00
Neil Lathwood
7bdc3f488a Merge pull request #4101 from murrant/namespaces
Use namespaces for classes, take 2
2016-08-18 21:41:39 +01:00
Neil Lathwood
637d01cd13 Merge pull request #4077 from murrant/ntpd-app
NTPD Application
2016-08-18 21:30:33 +01:00
Tony Murray
450049a431 Availability map: shadow 2016-08-18 11:23:34 -05:00
Daniel Preussker
ac41ca980b Merge pull request #4049 from laf/issue-3847
Added predicated usage to bills, basic at present
2016-08-18 05:39:59 +00:00
Tony Murray
f5f31e88ac Use namespaces for classes, take 2
CollectdColor, move into it's own file, change functions to camelCase
Plugins use LibreNMS\Plugins
2016-08-17 20:26:51 -05:00
laf
36987d80c4 Escape data for syslog page 2016-08-17 21:52:10 +01:00
Tony Murray
984dafda4b Merge remote-tracking branch 'upstream/master' into ntpd-app 2016-08-17 15:40:38 -05:00
Neil Lathwood
809969efc9 Revert "Use namespaces for classes" 2016-08-17 21:27:56 +01:00
Neil Lathwood
f52c6517e5 Merge pull request #4073 from murrant/namespaces
Use namespaces for classes
2016-08-17 21:03:58 +01:00
Neil Lathwood
ac2ff295d8 Merge pull request #4071 from murrant/move-libs
Move third party software to html/lib from html/includes
2016-08-17 20:59:02 +01:00
laf
67617d0d3d Merged css changes into styles.css 2016-08-17 20:22:51 +01:00
Neil Lathwood
73ff21fca2 Merge pull request #4043 from crcro/availability-map-remake
rewrite of availability-map
2016-08-17 21:20:02 +02:00
Neil Lathwood
a42ba9a221 Merge pull request #4005 from adaniels21487/issue-3999
CISCO-NTP-MIB
2016-08-17 21:09:50 +02:00
Tony Murray
fe784aec83 Merge pull request #4074 from OpcaoTelecom/unbound
Added Unbound graph support
2016-08-17 10:01:48 -05:00
Tony Murray
232fdc2516 Merge pull request #4006 from adaniels21487/issue-3550
Change the IPSLA feature to allow different metrics to be collected…
2016-08-16 08:55:44 -05:00
Tony Murray
f3a78d8136 NTPD Application
Support the unix agent
Add to documention.
Renamed so it will be automatically enabled by the unix-agent.
2016-08-15 23:54:13 -05:00
Tony Murray
6512bff04e Merge pull request #4066 from adaniels21487/issue-4059
Added OS support for the McAfee SIEM Nitro product range
2016-08-15 21:01:03 -05:00
Alan Gregory
772d7fa28d Added Unbound Support 2016-08-15 17:46:10 -03:00
Tony Murray
709de9a166 Use namespaces for classes
CollectdColor, move into it's own file, change functions to camelCase
Plugins use LibreNMS\Plugins
2016-08-15 14:04:39 -05:00