Commit Graph

17336 Commits

Author SHA1 Message Date
cjwbath
aa51e46350 Don't call clean() on the inputs to the SNMP settings form (#11709)
* Don't call clean() on the inputs to the SNMP settings form, it'll call
strip_tags() and break values with angle brackets in.

* Call htmlspecialchars when outputting DB values to HTML instead

* Escape other stuff that should have been validated elsewhere, just in case
2020-06-08 08:16:40 -05:00
Tony Murray
224e191f14 Fix pip3 validation (#11788)
don't error when pip is missing
2020-06-08 08:11:53 -05:00
PipoCanaja
35b4e1459e Arista VRF discovery support (#11421)
* arista vrf discovery
* more mibs
* tests
* codeclimate
2020-06-08 14:29:18 +02:00
SourceDoctor
125ecb4bde Eventlog Application Alert in it's Severity Colour (#11660)
* Eventlog Application Alert in it's Severity Colour

* use 'use'

* enums

* enum key list

* typo fix
2020-06-08 10:56:45 +02:00
PipoCanaja
ea2928babd VRP FDB table correctly parsed on some CE switches (#11766)
* vrp FDB table corrected on CE switches

* sleep 5 in snmpsim to run tests.

* 6 seconds wait when snmpsim.fork is called from bootstrap

* rollback in Snmpsim Class

* Update bootstrap.php
2020-06-07 23:32:15 -05:00
Tony Murray
147ba0f00d Fix latency tab bugs (#11787)
when there is no latency data
fix smokeping error
2020-06-07 23:18:18 -05:00
SourceDoctor
7b93b386a3 Alert Template - sort Alert Rules alphabetic (#11786) 2020-06-07 14:46:33 +02:00
Tony Murray
d75d628a53 Validate autoload first (#11785)
* Validate autoload first

* missed
2020-06-06 23:49:03 -05:00
RobJE
f590e63d3a Doc debian 10 updates (#11488)
* add package acl to required list

There are ways to install debian without the acl package. Add it to the
required list

* replace systemctl with more generic service

Debian does not require systemd. This makes calling systemctl to restart
processes a problem. The more generic way in Debian is to call service

* rm command allows multiple parameters

* use nginx config in a more Debian way

In Debian webservers are configured using -available and -enabled
directories. Make better use of this stucture.

* better snmpd.conf handling

Instead of overwriting snmpd.conf inform Debian of the change.

Because snmpd.conf contains sensitive info make it only user accessible

* replace nano with users preferred editor

* revert back to nano as editor

* remove dpkg-divert as per PR discussion
2020-06-06 18:43:42 +02:00
Hayden
4b766b4f10 Lighter greens and blues for bandwidth graphs, for both light and dark themes (#11759) 2020-06-05 21:04:03 +02:00
O Palivan
53e9579ae9 Added Packetlight PL2000 support (#11782)
convert Watts to Dbm and call user_function on limits
dbm graphs summary
pl1000eTests update
Tests OK
2020-06-05 20:58:34 +02:00
Negatifff
a8448a0dff Added Edgecore ECS4100-28T OID (#11778) 2020-06-05 20:57:24 +02:00
Tony Murray
5c6c8844e8 Auth middleware refinement (#11767)
* auth middleware group

* dummy page for legacy php scripts instead of recursively calling init.php

* Test and fix routing scenarios

* fix api auth

* disable unused auth routes
2020-06-05 11:50:58 -05:00
Tony Murray
6da2f43e6b Debug pass-through exceptions for Ignition (#11773)
* pass-through exceptions for ignition

* Warn when APP_DEBUG is enabled
2020-06-05 11:50:01 -05:00
SourceDoctor
9836aab818 Show full description text on Asterisk RRDs (#11742) 2020-06-04 23:14:15 -05:00
TheGreatDoc
c232cf0e2b added colour priority to the label column (#11607) 2020-06-04 22:25:34 -05:00
ryanheffernan
801d9a1dcf Workaround for bad entSensorPrecision values (#11757) 2020-06-04 22:23:59 -05:00
pepperoni-pi
28ae37c406 Added ability to use JSON directly in Msteams Transport (#11129)
* Added ability to use JSON directly in Msteams Transport

* Update Transports.md

* Update Msteams.php

* Update Msteams.php

Added boolean to fix test transport button

* Update Templates.md

Added JSON example and modified titles slightly.

* Update Templates.md

Moved MS Teams examples under "Examples" header since they are no longer formatted in HTML

* Update Templates.md

* Update Templates.md

* Update Msteams.php

changed condition to use $obj['id'] rather than $obj['msg']

* Update Msteams.php
2020-06-04 22:18:49 -05:00
Albert Siersema
cd362b7983 Fix missing PoE port graphs for Cisco Catalyst 9K (#11698)
* Fix missing PoE port graphs for Cisco Catalyst 9K

* Reworked code: 2 assignments, added tests

* Simplify code

Checking the MIBs...
CISCO-POWER-ETHERNET-EXT-MIB: AUGMENTS { pethPsePortEntry  } 
POWER-ETHERNET-MIB: INDEX { pethPsePortGroupIndex , pethPsePortIndex  }

This means cpeExtPsePortEntry is always indexed by exactly 2 values.  No point in populating slot.subslot.port

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-04 22:10:06 -05:00
tamirhad
e26498ad91 Fix performance issue in loadbalancers module (#11771)
* Update Component.php

* wrong quotes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-04 20:36:43 -05:00
Tony Murray
2a5b1fd071 Clearer python-memcached info (#11772) 2020-06-04 20:36:25 -05:00
SourceDoctor
b6875b73c7 Windows Device Overlib Equalation to Linux (#11730) 2020-06-02 23:51:03 +02:00
PipoCanaja
90d4ef710d VRP with new Discovery model for hw/serial etc (#11756)
* VRP with new Discovery model for hw/serial etc

* tests
2020-06-01 22:56:53 -05:00
PipoCanaja
82796c389b misplaced_test (#11758) 2020-06-01 22:52:04 -05:00
Tony Murray
ee7fa1e1cb Change github-remove shebang to python3 (#11753) 1.64.1 2020-06-01 11:24:49 -05:00
Tony Murray
585a658f08 Fix Samsung Printer (#11752) 2020-06-01 11:24:27 -05:00
nepeat
736a6a419c Make the Discord transport more formatted for Discord. (#11461)
* Make the Discord transport more formatted for Discord.

* Generate the fields using a function for cleaner code.

* Handle cases where the elapsed time does not exist in the object.
2020-06-01 02:04:12 +02:00
Tony Murray
ec50217173 More release categories (#11750) 2020-05-31 16:23:14 -05:00
Josh Baird
aa4f6ff989 Add OS support for Aviat WTM (#11654)
* Add support for Aviat WTM

* Remove sleeps

* Rename MIBs

* Remove old MIBs

* Fix mystery tabs

* 4 spaces, not 2

* Bybebye, whitespace

* Moar whitespace

* Update AviatWtm.php

* Update aviat-wtm.yaml

* Delete aviat-wtm.inc.php

* Update aviat-wtm.snmprec

* Update aviat-wtm.json

* Update AviatWtm.php

* Update aviat-wtm.json

* Update AviatWtm.php

* Update aviat-wtm.json

* Update AviatWtm.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-31 16:19:07 -05:00
Tony Murray
e8dff37eef Bump version to 1.64 1.64 2020-05-31 10:48:00 -05:00
Tony Murray
75e36fbffb Changelog for 1.64 2020-05-31 10:47:58 -05:00
Tony Murray
4caa73089d Set primary device in module test helper (#11749)
* Set primary device in module test helper

* unneeded one
2020-05-31 10:18:54 -05:00
arrmo
0af2358bfa Fix another mysql error in isMaintenance() (#11746) 2020-05-31 09:55:52 -05:00
Tony Murray
24d4a50cdf Fix wireless sensor polling unit display (#11748) 2020-05-31 09:54:01 -05:00
Tony Murray
0bf160eddf Fix dev:check os only tests (#11747) 2020-05-30 21:42:30 -05:00
PipoCanaja
d308af07c1 Added TPLINK vlans support (#11697)
* tplink vlans

* codeclimate
2020-05-30 18:39:15 -05:00
SourceDoctor
4977394a1e Fixing API Creation Error Message (#11745) 2020-05-30 18:26:02 -05:00
PelliX
5f3b82de6f Added discovery and graphing for JunOS (SRX) RPM probes (#11187)
* Added discovery and graphing for JunOS (SRX) RPM probes

* Proposed changes for a percent based sensor type

* Fixed missing MIB declaration in JunOS YAML discovery file

* Updated Health-information.md to reflect the new percentage value type

* Added separate test data for junos_rpm type

* Update sensors.php

* Update sensors.php

* Update functions.inc.php

* test re-run

* Update junos_rpm.json

* percentage -> loss

* add ifSpeed prev test data

* mis-merge

* update sensors

* and bgp...

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-30 18:24:43 -05:00
Albert Siersema
4f859cee65 Fix dynamic group membership rule for devices.status equal 0 (#11699)
* Fix dynamic group membership rule for devices.status equal 0

* Fix dynamic group membership rule for devices.status equal 0 - moved code to right before running alerts
2020-05-30 18:23:31 -05:00
SourceDoctor
4b52cab776 fix RRD in MySQL (#11740) 2020-05-30 17:43:41 -05:00
Tony Murray
fa12c4ca2f Fix poller enabling graphs for display (#11743) 2020-05-30 17:42:50 -05:00
arrmo
67cb7b4dc3 Remove int width from db schema (MySQL 8) (#11725)
* Remove width from db schema

* Update to address DEFAULT_GENERATED validation, and push new schema

* Only remove width from integer types

* Build from fresh db

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-30 17:06:53 -05:00
Tony Murray
24b6222712 fix asa test data (#11744) 2020-05-30 17:04:49 -05:00
Erik
f9c2b7606b Fixed Cisco ASA Lan2Lan typo (#11704) 2020-05-30 12:19:46 -05:00
arrmo
1626c2f0ed Address Incorrect DATE value in isUnderMaintenance (#11736)
* Address Incorrect DATE value in isUnderMaintenance

* Remove end_recurring_dt issue
2020-05-30 11:49:34 -05:00
SourceDoctor
6b7b143cbb Show full description text on MySQL RRDs (#11738)
* Show full description text on MySQL Connections

* further adjustments
2020-05-30 11:46:58 -05:00
PipoCanaja
f4c2ca8d24 New Device: Paradyne SHDSL modems (#11679)
* paradyne

* paradyne logo

* tests

* Update paradyne.svg
2020-05-30 18:41:23 +02:00
mattosem
8169adf784 New Device: PowerTek/BladeShelter PDU support (#11731)
* Added PowerTek/Bladeshelter PDU support

* Corrected SVG

* Added test data

* Rename SPSv1-MIB.mib to SPSv1-MIB
2020-05-30 18:25:13 +02:00
Tony Murray
f96a24a916 Check python3 and pip3 versions (#11739) 2020-05-30 11:09:54 -05:00
Tony Murray
6a4f2025c3 Check running user lnms (#11726) 2020-05-30 09:23:21 -05:00