Commit Graph

1320 Commits

Author SHA1 Message Date
TheGreatDoc
d8dd9c828e Update Weathermap.md (#8747)
Added prerquisite php pear
2018-05-23 21:55:08 +01:00
PipoCanaja
5c83d438c5 feature: Added plugin support in the Port page (#8665)
* Added new plugin menu_option in the "port" page, which contain hook calling public function port_container($device, $port) in plugins

* Cleaning after pre-commit error

* New method in Plugins.php to allow counting all plugins implementing a specific hook. This allow conditionnal display of the plugin menu_option in the port view.

* Typo after rebase

* Update plugins.inc.php

* Updating the documentation with device_overview_container and port_container hooks.
2018-05-22 08:11:27 +01:00
mattie47
66ca9a7c21 Update Test-Units.md (#8707)
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-05-21 08:00:08 +01:00
Tony Murray
99c74562a8 fix: Fixed hostname lookup for distributed poller on some platforms (#8727)
May cause warnings about poller not polling if the name doesn't match exactly as the old one.
Just delete from /pollers

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-05-19 21:02:22 +01:00
Paul Heinrichs
2d7423cdaa API: System endpoint, more health graphs (#8730)
* API: System endpoint, more health graphs

* Add new line api_functions

* Get count of relationships

Using eloquent

* Add new lines in Models
2018-05-18 23:36:06 -05:00
Hans Erasmus
70857e556d Updated installation instructions (#8733)
* Updated CentOS (Apache) installation instructions

Added a few steps I think might be useful to first time Libre users.

* Update Installation-CentOS-7-Apache.md

* Added proposed changes from the comments sections

* Update Installation-CentOS-7-Nginx.md

* Update Installation-Ubuntu-1604-Apache.md

* Update Installation-Ubuntu-1604-Nginx.md
2018-05-17 11:30:03 -05:00
Neil Lathwood
d7899f509c alerting: Updated variables available for templates (#8713) 2018-05-15 20:30:59 -05:00
Hans Erasmus
52544468b7 Fixed a few formatting problems on applications.md (#8716)
Some headers went "missing" in the previous PR, so fixed it now.
2018-05-15 07:37:11 -05:00
theherodied
a2e68f41dc docs: Updated MySQL application entry for clarification. (#8708)
* Updated MySQL entry.

Cleaned up MySQL entry. Had somewhat duplicated Agent entries that might cause confusion. One was before the snmp extend entry, and the other after. This might cause people to believe both are needed. I cleaned it up and merged the agent entries.

Added comment at top to clarify that only one detection method is needed.

* Fixed highlighting
2018-05-14 18:33:29 +01:00
Lucas Dousse
182185d433 Update to add acl on list of necessary package (#8639)
* Update to add acl on list of necessary package

Add acl package for the installation of Librenms

* Change sort

add acl to first

* Change file to add acl package
2018-05-11 22:42:04 -05:00
Tony Murray
1ad7f3138b
Add Laravel to LibreNMS (#8318)
* Add Laravel to LibreNMS.

* Try to set permissions during initial install and first composer update to Laravel.

* Fix composer.lock
Fix missing db config keys

* Start building v1 layout
Port ajax_setresolution, inject csrf into jquery ajax calls
Layout works, building menu
Partially done.

* Fix device group list
remove stupid count relationships

* Print messages for common boot errors.
Don't log to laravel.log file.
Log to error_log until booted, then librenms.log

* Fix up some issues with Config loading
Start of custom directives

* Custom blade directives: config, notconfig, admin

* Preflight checks
Only load config files once.

* Update the composer.lock for php 5.6

* Menu through routing

* Start of alert menu

* Better alert scopes

* reduce cruft in models

* Alerting menu more or less working :D

* Fix style

* Improved preflight

* Fix chicken-eggs!

* Remove examples

* Better alert_rule status queries
Debugbar

* fix app.env check

* User Menu

* Settings bar (dropped refresh)
Search JS

* Toastr messages

* Rename preflight

* Use hasAccess(User) on most models.
Add port counts

* Missed a Preflight -> Checks rename

* Fix some formatting

* Boot Eloquent outside of Laravel
Use Eloquent for Config and Plugins so we don't have to connect with dbFacile inside Laravel.
Move locate_binary() into Config class

* Config WIP

* Try to fix a lot of config loading issues.

* Improve menu for non-admins removing unneeded menus
url() for all in menu

* Only use eloquent if it exists

* Include APP_URL in initial .env settings

* Implement Legacy User Provider

* Helper class for using Eloquent outside of Laravel.
Allows access to DB style queries too and checking the connection status.

* Fix up tests

* Fix device groups query

* Checking Travis

* copy config.test.php earlier

* dbFacile check config before connecting
Don't use exception to check if eloquent is connected, it gets grabbed by the exception handler.
Ignore missing config.php error.

* Fix config load with database is not migrated yet.

* Remove Config::load() from early boot.

* Use laravel config settings to init db (this prefers .env settings)
Fix bgp vars not set in menu
add _ide_helper.php to .gitignore

* Restrict dependencies to versions that support php 5.6

* Update ConfigTest

* Fix a couple of installation issues

* Add unique NODE_ID to .env

* Correct handling of title image

* Fix database config not loading. Thanks @laf

* Don't prepend /

* add class_exists checks for development service providers

* Fix config value casting

* Don't use functions that may not exist

* Update dbFacile.php

* d_echo may not be defined when Config used called.

* Add SELinux configuration steps
More detailed permissions check.
Check all and give complete corrective commands in one step.

* Ignore node_modules directory

* Re-add accidetal removal
2018-05-09 08:05:17 -05:00
Tony Murray
8afafe7eb0 refactor: pre-commit.php updates (#8679)
Disable the log for unit tests to speed things up hopefully
2018-05-09 12:53:45 +01:00
Hans Erasmus
8ce423dd2d Expand the description of Application support (#8619)
* Expand the description of Application support

I was not aware that the applications can also be auto-discovered. I discovered it by chance, and when I mentioned it in discord channel, it seemed blatantly obvious to everyone else. Thought editing the docs might help future users.

* Update Applications.md

Changed a lot of instructions to make it more structured.

* Add files via upload

Addedimages to help with application extensions how-to.

* Update Applications.md

Added the file locations into master file.
2018-05-08 19:15:58 -05:00
James Andrewartha
a7437c13da Documentation updates for DMI support and making two links in the FAQ work (#8440)
* Documentation updates for DMI support and making two links in the FAQ work

* Update SNMP-Configuration-Examples.md

* Update SNMP-Configuration-Examples.md

* Update snmpd.conf.example

* Update SNMP-Configuration-Examples.md
2018-05-08 18:35:25 -05:00
Kevin Ying
4140796807 Reordering metrics list on Health-Information doc (#8653)
* Updated XIRRUS-MIB; added Temperature

* Corrected field and indentation

* Added test data

* More test data

* Create xirrus_aos.json

* Reordered metrics back into alphabetical
2018-05-02 14:34:13 -05:00
Neil Lathwood
386fea0321
docs: Changelog for 1.39 Apr 2018 (#8636) 2018-04-29 21:42:40 +01:00
VVelox
50935fff33 update docs to reflect SMART monitoring having the ability to use either device name or disk serial number (#8522)
* update to reflect changes to the SMART SNMP extend

* minor grammatical change

* update to reflect the default of SN and expand info on that all a bit
2018-04-27 22:49:30 +01:00
Neil Lathwood
b3d190ec52 docs: Updated CentOS 7 install docs to use php72w-mysqlnd (#8618) 2018-04-25 19:04:37 -05:00
Hans Erasmus
0609d6eae0 Update Applications.md (#8617) 2018-04-25 21:01:02 +01:00
Hans Erasmus
5675964bab Clarify unbound extend OR agent (#8609)
* Update Applications.md

The snmp-extend method should really be advocated as the preferred method, as it is the easiest and quickest.

* Update Applications.md

* Update Applications.md

Is this what you meant?
2018-04-24 20:32:30 -05:00
Neil Lathwood
21e26a437e
doc: Updated github issues links to community site (#8598) 2018-04-22 23:00:46 +01:00
Neil Lathwood
352def1063
doc: Remove clause of CLA (#8596) 2018-04-22 22:39:12 +01:00
Tony Murray
ddba4e2917 Remove -m in test example (#8563) 2018-04-14 14:34:01 +01:00
Neil Lathwood
1c94cddd70 fix: Apply divisor / multiplier to high/low limits in sensors (#8427)
* fix: Apply divisor / multiplier to high/low limits in sensors

* Updated test data for airos

* updated sensors test data

* Updated test data

* Updated test files

* updated dell-rpdu tests

* Updated to do division / multiply after check for value
2018-04-13 21:43:40 -05:00
Sander Steffann
65b8270936 feature: Added random entropy support for applications (#8555) 2018-04-13 17:42:14 +01:00
cchance27
09d6b2fd54 feature: Added Prometheus PushGateway metric support (#8437)
* Added Prometheus PushGateway support

* fixed formatting

* fix set_curl_proxy to correct variable

* add documentation

* Update Metric-Storage.md

* Update mkdocs.yml
2018-04-13 15:46:19 +01:00
Neil Lathwood
9b1a3fb86a refactor: Use snmp.version config option to allow users to set versions available (#8512)
* refactor: Use snmp.version config option to allow users to set versions available

* Updated to just use snmp default version for auto discovery

* remove additional spaces

* remove use Config
2018-04-11 22:35:51 -05:00
Paul Heinrichs
ff0063b515 api: Add option to output graphs as base64 (#8535)
* Allow 'option' param in graph endpoint

* Update lint and update docs

* Uncomment api response

* Add imagedestroy on 'tobias_trim' section

* Add base64 to port endpoints also
2018-04-11 08:02:04 -05:00
Atroskelis
6a26ac6dac docs: Updated Oxidized.md to show use of arrays (#8547)
Wanted to clarify how the array in ignore_types and ignore_os works cause i personally was dense and added multiple lines which overwrote themselves.
2018-04-11 09:24:18 +01:00
Serphentas
bc5b0f84cc docs: Added doc for linux zfs application setup (#8546) 2018-04-11 09:15:04 +01:00
Wheel
c7827b6652 docs: Updated Graylog.md for 2.4 version (#8517)
* Update Graylog.md

Updatet to current version of graylog. And default ports

* Update Graylog.md
2018-04-09 20:51:28 +01:00
Valent Turkovic
ee2bb8e820 Update Rules.md (#8501)
devices.status != 1 (means device is down)
devices.status = 1 (means device is up)
2018-04-04 09:00:23 +01:00
Wheel
d755b8c55e Update RRDCached.md (#8495) 2018-04-01 21:25:53 +01:00
Neil Lathwood
b39cd1fa04
docs: Changelog for 1.38 (#8497) 2018-04-01 20:26:10 +01:00
Tony Murray
5c83aa1e28 refactor: LDAP debug output (#8434)
* LDAP debug
Updated LDAP and AD docs
ldap protocol default to v3 (so we don't have to set it all the time).  If this fails it should revert to v2.
ad was using auth_ad_timeout incorrectly (1 I think)

* Add option to list all users.
2018-03-29 11:40:27 +01:00
Wheel
3fb7f76aea docs: Update World-Map doc with examples (#8488) 2018-03-29 11:37:51 +01:00
Kevin Krumm
9e112bf675 docs: add FAQ for Device Type (#8482)
* docs: add FAQ for Device Type

* fixed typos and etc
2018-03-28 22:24:37 -05:00
Wheel
1b4e7b3680 docs: Debian stretch RRDcached settings (#8470)
* Debian stretch settings

* Update RRDCached.md

* Update RRDCached.md
2018-03-26 20:09:38 +01:00
Neil Lathwood
544b363951 alert: Added support for disabling recovery notifications (#8430)
* alert: Added support for disabling recovery notifications

* reversed use of recovery

* removed debug + small update
2018-03-22 12:38:16 -05:00
Slashdoom
308d43f07a docs App doc fix (#8448)
* small fixes to apps doc

* small fixes to apps doc
2018-03-22 08:33:28 +00:00
Steven Barnes
a1d80e3940 Small edit (#8438)
Can't forget that semicolon.
2018-03-21 17:37:11 +00:00
Dag Bakke
69bedd0101 docs: Added info about client config options for suppressing/enabling FQDN info in syslogmsgs (#8396)
* Update Graylog.md

* Added some hints for configuring some syslog clients.
2018-03-15 21:46:50 +00:00
Dag Bakke
0ac40421e1 Update SNMP-Configuration-Examples.md pt. 2 (#8385)
Minor fix for Junos example, and CLI commands for configuring SNMPv3 on PanOS.
2018-03-15 20:51:11 +00:00
Kevin Krumm
c27c28f584
docs: fixed WeatherMapper style (#8395)
Helps with finding it.
2018-03-15 14:11:23 -05:00
Dag Bakke
2c83056663 docs: Update SNMP-Configuration-Examples to include ESX/ESXi (#8381)
* Update SNMP-Configuration-Examples.md

Added info for VMware ESX, as well as SNMPv3 for Junos

* Update SNMP-Configuration-Examples.md
2018-03-15 08:59:31 +00:00
Neil Lathwood
03076c4025
feature: Added new alert rule builder UI and rule mapping UI (#8293)
* feature: Added new alert rule builder UI

* Updated to export sql queries

* More updates

* more changes

* removed debug

* fix scrut

* Updated to include import options + various other fixes

* fix rule

* Populate name from collection rules.

* Fix default rule import
Allow new and old style rules in the collection.
Don't add new yet as I'm not sure GenSQL() is working.

* Fix GenSQL call

* Extract filter building to class so it is nicely contained in one place

* moved schema

* some fixes and tweaks

* travis fixes

* Some more features / updates

* Fix up my mistakes when adding default rules

* Use a modal for new alert (Incomplete)
Larger dialog!!
Remove page loading stuff.

Working:
Loading rules, resetting dialog, importing from collection.

Not working yet:
select width
device limited rule access? don't know what this is...

Lots of unused stuff to delete...

* reload "table" after save

* fixed editing rule

* Auto select2 width

* Reload window on save

* Restore per-device alert. Remove debug.

* Small cleanups. Rule Name first.

* Restore button to button type. Rename schema.

* Fixes: wrong command to reload window, remove extra attributes, rule is never passed

* Fixed old rule editing

* some small updates for old imports

* travis update to use trusty

* maybe travis fix

* Ability to set alert rule mappings on the rule edit screen

* pip installs one line, no quiet for deploy

* update schema def

* Fix style and some copyright headers

* fix docs missing file

* Allow new versions of snmpsim and libraries

* Parser WIP

* Fix default rules insert

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* small rule collection fix

* Working on glues

* Working on glues

* Docs updates + small UI changes

* Parser WIP

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* Working on glues

* Working on glues

* Add table mapping, should move to it's own class

* WIP

* Glue working!!

* Extract Schema class

* Some final touches.
revert alerts_rules.json for now.

* Finish up initial implementation
Needs more tests

* Fix a few places

* small doc updates

* Fix finding tables in grouped rules.

* remove unused code

* code format fixes

* Some quick tests for Schema
Simplified output for findRelationshipPath. Always includes start and target in the result.
This simplifies a lot of code in QueryBuilderParser.php
This also always loads the target table data now (which we want)

* Make bill_id the PRIMARY index for the bills table

* Load macros from a json file in misc instead of the database.

* Fix whitespace and wrong key for collection.

* Handle IN properly when generating SQL

* Fix glue (devices.device_id = ports.port_id) is incorrect :D
Show ALL tables we can resolve relationships for in the query builder filter.

* Remove all macros from the database
Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
Dag Bakke
4c0dc5c37b Update Applications.md (#8369)
Added a hint about removing /tmp/apache-snmp if the apache-stats.py script has been run manually. If run as root, it leaves behind a file which the user running snmpd cannot overwrite. Causing snmpd to not produce apache stats.
2018-03-13 20:12:02 +00:00
theherodied
4e94e9905c Fixed backticks (#8366)
Fixed backticks for new html examples.
2018-03-13 13:24:04 +00:00
theherodied
7946f15b44 Added two html alert template examples (#8360)
Added two html alert template examples. Asked pii100 for permission to include his and he said ok.
Included my html service alert check that includes service_message.
Added a note for html and graphs. I believe most people will find it useful on this page.
2018-03-13 11:21:27 +00:00
BlackDex
25b96c1ab3 Fixed markdown/layout of the examples (#8365) 2018-03-13 11:17:30 +00:00