15848 Commits

Author SHA1 Message Date
b7ae282848 Revert "Added Alerta Alert Transport (#9673)"
This reverts commit 4ed8f67e0dffe1cd18ab5bddd6a6b3046e2fe45d.
2019-01-26 07:59:04 +01:00
4ed8f67e0d Added Alerta Alert Transport (#9673)
* Added Alerta Transport option.

* fixed a couple codacy requirements

* Update Alerta.php
2019-01-25 15:37:27 -06:00
09d500812e Mattermost Alert Transport (#9711)
* fixed #5659
Added support for Mattermost notifications.

George Pantazis <gpant@eservices-greece.com>

* Update Mattermost.php

* changes as requested by @murrant
2019-01-25 15:35:42 -06:00
590c488d74 Rewrite devices page backend (and a little frontend) (#9726)
* Implement devices table data output

* initial filter

* Add select2 filters
improve table header layout
improve init_select2

* bump versions to be safe

* add group filtering
fix location sorting

* allow filter value morphing

* add missing state filter

* remove the old devices endpoint
2019-01-25 15:31:33 -06:00
ce6fae8dd1 Rewrite netcmd and ripe whois tools (#9724)
* Port RIPE whois to Laravel

* remove netcmd.php and port to laravel.
Escape CLI and set it to stream output live.

* fix browser buffer bust on a few browsers.
2019-01-25 15:30:58 -06:00
003f3bdce0 Update Cisco Product Mib (#9735) 2019-01-25 08:18:00 -06:00
afedb034d3 update docs on mkdocs (#9631)
* be more specific about duplicate IP addresses

* generate TAGS for emacs

* note on using mkdocs, and make docs rule

* ignore emacs temp files

* Update .gitignore

* Update functions.php

* Update Makefile

* Update Creating-Documentation.md
2019-01-24 00:13:32 -06:00
56ef747e70 Hook many commands into the lnms script (#9699)
* Pass through commands for lnms.

* WIP

* Add device kind of working

* fill in more commands
debug

* text update
2019-01-23 23:52:08 -06:00
f26ca93650 Validate default config seeder (#9723)
Alphabatize them too.
Found 3 more missing and 2 unneeded.
2019-01-23 23:42:53 -06:00
59aa4f36e9 Handle db update errors better in the installer (#9701)
* Handle db update errors better in the installer

* show retry button on error, add exclamation point so we don't do that accidentally
2019-01-23 23:42:19 -06:00
1bb782b6d5 Fix missing config setting in DB seed alert.transports.mail (#9721) 2019-01-23 08:36:55 -06:00
d4f32a250e Support for Alcatel OmniPCX (#9375)
* device: support for Alcatel OmniPCX Server

* device: support for Alcatel OmniPCX Server - add test data

* rename

* Add a new versatile type of sensor, without unit - doc extension

* tests data updated for omnipcx

* new count test after funny rebase

* clean

* tests

* index in yaml file ...

* Update omnipcx.json

* try to add pbx state

* Change function snmpwalk_cache_oid to allow snmpvalue without index

* testdata

* Adapt the discovery_schema (to allow a non_indexed oid)

* Update snmp.inc.php
2019-01-22 17:34:45 -06:00
ACL
1fd967a7dd Improve index check for compatibility with different versions of the DDOS (#9698)
* Updated DataDomain MIB, Added DataDomain Storage poller and discovery

* Fixed issues pre-commit issues

* Removed extra blank lines

* Make polling less redudant

* Remove blank line

* Remove device os detection since it's not needed. Add test data for DataDomain

* For better compatibility, we will check if the $index is null prior to adding the storage

* Fix:  is undefined...

* Update datadomain.inc.php

* Update datadomain.inc.php
2019-01-22 17:33:36 -06:00
fa8d7a008d Fix Sentry3 voltage sensor discovery (#9714)
* Fix Sentry3 voltage sensor discovery

Previous fix broke voltage sensor discovery with superfluous .1 in the SNMP OID.  I have fixed my install with this patch but other testing should probably be done.

* Update sentry3.json
2019-01-22 17:11:26 -06:00
9d843650b7 Improve display for 802.1X NAC (#9706)
* improve graphical display for 802.1X NAC

* AuthZ col width

* function for humanize_duration

* function for humanize_duration

* Update legacy_index.php

* Update librenmsv1.blade.php
2019-01-22 17:10:54 -06:00
28ea91d7d9 Eltek Valere more sensors (#9713)
* Eltek Valere more sensors

* Fix runtime, temperature and format runtime

* remove "runtime" sensor

* Don't need the pre-cache

* Parenthesis

* match previous indentation
2019-01-22 17:06:27 -06:00
8176470795 Try to fix sql schema 278 (#9715) 2019-01-22 17:05:54 -06:00
d64f3acb15 Refactor eloquent base (#9716)
* extract PortRelatedModel and DeviceRelatedModel

* add scope for inDeviceGroup

* handle null device group
2019-01-22 17:04:28 -06:00
e2a8349440 Adding Sonicwall SMA 400 support (#9555)
* Adding Sonicwall SMA 400 support

* Added metric clients for use in SSL VPN client alerting
* Support for specifying multiple sensors for clients metric
* RAM info supported
* CPU info supported
* Added test data

* Dashes in graph aren't really useful

* Updated test data with script from upstream (#10)

* Fix style errors (#11)

* Now 8 spaces on line 56

* port clients sensor to count
Some sensor cleanups (move all icon definitions to one spot)

* update port data

* add sensor test data.  Make a guess at userLicense output since it is missing.

* cleanup missed items

* typo

* Updating test data

* Fixed missing CPU info

* Recreated test data

* Recreate test data after rebase

* Test data without ignore statements in config
2019-01-22 17:00:33 -06:00
8ce81f2423 Update database schema display (#9708)
* Update database schema display

* handle missing migrations table
2019-01-22 06:47:07 -06:00
45e0e5e19a count sensor cleanups (#9707) 2019-01-20 13:37:08 -06:00
e0da083f5c New OS: Schleifenbauer, entity-physical improvements, various html page fixes (#9471)
* Fix some comment and documentation typos.

* Fix various entphysical page display issues.

- Resolve flickering during loading (missing liClosed for nested items).
- Clicking a sensor actually takes you to the matching graph now.

* Add a few nicecase() calls to clean up html page display.

* Create discover_entity_physical() function

- Add discover_entity_physical() function into includes/discovery/functions.inc.php
- This allows for an easy implementation of OS-specific entity-physical discovery.
- Update includes/discovery/entity-physical/entity-physical.inc.php to use the new function.

* Add power_consumed and power_factor sensors.

* Two new icons, make more entPhysical data visible.

* Pre-commit fix: blank line found at end of control structure.

* Add Schleifenbauer OS support.

* Now really fix the comment typo.

* Fix parsing mistakes.

* Add a generic count sensor.

* Make the Schleifenbauer discovery use count instead of state sensors.

* Don't place count sensor at the top, add sane limits for Schleifenbauer

* Finetuning the rrd_options, changing Schleifenbauer sensor names.

* Update schleifenbauer.svg

* optimize logo too

* add test data

* fix sensor value display (spaces break it)

* update entPhysicalIndex
2019-01-20 12:24:11 -06:00
ef41c9fd7d Refactor FDB Tables to Laravel (#9669)
* Refactor FDB Tables to Laravel
Hopefully much better performance with large tables.
Better dns resolution (limit to 4 IPs tried per MAC)

* update style

* de-duplicate IPs

* fixed column width for mac and vlan

* Make DNS column visibility control whether or not we send the dns query.
Hide that column by default.
2019-01-20 08:43:36 -06:00
e2c4fa971e Huawei iBMC absent state grey (#9691) 2019-01-20 01:35:53 +01:00
678315e1a2 Update Configuration.md 2019-01-19 16:58:24 -06:00
85a069ae0b Update Fast-Ping-Check.md (#9705)
Change the step 3 cron path to the correct filename as given in from the install docs.
https://docs.librenms.org/Installation/Installation-CentOS-7-Apache/
2019-01-19 15:59:23 -06:00
56128bab36 NAC documentation (#9704) 2019-01-19 13:08:10 -06:00
9ad492ce19 Better IP exists feedback when adding a device (#9697)
* Better IP exists feedback when adding a device

* Use Eloquent, push query into function and rename function.
2019-01-19 12:46:03 -06:00
96d9cfd672 FreeBSD mempools Fix (#9659)
* add hrMemorySize polling

* switch to sysObjectID that is more gereric

* add snmprec data

* Create pfsense.json
2019-01-19 12:38:56 -06:00
59d4dc5490 fix whitespace (#9703) 2019-01-19 12:04:49 -06:00
a6451860fc Fix if discover (#9643)
* fix_if_discover

* Update ports.inc.php

* Fixed overwriting IfDescr and IfAlias overwriting

* removed whitespace

* added ifname, ifalias and ifdescr copy if it is emtpy or null

* removed ifAlias from update to prevent overwrite

* removed ifName and ifDescr from update to prevent overwrite

* added is_port_valid before doing copy actions between ifDescr,ifAlias&ifName also added back ifDescr&ifName update

* Update ports.inc.php

* Update functions.php

* Update ports.inc.php

* Update exa_e7-2.json

* Update fortigate.json
2019-01-19 11:48:30 -06:00
b55938f031 Nokia vrf bgp (#9622)
* first commit

* clean code

* add snmpsim data for bgp

* renumber sql patch

* clear public ip

* update  misc/db_schema.yaml

* add test data and renumber sql-schema

* sql-schema

* sql-schema

* Update module_tables.yaml

* Update module_tables.yaml

* Update timos.json

* Update timos.snmprec

* Rename 281.sql to 282.sql

* update test data

* db migration

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* update db schema

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* Update db_schema.yaml

* update schema
2019-01-19 11:44:32 -06:00
b4741442c5 VRP: implement NAC data polling (#9592)
* VRP: implement NAC data polling

* typo

* Add and alter ports_nac table

* SQL syntax

* Adding fields in the GUI

* Set the default column visibility depending on OS

* ./build-schema.php

* Add vlan support for Cisco and correct ios_nac testdata

* Improve date display and column ordering

* Add vrp_nac testdata

* revert old DB schema

* db in migration syntax

* build-schema

* moment.duration() for time_left and time_elapsed
2019-01-19 11:26:52 -06:00
b32a68dbfa Fix validate error (#9700)
* Fix a couple install issues
validate failing too early caused an class not found error
return success in the db update output

* revert db-update changes, for separate PR
2019-01-19 09:27:00 -06:00
8f07eceda3 Alert Rules: fix for critical and warning rule (#9688)
* Alert Rules: added sensor alert

To sensor alert Critical and Warning. 
sensors.sensor_alert = \"1\"

* Update alert_rules.json
2019-01-19 09:26:05 -06:00
e55412d594 Update Mimosa.php (#9695)
* Update Mimosa.php

Added a divide by 10 to functions discoverWirelessNoiseFloor & discoverWirelessSnr. Per Mimosa SNMP OID reference (http://backhaul.help.mimosa.co/snmp-oid-reference) note 1, which states "Integer value contains one digit of decimal precision (divide by 10 to shift decimal)"
Tested using a Mimosa B24 link.

* Update mimosa_b5.json
2019-01-18 12:47:34 -06:00
3a1d13dcd1 Rename librenms script to lnms (#9696) 2019-01-18 11:39:10 -06:00
5d41c851db docs:Update SNMP-Trap-Handler.md (#9654)
* Update SNMP-Trap-Handler.md

Added additional info to assist with the snmpd configuration on Ubuntu.

* Update SNMP-Trap-Handler.md

* Update SNMP-Trap-Handler.md

* Update SNMP-Trap-Handler.md

* Update SNMP-Trap-Handler.md

* Update SNMP-Trap-Handler.md

* Update SNMP-Trap-Handler.md
2019-01-17 15:48:04 -06:00
ba71f69240 Update seeds to only insert if data isn't existing (#9689)
Fix out-dated alert templates
2019-01-17 12:33:42 -06:00
74c57441e2 Powerdns app to json (#9680)
* Update powerdns app for json

* test data

* qsize-q is value

* add legacy test data

* docs

* Update linux_powerdns-v1.json
2019-01-17 11:43:43 -06:00
73fa616739 Cable Modem Graphs for TopVision OS (#9679)
* Add custom CM Graphs for TopVision OS

* updated test data
2019-01-17 11:43:18 -06:00
5f752361f5 Merge ethernetprobe2 into akcp and improve akcp (#9465)
* Merge ethernetprobe2 into akcp and improve akcp
Use higher resolution temperature values if available
Properly hand F/C temperature scales (LibreNMS always uses C)
Add current, voltage, airflow (no test data)
Move humidity to yaml

* Update akcp.snmprec

* Update akcp-serverprobe8.json

* Add group

* Update test data
remove old MIB
2019-01-17 11:38:33 -06:00
f1928461a8 Run both legacy schema and migrations in the same run if needed (#9686)
That way any new migrations get applied when needed
2019-01-17 11:37:14 -06:00
3099b6793a Make Eloquent models in the correct place (#9681)
* Make Eloquent models in the correct place

* Docs to indicate what command should be run to make a new table
2019-01-17 09:00:25 -06:00
10f6eac677 Validate database constraints (#9670)
* Validate database constraints

* Fix some differences with migrations

* Update functions.php
2019-01-17 08:59:42 -06:00
9da12ee8af Fix github-remove database dir cleanup (#9678) 2019-01-17 08:58:46 -06:00
e403d01967 Fix first column validate (#9683)
* Fix first column validate

* fix index, remove vardump
2019-01-17 08:58:26 -06:00
a991270fa7 Fix dbSchema 1000 skipping schema files (#9685) 2019-01-17 08:53:32 -06:00
f251c524b5 Merge pull request #9677 from murrant/dbal
add dbal so users can update the database
2019-01-16 17:49:43 +01:00
6e8e2eed0d add dbal so users can update the database 2019-01-16 09:52:56 -06:00