Commit Graph

84 Commits

Author SHA1 Message Date
Neil Lathwood
d5296319fb refactor: MySQL strict and query fixes (#5338)
* refactor: MySQL strict and query fixes

* moved sql file
2017-01-13 06:47:16 -06:00
Søren Rosiak
322bebfd7a fix: Fix Oxidized Config Search Output (#5382) 2017-01-10 11:30:06 -06:00
Søren Rosiak
92aab1608d feature: Oxidized basic config search (#5333) 2017-01-09 19:09:02 +00:00
Neil Lathwood
36e1cc82f6 webui: Disabled editing device notes for non-admin users (#5341) 2017-01-08 15:05:37 +02:00
Neil Lathwood
7061acf508 fix: dbUpdate calls now check if it is 0 or above (#4996) 2016-11-15 22:06:46 -06:00
Tony Murray
895bd4b1f7 Merge pull request #4895 from laf/json-alert-rules
feature: Added the option to select alert rules from a collection
2016-11-07 23:22:01 -06:00
Neil Lathwood
4a854e02ce fix: Added support for https links in alerts procedure url (#4872) 2016-11-01 18:04:01 +00:00
jonathon-k
a251e81be5 fix: Remove escape characters for services form / display #4891 2016-11-01 17:20:12 +00:00
laf
7476a00a90 removed debug + simplified code 2016-11-01 16:43:12 +00:00
laf
8a142aa53f feature: Added the option to select alert rules from a collection 2016-10-29 10:56:59 +00:00
Neil Lathwood
e1fac851f9 refactor: Update alert rules to generate sql query and store in db (#4748) 2016-10-15 00:29:55 +01:00
Tony Murray
02b84cf3f7 Support device group definitions from v2 (#4591)
* Support device group definitions from v2
Disable editing v2 groups.

V2 Device groups are defined as follows:
pattern = WHERE query with ? placeholders for values
params = json encoded array of values

* Can't array_unshift something that isn't an array...
2016-09-27 17:50:52 +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
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
0991fbd67d Updated form update 2016-07-01 17:55:55 +01:00
laf
6690e31f9d Added ability to manually set ifSpeed 2016-06-30 09:49:30 +01:00
laf
16155e2264 Un-acknowledging an alert will allow it to continue sending alerts 2016-06-16 00:50:22 +01:00
Neil Lathwood
2b47c927f9 Merge pull request #3568 from gcoeugnet/master
Add procedure management from alerting widget
2016-06-12 19:26:01 +01:00
Guillaume COEUGNET
0b0881ae94 Remove doc files and change code indent 2016-06-06 11:49:50 +02:00
Guillaume COEUGNET
6c8a75a5f7 Change procedure management. Using URL instead of file 2016-06-06 11:41:41 +02:00
Tony Murray
009840bf8a Store device group relationships in a pivot table. 2016-06-02 13:25:01 -05:00
Guillaume COEUGNET
4dadad944b Add procedure management 2016-05-27 16:13:51 +02:00
Guillaume COEUGNET
d5e26a3438 Add procedure management 2016-05-27 16:11:06 +02:00
laf
582ad082aa dbUpdate will return 0 if no data is changed 2016-05-26 21:03:24 +00:00
laf
0652052d95 Included file to create map was referencing wrong dir 2016-05-03 22:05:09 +00:00
Neil Lathwood
16a52912e8 Merge pull request #3435 from pblasquez/ajax_headers_4
Ajax headers for miscellaneous forms
2016-04-30 00:43:30 +01:00
Neil Lathwood
05b073171b Merge pull request #3434 from pblasquez/ajax_headers_3
Ajax headers for devices and pollers
2016-04-30 00:39:48 +01:00
Neil Lathwood
1fc59a9049 Merge pull request #3433 from pblasquez/ajax_headers_2
Ajax headers for dashboard/config forms
2016-04-30 00:39:10 +01:00
pblasquez
4cc9203baa Allow for separate headers upon conditional 2016-04-28 14:42:06 -07:00
pblasquez
f3c4dacf7d Allow for separate headers upon conditional 2016-04-28 14:38:20 -07:00
pblasquez
186426933d Allow for separate headers upon conditional 2016-04-28 14:36:25 -07:00
pblasquez
71a57b6214 Allow for separate headers upon conditional 2016-04-28 14:30:03 -07:00
pblasquez
826cd17c33 Ajax headers for various 2016-04-26 15:13:01 -07:00
pblasquez
b5b3929d70 Ajax headers for devices and components 2016-04-26 15:06:29 -07:00
pblasquez
d2be07b49c Ajax headers for dashboard/config forms 2016-04-26 14:47:03 -07:00
pblasquez
d4d2736954 Ajax Headers for Alert Forms 2016-04-26 14:39:10 -07:00
Adam Winberg
aefb602480 Added '^' and '$' as allowed characters in regex split to be able to use start-of-string/end-of-string in LIKE statements for device groups 2016-04-15 08:49:10 +02:00
Aaron Daniels
854812a457 - added rrd_pipes to check script
- renamed service_* to *_service
2016-03-22 16:40:51 +10:00
Aaron Daniels
3e1d40fd7c - Added $vars to ajax_forms
- replaced all instances of $_POST with $vars
2016-03-16 08:37:15 +10:00
Aaron Daniels
0d6cfec589 Nagios Services
- Moved check-services.php to a poller module
    - Added performance data collection to the poller
    - Centralised DB functions to includes/services.inc.php
    - Created add/edit/delete functions off the device, services page
    - Removed legacy edit/delete interfaces.
    - Moved and modified check.inc scripts
    - Documentation Updates
    - Modified services table
2016-03-15 22:23:14 +10:00
Robert (KHobbits)
6e4eb4cf43 Stop double escaping port notes 2016-03-08 12:14:27 +00:00
Robert Gornall
c321d4e4b2 Stop double escaping the notes post variable 2016-03-03 18:38:24 +00:00
laf
350345b611 Updated parsing of alert rules to allow | 2016-02-03 07:52:35 +00:00
Aaron Daniels
6492b887e9 Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1650 2016-01-14 06:10:31 +10:00
laf
93b0886567 Added datetime to notifications + Fixed sticky/unsticky notifications disappearing 2016-01-10 22:22:13 +00:00
Rosiak
869234579a Convert to device_attribs 2016-01-04 20:23:32 +01:00
Rosiak
d22fc18f51 Add Port Notes Field
Add a “Notes” field for ports to accommodate #1897
2016-01-03 02:12:41 +01:00
Aaron Daniels
c63b7119cb Device Components.
The purpose of this feature is to provide a framework for discovery modules to store
information in the database, without needing to add new tables for each feature.

This Feature provides:
- A database structure to store data.
- An API to store and retrieve data from the database.
- Integration to the LibreNMS APIv0.
- Ability to disable/ignore components.
- Default alerting rules.

- The API returns $COMPONENT[$device_id][$component_id] to allow pulling of data for multiple devices.
  The intent is to be able to create 'Applications' the consolidate data from applications covering multiple devices.
- Added some developer documentation
2015-12-14 07:52:03 +10:00
laf
4dd2f7f99f Rebased 2015-11-19 12:13:51 +00:00
Daniel Preussker
0ff693bd0e Added notifications poller,page,schema,display 2015-11-21 11:22:59 +00:00