Commit Graph

2221 Commits

Author SHA1 Message Date
crcro 49dbe3ea01 availability map updates (#4183)
webui: More updates to availability map #4183
2016-08-28 21:48:05 +01:00
nerdalertdk 8924e954c4 Missing variable in services api call
fix: Missing variable in services api call
2016-08-27 14:46:54 +01:00
Neil Lathwood b5e137869e Merge pull request #4215 from nerdalertdk/patch-1
Added service to api calls
2016-08-26 13:26:12 +01:00
Tatermen 19f231d408 Freeswitch support (#4203)
* Added support for freeswitch via unix_agent

* Fixed display of graphs on apps overview

* Removed tab indents

* Fixed not sending port_descr_type (#4188)

* Removed / Updated version info to just be LibreNMS (#4193)

* Remove requirement for ['enable_printers'] (#4192)

* ricoh devices returning garbage as toner level (#4180)

* ricoh devices returning garbage as toner level

* ricoh toner extra check

* more ricoh rules

* Fix remote rrdtool_check_rrd_exists() calls (#4196)

It was comparing with the full name when rrdcached only printed out the relative name.
Thanks mikmak on irc for lots of troubleshooting.

* check for no motd line (#4200)

Fixes #4199

* Only push the toc down, not the content
the toc is on top when the header switches to two lines, so we only need to push that down.

* IRC bot - detect lost communication

Force reconnect if no data received from server for config['irc_conn_timeout'] seconds (that may happen when network/VPN goes down - in such case IRC bot won't get immediately notification that connection was lost, at least till it tries to send anything).

* Update irc.php

* Update irc.php

* Update irc.php

* Update irc.php

* fix ifName randomly defined, breaking influxdb updates (#4202)

* IRC bot - allow to disable ssl check

In PHP 5.6.x stream wrappers verify peer certificates and host names by default when using SSL. That fix allows to turn off that verification with config option $config['irc_disable_ssl_check'] = true; 
It is useful when you want to use self generated certificate for your own IRC server.

* Update irc.php

* More more docs (#4197)

* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements

* Add ntpd to the list of agentapps (#4194)

* Fix deprecated constructors
This small change should't prevent easy updates to libraries and fixes the lint check on php7

* Don't allow php7 failures anymore

* 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

* include common.php in definitions.inc.php (#4198)

definitions.inc.php makes a call to dbFetchRow, which uses c_echo()
It is safe to include common.php here as it only has function definitions.

* Use pre-commit.php in for travis-ci tests (#4212)
2016-08-26 12:08:48 +01:00
nerdalertdk 8a6ad076e2 Update api_functions.inc.php 2016-08-26 11:45:25 +02:00
nerdalertdk feb6696026 tabs to spaces 2016-08-26 10:11:20 +02:00
nerdalertdk c873a3556e use space not tabs 2016-08-26 09:26:52 +02:00
nerdalertdk 0f12c61259 list_services
/services?state = filter by service state
/service?type = filter by service type
2016-08-26 09:19:05 +02: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
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
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
Neil Lathwood fb935cdb30 Merge pull request #4122 from murrant/more-avail
Availability: small changes
2016-08-20 01:13:58 +01: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
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
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
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
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
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
Tony Murray bf2c522c89 Move third party software to html/lib form html/includes 2016-08-15 13:16:10 -05:00
crcro a4234a00f0 rewrite code for less repetition, removed unused css classes 2016-08-15 01:42:02 +03:00
crcro 1270028b2f forgot about widget host warning 2016-08-13 16:43:25 +03:00
crcro 889c02dd2a looks like services can have warning also, changed the warning labels to warn for readability 2016-08-13 16:38:47 +03:00
crcro ccc88911f8 -fixed select position/size
-extra style for text on labels for readibility
-PSR-2 style
-added classes for all styles
2016-08-13 05:12:05 +03:00
crcro e575271126 added linux os distro icon, fixed formatting 2016-08-13 03:20:55 +03:00
laf 11d91215cb Added predicated usage to bills, basic at present 2016-08-13 01:11:20 +01:00
crcro 655363082c rewrite of availability-map 2016-08-12 22:51:29 +03:00
Tony Murray 5db9256baf Fix rrd_name escaping * used with glob()
Thanks tuxis-ie for finding the issue and fix.
2016-08-12 14:42:57 -05:00
Neil Lathwood 191bed9dd8 Merge pull request #4038 from murrant/proxmox-ceph-fix
Proxmox rrd fix
2016-08-12 17:46:15 +01:00
Tony Murray 1949f2f4ea Proxmox rrd fix
Attempt to fix proxmox rrd naming. Create a separate function to generate it's file names.
2016-08-12 11:05:58 -05:00
Aaron Daniels 4c060a430a - Made module generic, not cisco specific. 2016-08-12 17:21:55 +10:00
Aaron Daniels 4c34541285 - Modified to use standardised RRD functions 2016-08-12 16:53:20 +10:00
Aaron Daniels 27eb389409 Merge branch 'master' into issue-3999 2016-08-12 16:34:13 +10:00
Neil Lathwood 2aaf9559ea Merge pull request #4016 from crcro/ipmi_rewrites
ipmi sensors rewrite based on known hardware id
2016-08-11 23:37:40 +01:00
Aaron Daniels 70a05369fb Merge branch 'master' into issue-3550
Conflicts:
	html/includes/graphs/device/sla.inc.php
	includes/polling/cisco-sla.inc.php

- Use standardised RRD functions
2016-08-12 08:22:40 +10:00
crcro 1281ae4bd3 ipmiSensorName 2016-08-12 00:53:25 +03: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