Commit Graph

6760 Commits

Author SHA1 Message Date
Tony Murray
dae9c1f524 Merge pull request #11800 from tamirhad/handle-nan
Arista sometimes returns NaN value when polling
2020-06-14 16:36:52 -05:00
Tony Murray
67e637e4ca Maintenance Windows: recurring now works overnight (#11389)
* Alert Rules use Carbon
Use carbon for time queries, need to be careful of timezone quirks.  Timestamps won't have that issue

* Convert existing schedules to UTC

* we only need start end... we already have start/end

* Make AlertSchedule::isActive work

* Table display working (and using Eloquent)

* Schedule creation updated

* WIP

* use Eloquent mutators/accessors

* recurring_day mutator/accessor

* WIP UI

* Fix SQL to handle outside times

* fix up some ui issues

* Convert alert-schedule to new style
Improved sorting customization

* fix whitespace

* support sqlite

* Fix schedule creation missing id

* Fix Device::isUnderMaintenance() add location relation
2020-06-14 16:35:50 -05:00
Hans Erasmus
f8e8dfe3a5 Gigamon GigaVUE basic support (#11824)
* Gigamon GigaVUE basic support

* delete os/gigavue.inc.php it is not used

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-14 21:05:54 +02:00
Tony Murray
eb6370acd4 Fix schedule creation missing id 2020-06-14 12:12:13 -05:00
PipoCanaja
15fe63d6b1 Feature: skip_value can check OID existance (#11822)
* exists for skip_values

* AR routers are using another logic for SFPs Power

* schemas

* tests
2020-06-14 09:21:22 -05:00
SourceDoctor
529f364ada Ping Perf fix while running Squid (#11823)
* Ping Perf fix while running Squid

* Update squid.inc.php

rename variable
2020-06-14 13:04:33 +02:00
Hayden
f7c5e13c2b Add new hardware model for Eltek/enexus (#11809)
* new eltek hardware version begins with SPS-FPS

* updated test data for enexus
2020-06-14 13:02:45 +02:00
SourceDoctor
f9b746577e Webui - Poller Log Link Overlib (#11819) 2020-06-13 16:18:38 +02:00
Tony Murray
13ade9ab6c Merge branch 'master' into alerts-carbon 2020-06-12 07:48:51 -05:00
footstep86
031c644ab3 Implemented a generic approach for ifHighSpeed values that cannot be … (#11504)
* Implemented a generic approach for ifHighSpeed values that cannot be stored in the database

Typo

* Added os check
2020-06-12 07:45:00 -05:00
SourceDoctor
21cea61e37 rewrite Device Group Tab (#11808)
* rewrite Device Group Tab

* travis
2020-06-11 11:12:16 +02:00
Negatifff
4c9a83cd55 Add device groups in overview tab little fix (#11806)
* little title fix

* Update dev-groups-overview-data.inc.php

* Update dev-groups-overview-data.inc.php

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-06-10 17:41:19 +02:00
Negatifff
ff55be7d7a Add device groups in overview tab (#11796)
* Added Device Groups panel on Overview tab

* spaces and commas fix

* added color in group name

* spaces and commas fix2

* fix3

* fix attempt 4

* change text color to preexisting class

* change text color to preexisting class v2

* rename title

* capitalize

* rename title again

* title, title... again
2020-06-10 12:38:33 +02:00
arrmo
ba1302805f Change Units on Noise Floor (#11790)
* Change Units on Noise Floor

I may be wrong, but I think this should just be dBm (i.e. integrated over the carrier bandwidth). The numbers look much too high to me to be on a per Hz basis.

If I am correct here, this should also be updated in the web interface.

Thanks!

* Update php, correct units for Wireless noise-floor

* Wireless Frequency, don't format_si, to avoid kMHz units

* Update Wireless noise-floor units, in RRD plots
2020-06-10 10:41:36 +02:00
SourceDoctor
213a11eb98 Merge remote-tracking branch 'upstream/master' into app_dhcp_enhancement 2020-06-09 20:37:30 +02:00
tamirhad
c785bd4db0 Arista sometimes returns NaN value when polling which cannot be written to DB 2020-06-09 13:51:36 -04:00
dupondje
4611b19ae5 Fix Rancid GIT (#11795) 2020-06-09 09:01:44 -05:00
Tony Murray
28ee0f1823 fix typo (#11798) 2020-06-09 08:05:04 -05:00
PipoCanaja
85adecbc04 Update arubaos-cx.yaml 2020-06-09 10:27:22 +02:00
PipoCanaja
1d41b3490f "sysObjectID" should be enough
And "Aruba" as sysdescr is a too wide to be safe here
2020-06-09 10:27:06 +02:00
XxPatrickxX
682321190c Update arubaos-cx.yaml 2020-06-08 14:29:25 -05:00
XxPatrickxX
4a1e425fe9 Update arubaos-cx.yaml 2020-06-08 14:18:26 -05:00
SourceDoctor
1093315700 Merge branch 'master' into app_dhcp_enhancement 2020-06-08 20:51:41 +02:00
TheGreatDoc
946e90b68d Added Arista SN (#11737)
* Added Arista SN

* test data

* Fixed json

* You accidentally removed the serial

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-08 08:26:22 -05:00
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
PipoCanaja
35b4e1459e Arista VRF discovery support (#11421)
* arista vrf discovery
* more mibs
* tests
* codeclimate
2020-06-08 14:29:18 +02:00
XxPatrickxX
a5e8b5f55c Update arubaos-cx.yaml 2020-06-08 06:57:00 -05:00
XxPatrickxX
1d15158c69 Create arubaos-cx.yaml
Aruba CX definition
2020-06-08 06:41:50 -05: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
SourceDoctor
7b93b386a3 Alert Template - sort Alert Rules alphabetic (#11786) 2020-06-07 14:46:33 +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
SourceDoctor
9836aab818 Show full description text on Asterisk RRDs (#11742) 2020-06-04 23:14:15 -05:00
ryanheffernan
801d9a1dcf Workaround for bad entSensorPrecision values (#11757) 2020-06-04 22:23:59 -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
Jonathan Karras
c1a3282dfa Add APC Cooler detection
Adds InRow DX and Uniflair SP models.
2020-06-02 18:01:12 -06: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
Tony Murray
585a658f08 Fix Samsung Printer (#11752) 2020-06-01 11:24:27 -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
Yacine BENAMSILI
cacc835176 Feature: F5 LTM bandwidth controller 2020-05-31 14:30:07 +02:00
Yacine BENAMSILI
70387cf611 Revert "Feature: F5 LTM bandwidth controller"
This reverts commit e99f75d1af.
2020-05-31 14:02:38 +02: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