Commit Graph

1276 Commits

Author SHA1 Message Date
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
sorano
533332928f Update Transports.md (#8330)
Added note to configure pushover from webgui and added notification sound example.
2018-03-12 23:44:12 -05:00
Tony Murray
98e3014d31
Remove mcrypt, it doesn't exist in php 7.2 (#8352) 2018-03-09 22:14:37 -06:00
Paul Heinrichs
a0c2783d27 alerting: Added Philips Hue as transport (#8320)
* Add Phillips Hue Bridge as Alerting transport

* Add Comment

* Update Transport docs

* Update Phillips to Philips Add sql schema
2018-03-09 19:30:27 +01:00
Neil Lathwood
9897b5fbd4
webui: Removed unused JS causing issues with typeahead (#8307)
* webui: Removed unused JS causing issues with typeahead

* updated reference url for typeahead
2018-03-09 18:11:24 +01:00
TheGreatDoc
72dffd8d95 docs: Update Installation-CentOS-7-Apache.md (#8349)
php72w-mcrypt is not used anymore
2018-03-09 17:52:26 +01:00
Arzhel Younsi
7eda8d9989 feature: Added a irc_alert_short option to only send the alert title (#8312)
* Add a irc_alert_short option to only send the alert title

* Add doc for 'irc_alert_short'
2018-03-02 17:52:47 +00:00
BlackDex
5af51fa46f webui: Added auto width and height dimensions parameters to generic image dashboard widget (#8314)
Added the ability to substituted special parameters for width and height of the Generic-image widget to be added to an Image URL.
2018-03-01 22:12:46 +00:00
Drew Hynes
764abde504 alerting: Added Gitlab transport for alerting (#8246)
* gitlab alert transport added

* fixed SQL file and cleaned up a bit

* updated license information

* added relevant information Transports documentation

* Fixed spacing issues

* removed unnecessary text from variable

* fixed sql schema file syntax

* changed sql schema order

* fixed creation of issues for resolution events

* addressed file name conflict

* fixed spacing, again

* removed unused variable

* Update Transports.md
2018-02-27 21:21:37 +00:00
Nils Büchner
59f99f1962 api: Added routes to delete,add/edit traffic bills (#8272)
* add API calls to delete,add/edit traffic bills

* scrutinizer fixes

* app needed

* explicitly use === null

* requested changes
2018-02-27 19:51:29 +00:00
theherodied
6370b2931c docs: RRDCached-Security clearify security (#8302)
Clarify that additional security is only needed if you use a network socket instead of a unix socket. This might reduce confusion since the default directions on https://docs.librenms.org/#Extensions/RRDCached/ only setup unix sockets so no further steps are needed.

Source information found at: https://oss.oetiker.ch/rrdtool/doc/rrdcached.en.html#SECURITY_CONSIDERATIONS
2018-02-27 15:42:16 +00:00
Neil Lathwood
ff02fced6e
Added changelog for 1.37 (#8299) 2018-02-26 21:43:41 +00:00
James Andrewartha
1792a9cd02 Add some previously undocumented WirelessSensors and fix units (#8296) 2018-02-25 20:27:46 -06:00
Richard Lawley
10829893ec api: Added Billing Graphs & Data (#8245)
* Move Billing/Bandwidth Graphs to common format, extract data generation to central function

* Add API functions to access billing graphs and graph data

* Scrutinizer fixes

* Fix transfer graphs with from/to

* Scrutinizer Fix

* Fix docs, transfer page and missing from API param

* Document and fix reducefactor, Add Graph Stats to Graph Data

* Standardise times in graphdata

* Fixed renamed function for History GraphData
2018-02-20 14:57:56 +00:00
Rémy Jacquin
8d4fca33b1 webui: Devices in maintenance show as blue on worldmap widget (#8207)
* Added new worldmap widget setting:
The user can chose how down devices under maintenance are shown
Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Added documentation related to this feature

Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Change icon to light blue and remove option
Reverted "Added new worldmap widget setting"
Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-02-18 20:43:24 +00:00
Kevin Krumm
16424ef3a4
docs: Added more info about wireless sensors (#8243)
* docs: Added more info about wireless sensors

* Update Device-Sensors.md
2018-02-11 16:18:49 -06:00
Tom Sealey
63cc936f60 docs: Created Gateone 3rd party integration doc (#8229)
* Create Gateone.md

Doc for Gateone integration.
Credit to davama who wrote most of this.

f6a7e5973f

* Update Gateone.md

* Update mkdocs.yml

added gateone.md
2018-02-10 20:52:26 +00:00
Richard Lawley
2018c9f804 api: Added History to Billing API Functions (#8209)
* Add Previous Period options to Bill API functions

* Add Bill History API Functions
2018-02-09 21:14:55 +00:00
Tony Murray
496575ea99 docs: Add composer back to the CentOS install docs (#8224)
* Add composer back to the centos install docs
This is for CentOS 7, not CentOS 6...

* In tree composer requires php 7.2

* Rename socket file to match

* Clean up the initial config.php a bit
Add clearer releasing info in that config.php
Update the manual update instructions
2018-02-08 21:46:55 +00:00
Kevin Krumm
a4bc98e555 docs: update Dashbaord iframe (#8232)
updated doc with iframe using info from #PR8219
2018-02-08 10:32:01 -06:00
Tony Murray
9b9fb121ab
Remove dependencies from the repository, update install docs (#6920)
After vendor is un-indexed restore the contents so things keep working.
2018-02-06 08:17:44 -06:00
Tony Murray
11147d3bbf
Major Processors rewrite (#8066)
* Extract DiscoveryItem and move some things to better places.
Extract model class
Fix up model construction.  I have problem with construction...
Makeshift model working.  Switch constructor to factory.  discover() and create()
Support legacy discovery.
Remove uneeded custom pollers
Remove netonix custom detection as we try ucd on all os now.
Add a few yaml procs.  Fix a couple things.
More processor discovery conversions
Move Calix e7 to standard hrProcessorLoad, but it doesn't fully implement the HR-MIB, move things around to make it work.
Add a few yaml procs.  Fix a couple things. Correct some stupid mib stuff.
Move more, drop php 5.3
Add netscaler which uses string indexes.  Port fiberhome to yaml and use skip_values
More conversions.  BroadcomProcessorUsage Trait
Serveriron and Ironware share some mibs.  Create a common abstract os for them.
Add yaml support for mib specification in each data entry
Make legacy discover_processor() set 0 for hrDeviceIndex

Untangle Dell switch OS processors

Use use shared OS for groups if they don't have a specific group.
fix silly mib mistake

Make index optional

Move HR and UCD to Traits and out of Processor.

* forgot to update the fortiswitch index

* Make sgos and avaya-ers match the old index.

* fix comware test data

* fix merge errors

* fix dsm and remove pointless empty modules

* file not found exception is in the wrong place.

* Updated processor development docs
2018-02-05 07:39:13 -06:00
Neil Lathwood
8163112c72
docs: Changelog 1.36 (#8186) 2018-02-01 21:20:44 +00:00
iTeV
54dac46f6c docs: Changed err-msg to message for API docs (#8182) 2018-02-01 19:52:38 +00:00
Kevin Krumm
8a917683ca docs: Added memory alert template (#8176)
basic memory alert template.
2018-01-31 21:55:17 +00:00
Kevin Krumm
5384d1ca15 docs: Fix for alert template port utilization (#8175)
* docs: fix for alert template port utilization

Alert Template for port utilization. Fix from jdtp ;)

* changed to hostname
2018-01-30 21:16:18 +00:00
Kevin Krumm
8000e8a01a
docs: fix FAQ for device warn (#8173)
* docs: fix FAQ for device warn

It was missing the time part.  :)

* Update FAQ.md
2018-01-29 18:47:29 -06:00
Kevin Krumm
a7fe7191ae docs: Fix for syslog-ng config in the docs (#8160)
* fix for syslog-ng config

I guess it didn't copy over correctly the last fix. It was reported to not be working I tested this and seems to be okay now at the time. It was showing 00:00 00 0000

* Update Syslog.md
2018-01-29 20:56:04 +00:00
Lutz Willek
881e0fe4c1 docs: Changed check_mk service from xinetd to systemd (#8101)
* changed check_mk service from xinetd to systemd

* added xinetd section
2018-01-26 20:51:45 +00:00
Kevin Krumm
ddc40fcea2
docs: fix syslog-ng config (#8136)
reported by jaager on discord.
2018-01-23 07:43:18 -06:00
Neil Lathwood
10e5873f55
small fix for test unit docs (#8122) 2018-01-21 20:23:55 +00:00
Rémy Jacquin
e12e6720f8 api: Added add_service_for_host endpoint to API (#8113)
* Add add_service_for_host endpoint to API

Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Change permissions to allow users to modify device

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-01-21 19:56:57 +00:00
Kevin Krumm
cf2411934b
docs: add value sensors and temperature template (#8120) 2018-01-21 11:44:28 -06:00
Tony Murray
494c29aefa
Split save-test-data.php into two scripts, allow mass update (#8115)
* Add mass update to save-test-data.
Fail when snmpsim doesn't start and try to give a hint.

* Split save-test-data.php into two scripts

One for updating snmprec files.
One for updating db dump files.
2018-01-20 20:22:47 -06:00
mattie47
2b1d63c0ef Update Test-Units.md (#8093)
Fixed name of save-test-data.php script.
2018-01-18 21:12:43 +00:00
FTBZ
c80f9726c8 feature: Added new EER and Water Flow Rate sensors (#8104)
* Add new EER sensor

* remove bad RRD option

* add waterflow sensor

* add test data result

* added test json data
2018-01-18 20:50:19 +00:00
Misha Komarovskiy
06c46765f2 api: Added API calls for routing and resources management (#8017)
* api: Added API call for VRF listing

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Added API call to retrive VRF by ID

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Change list_vrf permissions

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Added new api calls for routing and resources mgmt

* This commit includes list_cbgp, list_vlans,
list_ip_addresses, list_ip_networks and
get_network_ip_addresses calls

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* fix: Correct indentation issue in get_ip_addresses

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Fix per device permissions and messages

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Fix identation issues

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Remove excessive result counters

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Add list_locations api call

* Get devices by location not very comfortable
without list all locations api call

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Spelling fix

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-18 15:43:15 +00:00
Misha Komarovskiy
df731c165c refactor: Rename cisco-vrf to vrf and enable discovery for junos os (#8033)
* device: Enable cisco-vrf discovery for junos os

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* refactor: Rename cisco-vrf module into vrf

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-17 12:09:19 +00:00
barciella
afc6137146 Fixed documentation. This way autodiscovery with snmpv3 works (#8091) 2018-01-16 12:21:44 -06:00
Neil Lathwood
d26d142700 webui: Added Oxidized config validator (#7983)
* webui: Added Oxidized config validator

* final updates

* small changes like box height + indicate config is valid

* docs + small changes
2018-01-11 07:21:05 -06:00
Neil Lathwood
0a7ec12fd9
fix: Fixed the default fping config + changed variable name (#8060)
* fix: Fixed the default fping config and added docs on caveats to changing timeout

* millisec -> interval

* removed retries config option, no needed

* Update Performance.md
2018-01-09 20:16:48 +00:00
Tony Murray
b2a54dae3b
Testing updates: module testing and collect only (#8063)
* Testing updates module testing and collect only

* cache clear no-longer needed.
2018-01-09 11:40:26 -06:00
Tony Murray
dea1a26ee6 docs: Emphasize snmpsim is required for most tests (#8059) 2018-01-09 16:36:39 +00:00
mattie47
d20508153c Update Initial-Detection.md (#8053)
* Update Initial-Detection.md

While trying to add support for awplus under https://github.com/librenms/librenms/pull/7670, I was advised to delete the os_defs.cache file. 

This was hugely helpful, as I wasted a number of hours trying to figure out why I couldn't get any changes to the OS configs to work.

* Small updates
2018-01-09 09:33:09 -06:00
Zmegolaz
eac128aca8
Fix: Override -H for check_load service. Fixed backslash escaping. (#8020)
* Added check_load.inc.php.

* Combined load graphs. Removed extra backslashes from all graphs. Escaped backslash in mysql file.

* Added a note about local only service checks to the docs.
2018-01-08 09:35:15 +01:00