Commit Graph

74 Commits

Author SHA1 Message Date
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
Rosiak
7ef1e1bd8f Fixes 2015-11-21 01:11:42 +01:00
Rosiak
aee49c3d84 Add RIPE Abuse Contact Finder
- Add RIPE Abuse Contact Finder to RIPE NCC API toolset.
2015-11-21 00:44:13 +01:00
laf
72426b9a1b Rebased SQL file 2015-11-18 23:55:00 +00:00
Rosiak
1508538d8e Add RIPE NCC API Whois lookup
Fix #2051
2015-11-18 19:15:23 +01:00
laf
7b46e67a47 Final updates to support Clickatell and PlaySMS 2015-11-16 20:13:04 -08:00
laf
1affc12ae0 More changes 2015-11-16 19:22:28 -08:00
laf
9c678d12cd More updates for new transports 2015-11-16 16:40:23 -08:00
laf
6ad95be58b Added WebUI PlaySMS transport 2015-11-16 10:40:09 -08:00
laf
4d8a84d604 Added WebUI support for Clickatell transport 2015-11-16 08:56:46 -08:00
laf
fcb584c897 Some page updates 2015-10-12 22:14:04 +00:00