Commit Graph

1196 Commits

Author SHA1 Message Date
JohnSPeach
2960fc10f5 Add sensors to Infoblox discovery (nios.yaml) (#11043)
* Update nios.yaml

I tried to pull them all in using {{ index }}, but it didn't actually work.....
This adds the DHCP, DNS and NTP service statuses.

* Dynamic service discovery

* typo

* Create nios_status.snmprec

* Create nios_status.json

* Array

* Typo, more

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-01-24 00:33:41 +01:00
Josh Baird
1c043069b1 Fixed Siklu Voltage Sensor (#10997)
* Fix Siklu Voltage

* Update tests

* Another test fix attempt

* Decimals..

* Ok, enough.

* Restore currently used index value and correctly push num_oid

* Update siklu.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-01-22 09:32:39 +00:00
Vitali Kari
f4a9787178 Added Zyxel MGS-3712 Sensors (#11050)
* intermediate commit
* test data
2020-01-19 22:01:17 +01:00
Misha Komarovskiy
25677e5edc Updated IOS-XR with NCS-5500 support for HW and version (#11044)
* Add version match for newer IOS-XR NCS hardware

* Tested with NCS-5504 and NCS5508

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

* Add test data for Cisco NCS-5504 and NCS-5508

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2020-01-17 20:04:27 +01:00
Heath Barnhart
a342a45b74 VMWare Guest State Traps and UI (#11035)
* Initial push

* power trap tests

* vmware heartbeat trap tests

* heartbeat trap test

* created utilclass for common functions

* Changed util class name to better reflect its use

* make vm power state changes to db

* Traps will modify DB

* Removed unecesarry relationship

* Added vminfo modelfactory, tests, and fixed format

* Added suspended state to ui
2020-01-17 18:16:14 +01:00
PipoCanaja
ee8297df19 Extend FS switches support, handle lowerLayerDown ifOperStatus (#10904)
* extend FS switches support

* MIB compilation

* HW and Ver

* sensors and CPU

* tests

* correct version

* try to handle properly "down" as not up, for OperStat like lowerLayerDown

* try to handle properly "down" as not up, for OperStat like lowerLayerDown

* try to handle properly "down" as not up, for OperStat like lowerLayerDown

* try to replace "down" with "not up" :)

* fix other ifOperStatus checks
2020-01-15 08:28:36 -06:00
Anael Mobilia
b44875fba6 Add ifotec definition file (#11005)
* Add ifotec definition file
* Add snmprec file for ifotec
* Ifotec - generate test data
* Ifotec - Add svg logo
* Ifotec - Add svg os
* Delete ifotec.svg
* Delete ifotec.svg
* Use png files
* Add png logo
* Add png os file for ifotec
2020-01-13 23:23:39 +01:00
Vitali Kari
dc3fe103ad Add Lancom OAP-321 Wireless AP (#10982)
* update lancom mib

* add Lancom OAP-321

* refactoring

* switch to available function
2020-01-12 20:03:26 +01:00
klui2k1
25b5c64bff FDB for ArubaOS (#10940)
* Add FDB support for ArubaOS; modify some SNMP calls to allow community string indexing
* Apply coding styles, changed arubaos.inc.php comment headers
* Coding style
* Modify per items discussed at pull 10940
* ArubaOS test data
* ArubaOS header doc

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-01-12 17:23:33 +01:00
Josh Baird
664ca1fee3 Added state sensor for Packetflux Sitemonitor Switch Input (#10994)
* Initial stab at switch input state sensor

* Fix indentions

* Fix indentions

* Index updates

* More useless changes.

* And it finally works.

* Open should be a WARNING state.

* Update email

* Add line

* One empty line, not three.

* This is getting ridic.

* Add test data
2020-01-10 15:52:26 +00:00
arrmo
65106e20e7 Add support for TRENDnet switch (#11007)
* Add support for TRENDnet switch, TEG-S80ES in particular

* Add trendnet.snmprec

* Add test data (JSON)

* Remove mib comment from yaml

* Update copyright info

* Use sysDescr value for Hardware
2020-01-09 16:57:45 -06:00
Vitali Kari
532ab1127a Mpls Path Visualization (#10936)
* update nokia mibs

* database migrations

* add code

* html code

* update db schema

* add test data

* add FIXME

* move mibs/nokia/MPLS-TE-MIB to mibs/MPLS-TE-MIB
2020-01-01 23:45:06 +01:00
hartred
5189a0787b Support new os GWD (#10978)
* gwd logo

* gwd definitions

* definitions discovery

* discovery mempools

* polling mempools

* polling os

* gwd mibs

* gwd tests data

* gwd tests snmpsim

* CR at end of file

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.snmprec

* Update gwd.json
2019-12-28 12:40:54 +01:00
hartred
2953358992 Support new os C-DATA (#10975)
* cdata-logo

* cdata definitions

* cdata definitions discovery

* cdata discovery mempools

* cdata polling mempools

* cdata polling os

* cdata mibs

* cdata tests json

* cdata tests snmpsim

* cdata polling os

* cdata mempools fix

* cdata mempools fix2

* delete IANAifType-MIB

* Delete IF-MIB

* Delete SNMPv2-MIB

* Delete SNMPv2-SMI

* Delete BRIDGE-MIB
2019-12-25 17:22:25 +01:00
jayceeemperador
dcc288ce15 Barracuda Web Application Firewall basic support (#10970)
* Add files via upload
* Changed directory
* Update barracudawafirewall.inc.php
2019-12-25 11:08:08 +01:00
PipoCanaja
5015a49b6d
Ixia ANUE basic support (#10946)
* ANUE
* tests
2019-12-20 14:51:38 +01:00
hartred
cde3e1d8a0 Added support for os SNR (#10704)
* Support new os SNR
mib file

* snr logo
* snr includes_definitions
* includes_definitions_discovery
* snr includes_discovery_mempools
* includes_polling_mempools
* includes_polling_os
* update snr.yaml
* snr.snmprec
* Create snr.json
* Update snr.snmprec
* Update snr.json
* Update snr.yaml
2019-12-18 22:59:42 +01:00
PipoCanaja
c9ae2891dd
Rewrite Microsemi Midspan Power Sensors with mib (#10959)
* rewrite with mib
* tests
2019-12-18 09:59:34 +01:00
PipoCanaja
acfc2e7c81
Added Huawei UPS2000 support (#10831)
* UPS2000
* tests
* over
* filter on sysDescr
2019-12-17 09:08:12 +01:00
PipoCanaja
9ca6b4c0b8
Cisco Viptela basic support (#10947)
* viptela
* reindent
2019-12-16 23:51:42 +01:00
PipoCanaja
b2137787fb
Fixed macro tests (#10939) 2019-12-14 02:24:53 +01:00
louis-oui
20bcbfd591 Port usage perc CI/CD fix (#10935) 2019-12-13 17:23:30 +01:00
kamils85
37d6a86c56 Added support for additional Edge-Core ECS devices (#10924)
* Update edgecos.yaml
* Create edgecos_2100-28p.snmprec
* Create edgecos_2100-28p.json
2019-12-12 23:41:36 +01:00
Vitali Kari
d22558157d Fixed raisecom fan speed sensor limits (#10930)
* fix sensor limits
* add test data
2019-12-12 20:54:30 +01:00
Jozef Rebjak
3c5b7007b2 Added detection of Edge-Core ECS4100 (#10801)
* Added initial detection of ecs4100
* update tests
* added test data
* Update json test data
* Update edgecos.yaml
* Update edgecos_ecs4100-28t.json
* Update edgecos_ecs4100-28t.json
2019-12-10 00:49:41 +01:00
PipoCanaja
f5a7782eb7
Add queues to Barracuda Email Security GW (#10915)
* queue

* typo
2019-12-08 22:08:25 +01:00
computman007
096835b67d Add EdgeSwitch 10XP definition (#10909)
* Add EdgeSwitch 10XP definition

.1.3.6.1.2.1.1.1.0 = STRING: "RTL8380-8GE-2GEF"
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.27282.3.2.10

* Create edgeswitch_10xp.snmprec

* Create edgeswitch_10xp.json
2019-12-08 16:19:46 +01:00
PipoCanaja
f4fbdfad80
Added iBoot PDU (dataprobe) support (#10898)
* os-recognition iboot
* tests
* MIB
* skip_values
2019-12-03 20:37:11 +01:00
djamp42
c2ec8e6422 zyxel IES removed "-" from sysdescr (#10897) 2019-12-02 20:13:59 +01:00
cjwbath
78d017d1ba Updated Aruba ClearPass appliance detection for new sysObjectId (#10892)
* Updated Aruba ClearPass appliance detection for new sysObjectId
* Change the correct snmprec test file this time
* Create a new ClearPass variant and leave the original one as it was
* Restore old clearpass match
2019-11-30 18:02:33 +01:00
PipoCanaja
3d56d763e4 Added basic Ubiquoss PON support (#10828)
* mibs

* definition

* definition

* logo

* serial

* device bits

* tests

* codeclimate
2019-11-25 02:55:12 +00:00
PipoCanaja
245b415eba Added basic Zyxel GS-4012F support (#10829)
* MIB

* processor

* serial

* tests

* zyxel and zynos poller code

* tests
2019-11-25 02:39:05 +00:00
PipoCanaja
8d88b930fe Extend Dell Laser printer support for S5830dn and similar (#10878)
* sysObjectID

* serial number

* tests
2019-11-25 02:30:55 +00:00
PipoCanaja
e1ede81d29 Fixed Cisco Catalyst9x00 support (#10862)
* missing OID

* version

* tests

* move CAT9k to IOSXE

* move CAT9k to IOSXE

* tests

* tests

* codeclimate
2019-11-22 05:16:02 +00:00
Andreas Andersson
9a8a2723e3 Extended discovery of Konica printers (#10806)
* adjusted to detect some printers correctly

* Update konica.yaml

* Add files via upload

* Create konica_2.json
2019-11-20 09:58:04 +01:00
Martin Zatloukal
dd26e702be Added support EdgeCore ECS2100-10T (#10843)
* Added support EdgeCore ECS2100-10T
2019-11-19 15:40:53 +01:00
PipoCanaja
bf181b9dc2
Added support for routing table collection in discovery (#10182)
* Clean broken VRF lite code
* Change DB table for route discovery
* Add VRF simple support
* add port_id to db and discovery
* static-fy the translation arrays
* sort and search cleaning
* Sorting refactor and validation
* formatItem shortened
* Handle ifIndex==0 meaning no next hop defined (MPLS)
* Sync all create/updates
* purge in daily
* remove old route table
* get rid of inetCidrRouteNextHop_device_id
* fix wonky column orders
* add route snmprec
* fix sorting by interface
* Move to new config
* rename to route the new table
* Properly display ipv6 compressed addresses
* Translation before merge ./lnms translation:generate
* Update manifest
2019-11-17 16:30:43 +01:00
Vitali Kari
7c1e6cb8cf Add support for ZyXEL IES-5005 and IES-5106 DSLAMs (#10804)
* Add support for ZyXEL IES-5005 and IES-5106 DSLAMs

* remove cpu high_limit

* fix broken mib VDSL2-LINE-TC-MIB
rework os polling
2019-11-16 18:17:25 +01:00
Tony Murray
dec9a498ee Updated device cache support (#10795)
* Device Cache
also some additional device related models

* attribs from cache

* replace common attribute functions

* remove legacy cache usage
tidy up some collection manipulation
remove some unused or single use functions

* cleanup some items

* always return a device, to prevent bugs

* clear device cache when testing after each test

* fix double assignment

* Clean up function to take advantage of null object
2019-11-14 21:56:06 +00:00
Erik
a5f53eee2a Brocade switches - Added names on fiberchannel ports (#10737)
* Added brocade ports

* Create brocade.inc.php

* Update functions.php

* Update functions.php

* Update brocade.inc.php

* Try to remove complexity

* Removed white space

Removed white space

* Added testdata

* removed temp variable

* Update functions.php

* Create brocade.inc.php

* Added fill ifAlias for fibrechannel ports

* Update functions.php

* Update brocade.inc.php

* Update fabos.json
2019-11-13 14:29:30 +00:00
Jozef Rebjak
c69efb3444 Added support for Mikrotik LTE Modem (#10805)
* Added support for Mikrotik LTE Modem

* Deleted mistaken file

* Travis fix

* Another Travis fix
2019-11-13 11:31:32 +00:00
dlesel
c95661b482 Added AIX file system, prefer over hrstorage for AIX (#10588)
* Added AIX file system, ignore hrstorage for AIX

* Add AIX Test Data

* Add AIX Test Data 2

* remove includes/polling/os/aix.inc.php

* Update AIX Test Data

* Corect spaces in code

* Update code to correctly disable hrStorage for AIX

* Update aix.json

* Update aix.svg

* Delete aix.svg

* Update aix.svg

* Delete aix.svg
2019-11-13 06:01:45 +00:00
Jellyfrog
2feb28440a Added support for HP PDU Management Module (#10784) 2019-11-12 13:36:01 +01:00
Vitali Kari
a31aef6313 Add support for ZyXEL IES4206/5206/5212/6217 MSANs (#10789)
* - update yzyxel mibs
- update definitions für ies series
- slot state and alarm support via yaml

* more sensors

*  add new device Zyxel IES4206

* restore original ies files

* revert function stuff

* update to latest official mib

* rebase
2019-11-12 10:22:08 +01:00
PipoCanaja
f8fb0496b5 Updated device support for Chatsworth-PDU (#10769)
* chatsworth-pdu extension

* tests

* allow snmp_flags in pre-cache

allow snmp_flags in precache

allow snmp_flags in precache
2019-11-06 21:43:27 +00:00
PipoCanaja
145e345b5d Added support for Nexans Switches (#10772)
* Nexans basic

Nexans basic

Nexans basic

* tests

minify

clean

* multiget + header
2019-11-06 21:31:06 +00:00
PipoCanaja
21087579e6 Added detection for AnyOS (#10770) 2019-11-05 21:49:29 +00:00
PipoCanaja
9a53a91895 Added basic device support for Infinera PON 7090 plateform (#10771)
* Infinera POM 7090

* Infinera PON 7090

* Infinera PON 7090
2019-11-05 21:45:41 +00:00
joseUPV
10e6ac1ca6 Better detection of old 3Com StackSwitches (#10736)
* Added Model number detection to old 3Com SWitches

* Added test data

* Added better way to obtain data from Old 3Com StackSwitches

* Removed debug prints

* Added needed mibs

* Removed mibs and changed to oid in script

* Added Original 3com mibs from http://oidref.com/static/mibdepot/*

* Create 3com_4200.json
2019-11-03 13:42:40 +01:00
Hayden Seitz
464fd27356 Allow all models of Asentria SiteBoss (#10746)
* allow all models of Asentria SiteBoss

* add . to end of Siteboss OID to allow wildcard

* Create siteboss_2.snmprec

* Create siteboss_2.json
2019-11-03 13:22:42 +01:00
ubnt-tim
10b1b9cbd8 Updated support for edgeswitch devices (#10515)
* Add new discovery patterns in edgeswitch.yaml

* Add test data

* Update edgeswitch.yaml
2019-10-21 23:32:48 +01:00
SourceDoctor
8f1c77545d Added Seafile Server Monitoring (#10465)
* Seafile Monitoring

* generalized function for application with multiple similar entries

* adding snmprec file

* Create linux_seafile-v1.json

* Update linux_seafile-v1.snmprec

Updated linux_seafile-v1.snmprec to use 4x for encoding json data response

* Update Applications.md
2019-10-21 23:28:21 +01:00
Tobias Heister
186059de54 Added support for drac power and current polling (#10634)
* added support for drac power and current polling

* Revert "added support for drac power and current polling"

This reverts commit cf83c1cb82.

* changed discovery to yaml

* readded test data
2019-10-21 16:02:46 +00:00
dGs-
28e34c64f9 If dot1qVlanCurrentTable doesn't exist try dot1qVlanStaticTable (#10262)
* If dot1qVlanCurrentTable doesn't exist try dot1qVlanStaticTable

* Create comware_hpe5700.snmprec

* Create comware_hpe5700.json

* Update comware_hpe5700.json

* Updated comware hpe5700 json test file

* Update comware_hpe5700.json

* add HPE A5500 (Comware) capture

* Delete comware_hpe5700.json

* Delete comware_hpe5700.snmprec

* Create comware_a5500.json

* snmprec with dot1qVlanStaticTable and json without mempool and sensors

* change an interface description
2019-10-21 13:41:47 +00:00
Erik
610fde83ec Removed double Stack Temperature Discovery and Fixed typos in dbm discovery for Dell Switches (#10630)
* Fixed typos in dbm discovery for Dell Switches

Fixed typos in dbm discovery for Dell Switches

* Skip value 0 in temperature sensors

* Update dnos.yaml

* Remove temp M-serie from php, already in yaml

* Create dnos_s4048.snmpsim

* Rename dnos_s4048.snmpsim to dnos_s4048.snmprec

* Create dnos_s4048.json

* Create dell-net.inc.php

Added mempool for Dell Net switches

* Update dnos.yaml

Removed whitespaces in dnos.yaml

* Update dnos_s4048.json

* Delete dnos.json

* Create dnos.json
2019-10-21 01:41:32 +00:00
joseUPV
cbc307c1c7 Added Cisco SGE OS Detection (#10697)
* Added Cisco SGE OS Detection

* Corrected Style.

* Included hwversion.

* Added snmprec file for sge variant

* Create ciscosb_sge.json
2019-10-21 01:39:55 +00:00
robertobru
4e2d227c72 Update riello.yaml to add the oid for the Netman 204 boards as in issue #10576 (#10725)
* Update riello.yaml

* Create riello_204.snmprec
2019-10-21 01:21:43 +00:00
jozefrebjak
7662856bf3 Added NetApp E2700 Discovery (#10668)
* Added NetApp E2700 Discovery

* Update netapp_e2700.snmprec

* Add test data
2019-10-21 01:19:01 +00:00
Justin Hayes
48d4273267 Add support for Illustra network cameras (#10721)
* Create illustra.yaml

* Create illustra.inc.php

* Add illustra.png

* Add illustra.png

* Create illustra.snmprec

* Create illustra.json
2019-10-21 00:52:35 +00:00
Jellyfrog
c76e95d343 Markdown linting of docs (#10595)
* Remove trailing spaces

* Markdown linting of docs
2019-10-21 00:47:40 +00:00
Justin Hayes
44ba46e2d5 Update Transition Networks support (#10714)
* Create transition.inc.php

* Update transition.inc.php

This file was copied from another existing file with only the OID changed originally. Cleaned up to remove unnecessary clumsiness.

* Update transition.snmprec

* Update transition.json
2019-10-20 23:14:43 +00:00
Tony Murray
1d7347dd62
Validate config schema, add types to all (#10723)
* Vaildate config_definitions.json schema

* finish adding types and other cleanups
2019-10-20 23:08:40 +00:00
sorano
b18839f00b Add sysObjectID for Riello netman 204 firmware 02.17 (#10641)
* Add sysObjectID for Riello netman 204 firmware 02.17

Add sysObjectID for Riello netman 204 firmware 02.17

* Create riello_new.snmprec
2019-10-20 23:07:29 +00:00
joseUPV
e0cff12f69 Better Support of Alcatel Switches (#10672)
* Added model, processor, fan and power supply for Alcatel Omnistack Switches

* Removed Index from description of Fan and power supply

* Merged PR #10655

* Added Temperature Sensor for AOS7+ Alcatel Enterprise Switches

* Added AOS7 mempools

* Added Tests

* Update aos.yaml

* Update alerts levels in state sensors

* Add test data
2019-10-20 22:26:21 +00:00
Tobias Heister
728bc5f790 Improved RARITAN PDU/PDU2 MIB (current, power) and external env. sensors (#10616)
* added support for PDU/PDU2 MIB data (current, power) and added external sensor fpr humidity and temperature on PDU MIB

* added test data of 1 PDU-MIB device and 1 PDU2-MIB device

* Create raritan-pdu.json

* forgot to do save-data on last commit
2019-10-20 21:26:40 +00:00
Vitali Kari
e40a336315 add mempool_perc_warn level (#10722)
* add mempool_perc_warn level

* add test data
2019-10-19 20:38:23 +00:00
Tony Murray
699aa8a042
Consolidate configuration settings and implement dynamic webui settings (#9809)
* initial db/defaults dump

* numeric values

* Remove $config['time']

* Use config_definitions.json

* try setting definition as a complete array

* a little more

* fix format

* WIP converting dynamic setting pages

* rewriting the webui

* remove legacy and add translations

* finish email section

* improve navigation
update js a bit

* Import the remaining existing settings

* Update backend still some wip
migration

* fix config loading (db not overriding defaults)

* some cleanup

* more array collapsing

* update settings

* Settings search

* add purge settings to ui, order groups and sections

* collapse more arrays

* Auth definitions WIP

* remove needless slash escapes

* add warning to json

* moving settings from defaults.inc

* remove slow_statistics

* Move rrdtool settings to the poller section

* Use translations more consistently

* removing more settings from defaults.inc.php

* show setting name in tooltip

* allow help text to be shown on mobile

* disable settings that are set in config.php

* Implement undo and reset to default.

* Vue.js functional

* Vue.js WIP

* Implement tabs component

* accordion WIP

* lodash ver update

* two items

* Accordion somewhat working

* hash navigation

* Refine Accordion

* Fix up tab styling a bit

* Cleaner tab selected property
Hide html while loading

* spinner?

* Icon support
property for accordion to active

* WIP

* Tabs/Sections from ajax

* Setting Component skeletons

* Dynamic Component resolution

* Basic functionality

* toggle class

* Refactor components

* translate tabs and accordions

* simple array attempt

* improve readonly tooltip

* array styling

* array value editing

* organize snmp info

* Handle initial tab/section in url

* Use Laravel to parse tab/section, dump old

* Draggable array entries

* v-tooltip, for clickable (and touch) help tooltips
disable draggable

* Navigation WIP

* Navigation WIP

* groups computed

* filter settings

* fix event reference

* vue.js i18n initial

* missing description = just setting name

* en fallback

* tidy up the language support and js generation

* persist value to db

* fix issue with 0

* Delete settings from DB instead of setting them to default

* ldap-groups
fixup style

* Default dashboard selection

* fix array of options instead of object

* allow custom validation for settings

* translate options in SettingSelect

* SNMP v3 WIP

* fix setting arrays

* Split persist out of set

* Hook up events for SNMP v3 Auth
correct Config::persist behaviour with arrays

* dependent settings (primitive for now)
actually update the settings values in the LibrenmsSettings component

* more complex "when" behaviour

* remove un-needed seeder

* add poller_modules.cisco-qfp

* remove en.json (disable warning)

* don't set default for log_dir or log_file, otherwise it won't be processed correctly

* Fix module order
add some missing settings

* more config corrections

* correct graphs
correct loading values set to null (although it should have no difference)
remove project_name_version

* Add nfsen settings.  Docs are very confusing, so might have flubbed something
remove option for array definition of select option as numeric indexes messes it up

* Correct more upstream config differences

* Config cleanup after a bunch of merges.

* Fixes

* add version tags to js/css files
remove old js

* Print out full settings list read-only

* Add http_proxy setting
fix indents in config_definitions.json

* repeaters default is 0 (aka 20)

* cleanups

* rewrite the dynamic config docs

* add language docs

* Don't show snmp v3 auth add/remove if disabled by config.php
2019-10-16 21:22:05 +00:00
Tony Murray
1f483c5318 Fixed duplicate ping response causing false down (#10692)
* Fix duplicate ping response showing false down
Log event that duplicate was detected
Escape fping cli parameters
add unit test

* Update FpingTest.php
2019-10-16 09:36:54 +01:00
Tony Murray
447277fd10
Fix junose test data non-incrementing (#10679) 2019-10-14 01:58:35 +00:00
Tony Murray
63442e8b4a
Refactor tests (#10625)
* Refactor tests
Boot Laravel for all tests.
Config use private static property for storage instead of global

* Backup/restore modules

* disable snmpsim log

* Fixing DBTestCase

* Fix macros loading to the wrong place

* trap and other tests should check if db is available

* don't include snmp.inc.php if mock.snmp.inc.php is already included...

* fix migration

* if we don't reset the db, run migrations at least.

* set vars for migrate too

* Fix style

* ignore issues with undefined indexes in legacy code
2019-10-13 13:40:38 +00:00
Tony Murray
e046ccde2d
Rename RutOS 2xx pinState state sensor to avoid conflict (#10675)
with rutos PinState state sensor
2019-10-11 04:10:50 +00:00
pedjaj
a19a18492e Added support for RedLion N-Tron 714FX6 industrial switch (#10617)
* Add files via upload

add icon for REDLION

* Add files via upload

Add Device REDLION ntron 716FX6

* Add files via upload

* add device redlion ntron 714FX6

* Delete ntron.yaml

* Add nev device RedLion N-Tron 714FX6

* Update ntron.yaml

* additional snmp data redlion ntron714fx6

* Rename ntron714fx6.mib to NTRON714FX6-MIB

* Create ntron.json

* Update os_schema.json
2019-10-10 14:09:45 +02:00
Tony Murray
ef38f099c6
Fix DSM DS916 test snmp data (#10667) 2019-10-10 04:35:39 +00:00
jozefrebjak
f07651a2eb Added Teltonika Rutos-2xx wireless sensors (#10646)
* CodeClimate Fix

* Added Teltonika Wireless Sensors

* Removed HiveOS local changes

* cleanup

* Update Rutos2xx.php

* typo fix

* Blank Line Fix

* Travis FIX

* White Space Fix
2019-10-07 13:16:51 +00:00
Tony Murray
be04388137
Store config data serialized (#10651)
* Store config data serialized
This way we can store null, booleans, and more reliably.

* Use model to get the mutated output.

* fix whitespace and unused function

* use json_encode/decode and casts
migration to transfer

* json_encode JSON_UNESCAPED_SLASHES

* Use JSON_UNESCAPED_SLASHES.  That is only relevant if you are printing into an HTML page.

* pre-encode the seed...

* filter other fields besides config_value
2019-10-06 21:51:22 +00:00
pobradovic08
a2c69cd62f Added Cisco QFP module (#10637)
* QFP Discovery module
* QFP Polling module - Utilization
* Add Cisco QFP module in module list
* Web UI QFP discovery module
* Add average packet size graph
* Health overview QFP graph
* Polling and UI improvements, test data
* Reformatting and style checks
* Readd snmprec data
* Fix module performance stats collecting
2019-10-05 11:10:34 +02:00
Tony Murray
ef4e6de867
Fix device_groups in alert/group builder (#10643) 2019-10-02 13:54:54 +00:00
Vitali Kari
2825a7f7ec add discovery of mempool percent warning limit (#10618)
* add ability to discover percent warning on mempools discovery

* remove wierd charachters from json

* remove database defaults, add defaults for Linux and Vmware

* update db schema

* update test data

* adapt hrstorage mempools

* rebase
2019-09-30 13:22:55 +00:00
soto2080
2139eed306 Add EdgeCore ECS4110-28T Support (#10525)
* Add ECS4110 cpu usage

* Add cpu usage oid for ECS4110
* TESTED

* Fix EdgeCore ifOperStatus does not follow the Cisco convention
* Since EdgeCore use "lowerLayerDown" in ifOperStatus when port is unplugged
* On the other way, Cisco use briefly "down".
* So change "lowerLayerDown" to "down" to workaround the bug that will make port always show as up/up

* Refactor Edgecos cpu usage oid
* Codeclimate is unhappy about it maybe the refactor will make it happy.

* Add EgdeCore ECS4110 MIB

Just got MIB from EdgeCore

* Refactor Egdecos Mempool

* a bit refactor of Mempool discover and polling
* add support for ECS4110 via MIB

* Modify ECS-4110 MIB

* MODULE-IDENTITY change from ECS4110-52P-MIB to ECS4110-MIB
* strip off syntax error part(time range)

* Add EdgeCore ECS-4110 OS polling

* polling OS and Hardware via MIBs

* Fix typo

* Sorry that I am dazzled

* Fix Syntax Check

* Codeclimate is a bit aggressive

* Update edgecos.inc.php

* Update edgecos.inc.php

* Revert "Fix EdgeCore ifOperStatus does not follow the Cisco convention"

This reverts commit 27971b34a8.

* Add snmprec file for unit testing.

* Create edgecos_ecs4110-28t.json
2019-09-28 03:18:24 +00:00
pobradovic08
f672c12bcc discovery: Added Cisco QFP processor (#10622)
* Added Cisco QFP processor discovery

* Fix QFP index loop variable name

* Add test data for IOS-XE processors (from ASR1001-HX)

* set the right variable
2019-09-28 01:22:06 +00:00
fbourqui
71f7323550 Support VIOS which use a different string: (#10623)
* Support VIOS which use a different string:
Base Operating System Runtime VIOS version (instead of: AIX version)

* Add test data
2019-09-26 02:41:36 +00:00
jozefrebjak
344f315991 AeroHive OS Wirelless Noise Floor Fix (#10608)
* AeroHiveOS NoiseFloor Fix

* Update hiveos-wireless_650ax.snmprec

* Update HiveosWireless.php

* Update hiveos-wireless_650ax.snmprec

* Update hiveos-wireless_650ax.json

* Update hiveos-wireless.json

* Update hiveos-wireless_650ax.json

* Update hiveos-wireless_ap130.json

* Update hiveos-wireless_ap130.json
2019-09-18 14:47:31 +00:00
Vitali Kari
d674c8cefd Fixed battery remain time limits (#10604) 2019-09-16 20:40:47 +02:00
Søren Rosiak
9768790440 CiscoSB: Skip notPresent ports from state sensors (#10545)
* CiscoSB: Skip notPresent ports from state sensors

* Update ciscosb.inc.php

* Create ciscosb_sg350x-48.json
2019-09-14 23:43:08 +02:00
Vitali Kari
d4081dae7f Improved Eltek eNexus sensors (#10591)
* additional sensors, some cleanup in yaml
* re-add updated tests/data/enexus_smartpacks2.json
* some rework to avoid regression
* sensor grouping
* update test data
2019-09-13 10:45:01 +02:00
Jason Cheng
48a07ada6a Add more Vigor series device support (#10562)
* Add more Vigor series device support

* Update draytek.yaml

* Add more Vigor series device test data

* Update AUTHORS.md

* Update draytek.snmprec

* Create draytek_vigor3900.snmprec
2019-09-05 03:42:40 +00:00
Martin Zatloukal
a136e5094d Fix ericsson MINI LINK wifi sensors (#10566)
* Fix Ericsson Mini-link wifi sensors

* Fix Ericsson Mini-link wifi sensors

* Fix Ericsson Mini-link wifi sensors

* Fix Ericsson Mini-link wifi sensors

* Fix Ericsson Mini-link wifi sensors
2019-09-04 02:57:49 +00:00
Evan Dent
00bcee3bd2 Added Additional support for Dell CMC (#10571)
* Uploading snmpsim
* Updated YAML
* uploaded rac mib
* Update drac.json
2019-09-03 21:34:56 +02:00
FTBZ
348190b084 Added basic state details for Infoblox NIOS (#10572)
* add basic state for Infoblox NIOS
* add snmprec
* Added JSON nios.json
2019-09-03 20:37:51 +02:00
fbourqui
c73e9cbcfb add AIX detection running std snmpd or net-snmp (#10569)
* update IBM mibs
* add AIX detection running std snmpd or net-snmp
* simplifying  complex logical expression, codeclim.
2019-09-02 22:08:05 +02:00
PipoCanaja
0fc5331466 Tests bug - Reorder storage tests after 'order_by' statement (#10574)
* tests storage after order_by change

* cleaning
2019-09-02 13:11:59 +02:00
rdezavalia
a0ba412d6c Added more DELL switches in order to get proper CPU stats (#10529)
* Added more DELL switches in order to get proper CPU stats

More DELL switches supported:

* N4032
* N2048
* N2024
* N3048
* N2048P
* 54XX

* fixed indent as requested by phpcbf

* fixed multiline argument function call

* removed blank lines

* Added CPU stats for N4064F

* Added test data for N4064F

* fixed indent as requested by phpcbf

* Added test data for Dell Powerconnect 5424

* Added test data for Dell Powerconnect 5448

* Added test data for Dell Powerconnect 5524

* Added test data for Dell Powerconnect N4032

* Added test data for Dell Powerconnect N2024

* Added test data for Dell Powerconnect N2048

* Added test data for Dell Powerconnect N2048P

* Added test data for Dell Powerconnect N3048

* Fixed processor usage data

* Fixed snmpsim data for 3056

* Fixed processor usage

* easier to read format

* remove space changes

* 3056 should be 8%
2019-08-29 22:11:23 +00:00
Serazio
142a1abbfd Fixed Junos port/vlan relationships for els and non-els based software (#10321)
* Fixed Junos port/vlan relationships for els and non-els based software

* fixed tabs

* Add test data

* Updated test data

* Update module_tables.yaml

* Update junos_qfx5100.json

* Update junos_qfx5100.json

* Update junos_qfx5100.json
2019-08-28 07:14:26 -05:00
Arzhel Younsi
78112270c6 Add serial/model/version polling for Sentry4 MIB (#10432)
* Add serial/model/version polling for Sentry4 MIB

* Add serial/model/version polling for Sentry4 MIB

* Update sentry4.json
2019-08-27 22:08:42 -05:00
Martijn Schmidt
3a891ba727 Convert opengear to YAML-based discovery, add some new sensors, add test data (#10553)
* Update opengear MIBs to latest version.

* Replace PHP signal discovery with YAML.

* Update Opengear YAML with new sensors.

* Add test data for Opengear.

* Add the test data json for Opengear.

* Named to numbered index to avoid data loss.
2019-08-27 16:54:08 -05:00
Martin Zatloukal
f16805b71d Added support Ericsson MINI-LINK (#10546)
* Added support Ericsson MINI-LINK
* cleaning
2019-08-22 13:19:50 +02:00
Tony Murray
8d669a8a39
Simple linear port graph prediction (#10520)
* Simple linear port graph prediction
Simple linear prediction line for in and out if graph "to" value is in the future
Improve graph date handling

* thinner line

* Make test specify timezone
2019-08-19 22:53:48 -05:00
PipoCanaja
4631705838 Tests for IOS Vlans/Vtp (#10519)
* ios_2960x.json

* lighter test to avoid timeout

* cleaned config.php
2019-08-13 14:34:20 -05:00
NonStop Networks
b8c96abc35 Added support for Exagrid devices (#10496)
* Added new device - Exagrid
* Update and Rename exagridos.inc.php Match Version and HW
2019-08-07 20:05:59 +02:00
arrmo
0c9330dc11 Added support for OS dd-wrt (#10500) 2019-08-07 20:01:13 +02:00
Tony Murray
42fd5afb23
Laravel 5.8 and updated dependencies (#10489)
* Laravel 5.8
and dependencies

* Fix cache time

* upstream base file changes

* Accidentally ran composer with PHP 7.3

* fix test error

* one more

* one more

* one more

* fix dotenv loading
2019-08-05 15:54:58 -05:00
Hans Erasmus
1a54bdc435 Fixed missing FW and Serials in Dlink (#10481)
* Fixed missing FW and Serials in Dlink
* Added .snmprec data
* Added jsons of test data
2019-08-02 22:16:54 +02:00
PipoCanaja
bc550c90f7 Added definition for Cisco SB SG250X (#10472)
* Added definition for Cisco SB SG250X

* Add snmprec
2019-07-31 17:51:19 -05:00
Heath Barnhart
cefa9c0a60 Extended RecoveryOS Definition (#10475)
* modified recoveryos discovery
2019-07-31 16:14:14 +02:00
Tony Murray
89fae9be1d
Move API routing to Laravel (#10457)
* Add more api helper functions
to centralize code more

* Enable cors

* Initial Legacy route in Laravel

* Force api v0 responses to json
Add a couple more routes

* more paths, pretty print the json response
pass parameters to the api function

* devices basic functions

* Port generic graph function
check permissions function accepts callback to avoid lots of if statements

* move vlans

* links

* graphs

* fdb

* health

* wireless

* port graphs

* ip functions
split em up

* port_stack

* components

* compoment add/edit/delete

* get_device_groups

* port stats

* port graphs

* get_devices_by_group

* port_groups

* api_get_graph

* show_endpoints

* get_bill

* get_bill_graph

* get_bill_graphdata

* get_bill_history

* get_bill_history_graph

* remaining bill functions

* list_alerts

* ack/unmute alert

* Some cleanups

* Some cleanups

* list_alert_rules

* alert rule add/edit/delete

* inventory

* list_cbgp

* vrf

* list_ipsec

* list_fdb

* list_links (fix both usages)

* list_locations

* list_locations

* list_vlans

* list_ip_addresses

* list_arp

* list_ip_networks

* cleanup

* services

* list_logs and fix authlog.......

* cleanup

* cleanup 2

* remove slim

* don't load schema more than once

* basic test

* fix style

* downgrade laravel-cors to a version that supports PHP 7.1
2019-07-29 16:32:37 -05:00
Vitali Kari
1de640c3aa MPLS Services (#10421)
* initial database migrations

* first part, discovery

* second part, polling

* add SAP polling and discovery

* style checks

* rename variables in more generic way

* html global pages for sdp and sdp binds

* add Services and SAPs

* port links, database, etc.

* html device routing pages

* add tests

* checks

* rework database id relationship

* scruntinizer inspection

* fix unit test for new mpls tables
2019-07-27 23:11:04 -05:00
arrmo
432496f27a Add OpenWrt OS support (discovery, poller) (#10454)
* Add OpenWrt OS support (discovery, poller)

* Add snmprec for Openwrt

* Update openwrt.inc.php

* Create openwrt.json
2019-07-25 07:05:12 -05:00
Martijn Schmidt
ad044f478c MRV: temperature limits from MIB (#10326)
* Update MRV MIBs to version 5.14.1

* Learn SlotTemperature limits from the new MIB.

* Rename MIB files to the name of the MIB.

* Update mrv-od.snmprec

* Update mrv-od.json
2019-07-23 23:50:37 -05:00
ig0rb
3342210067 FS.net pdu (#10424)
* Added support for snmp monitored PDU from fs.com

* Added support for snmp monitored PDU from fs.com

* Fix sysObjectID 1.3.6.1.4.1.30966

* Create fs-net-pdu.json
2019-07-23 22:55:53 -05:00
jozefrebjak
625864ffa2 Added Support For Teltonika RUT2XX Devices (#10358)
* Added Support For TLT RUT2XX Devices

* Deleted unnecessary vaules

* required changes

* delete group unix

* updated tests

* Update rutos-2xx.json

* Update rutos-2xx.yaml

* Update rutos-2xx.json
2019-07-23 20:56:42 -05:00
CirnoT
cafcf417fa Fix NetAgent II battery voltage (#10427)
* Fix NetAgent II battery voltage

* Add new test data and new icon for NetAgent
2019-07-22 23:34:31 -05:00
VTS
a382d11c75 Added phase2 name to fortigate IPSEC sensor. (#10423)
* Add phase2 name to IPSEC sensor.
For VPN tunnels with more than one phase2, the sensor is confusing. 
Using the phase2 value provides both the phase1 and phase2 name for a more complete sensor.
* Update fortigate.yaml
phase1\phase2 naming for a more clear sensor.
test data to come
* add test data
* more test data?
* missing whitespace compared to original
* Remove wireless data
2019-07-19 09:49:56 +02:00
bergroth
b085703b2d Added support for DGD and BER on newer infinera-groove FW (#10435)
* Added support for DGD and BER that are avalible on newer infinera-groove FW
* updated tests for new groove sensors
* Update infinera-groove.inc.php
* Update infinera-groove.inc.php
* Force test to run again
2019-07-15 12:47:41 +02:00
ospfbgp
fc2f0a4552 Updated RAPID-CITY mib for Extreme VSP (#10406)
* Add files via upload

* Update voss.inc.php

* Update voss.inc.php

* Update voss.yaml

* Update voss.inc.php

* Update voss.inc.php

* Update voss.inc.php

* Update voss_7432cq.json

* Update voss_7432cq.json

* Add files via upload

* Add files via upload

* Update voss_8404.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_8608.json

* Update voss_9012.json
2019-07-09 23:54:21 +02:00
Vitali Kari
592b2ea432 Added new Sensors for Nokia Subscriber Statistics (#10422) 2019-07-08 13:59:52 +02:00
rsys-dev
cfaf913896 Added detection for ZTE zxdsl devices (#10344)
* add yaml files

* Added include/definition/zxdsl.yaml (ZTE ZXDSL Support)
Added include/polling/os/zxdsl.inc.php (Set Hardware)

* Changed includes/definitions/zxdsl.yaml type from "dslam" to "network"
Changed includes/polling/os/zxdsl.inc.php removed unnecessary code
Added Testfiles

* Fixed coding guideline errors (missing spaces)

* Removed unnecessary "use"

* Improved model number discovery
Removed unavailable top graphs
Added System temperature

* Changed Temperature limits according to ZTE datasheet

* Updated Tests
2019-07-05 13:06:27 +02:00
jozefrebjak
20b3211e7e Added Support for Unitrends Backup (#10411) 2019-07-05 08:49:03 +02:00
N-Mi
fce185b55c Fix doc test after changelog split (#10412) 2019-07-04 08:01:46 -05:00
jozefrebjak
3531454a6e Added VPN sensors for Fortinet Fortigate (#10384)
* Added IPSEC VPN state

* Added more VPN sensors

* Test Data cleaned
2019-07-02 15:58:42 +01:00
SniperVegeta
f419419830 Added panasonic ns1000 os (#10390)
* Add files via upload

panasonic png

* Create panasonic-ns.yaml

Panasonic NS

* Create panasonic-ns.inc.php

Panasonic NS Series

* Create KX-NS.mib

Panasonic NS mib file

* Add files via upload

Add snmprec

* Add files via upload

add panasonic-ns data

* Update panasonic-ns.inc.php

Space?
2019-07-02 00:08:04 +02:00
ospfbgp
9740120e97 Added support for Extreme VSP-7432CQ (#10393)
* Update xos.yaml

* Update voss.yaml

* Update voss.yaml

* Add files via upload

* Add files via upload
2019-07-02 00:06:42 +02:00
Tony Murray
f3ba8947f7
Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00
Martijn Schmidt
048fd0f6ed Remove guessed limits for some health sensors, documentation for sensor classes (#10327)
* Default to null for group yaml discovery.

* Update test data for a154bda yaml group null fix.

* Changes to guessed limit functions for sensors.

Original behaviour
===================

The file `includes/discovery/functions.inc.php` contains
`sensor_limit_low()` and `sensor_limit()` which both attempt to
guess a sane value for sensors when no explicitly defined
low_limit or high_limit can be found during discovery.

Both switch control structures used in those two functions
have empty case statements which means that if one of those matches,
it's going to fall through and run the code for each subsequent
case until a `break` is reached.

For example, when we call `function sensor_low_limit(dbm, -13.036)`
it will return the value `-12.3842` instead of `null`. That is
because there will be a match at `case 'dbm':` which falls through
all the way to `case 'cooling':`, where it performs
`$limit = -13.036 * 0.95` before hitting a `break`.

Changed behaviour
===================

Removed `power_consumed` and `count` guessed low_limit and
high_limit, I personally added those sensor classes in PR #9471
when I didn't understand that a switch control structure has
fall-through behaviour so I can guarantee that guessing limits for
those is a mistake on my behalf. It should not be there, only
power_factor can have guessed limits. Apologies for the issue,
I'm still a beginning programmer!

Furthermore, I removed guessed high_limit values for `current`
and `power` because these are supposed to draw higher values as
more devices or components are installed on for example a PDU or
a chassis.

Finally, I removed guessed low_limit and high_limit for `dbm`
sensors, there is a much too large variance in power budget on
commercially available optical transceivers for there to be a
sensible window where you can guess these values.

* Documentation on adding sensor classes.

* Update test data - sensor limit changes @ 30212d2
2019-06-21 09:03:27 -05:00
Tony Murray
7f6a342d71
Fix device group queries that don't start with devices table (#10360) 2019-06-21 06:53:48 -05:00
Tony Murray
1a60c44eb0
Device groups rewrite (#10346)
* Device Groups rewrite
Updated web ui
Static or dynamic groups allowed
Alert rule query builder
Translation support
Permissions support

* cleanup, make relationship save, and validate it

* builder WIP

* rules builder and rules saving/loading

* Parse query builder to Laravel Fluent query

* Upgrade existing groups when editing.
Properly update only dynamic groups when polling.

* remove unused old code
Update API and other places to use Eloquent

* debug output in poller restored

* Fix up some things
creating static
improved validation
fix js error on creation
Fix static groups in polling

* hide pattern for static group

* Implement authorization
Use in the menu too

* update schema

* fix rollback

* Don't abort on invalid queries

* fixes to query builder

* add test data, looks like macros aren't handled (omitted them because groups don't use them generally)

* Add macro support for QueryBuilderFluentParser

* add test for macro that accepts value

* More space in forms
Retain rules when converted to static
no duplicate names allowed

* Better error feedback
Update related devices on save

* Add button icon

* format

* update docs

* fix tests

* Fix some QueryBuilderFluentParser issues with OR
updated/more test data

* Show device groups runtime
fix querybuilder.json format

* Store table joins in the rules to minimize polling time
Update group joins in daily.sh (and when they are saved)

* Update daily.php

* Add units to time
2019-06-19 16:01:53 -05:00
Tony Murray
c2b09b8f80
Revert "Rewritten device groups (including static) (#10295)" (#10340)
This reverts commit cfc51d51f5.
2019-06-16 21:52:57 -05:00
Tony Murray
cfc51d51f5
Rewritten device groups (including static) (#10295)
* Device Groups rewrite
Updated web ui
Static or dynamic groups allowed
Alert rule query builder
Translation support
Permissions support

* cleanup, make relationship save, and validate it

* builder WIP

* rules builder and rules saving/loading

* Parse query builder to Laravel Fluent query

* Upgrade existing groups when editing.
Properly update only dynamic groups when polling.

* remove unused old code
Update API and other places to use Eloquent

* debug output in poller restored

* Fix up some things
creating static
improved validation
fix js error on creation
Fix static groups in polling

* hide pattern for static group

* Implement authorization
Use in the menu too

* update schema

* fix rollback

* Don't abort on invalid queries

* fixes to query builder

* add test data, looks like macros aren't handled (omitted them because groups don't use them generally)

* Add macro support for QueryBuilderFluentParser

* add test for macro that accepts value

* More space in forms
Retain rules when converted to static
no duplicate names allowed

* Better error feedback
Update related devices on save

* Add button icon

* format

* update docs

* fix tests
2019-06-16 08:27:22 -05:00
Kevin Krumm
da9e67b296 Aruba IAP: Fix Radio State Sensor (#10335)
* Aruba IAP: Fix Radio State Sensor 

Fix state sensor for radio status from warning when disabled to unknown state.

* Update aruba-instant.json

* Update aruba-instant_105.json
2019-06-15 10:10:37 -05:00
Vitali Kari
19914adc55 add raisecom os version, hardware and serial data (#10336) 2019-06-15 07:49:03 -05:00
StackOverBuffer
fec165fb86 Add power sensor for eaton ups (#10306)
* Add power sensor for eaton ups

* removed whitespace at end of line

* add test data
2019-06-11 23:46:43 -05:00
TheGreatDoc
8c69d7dac8 Support for Fibernet XMUX4+ (#10331)
* Support for Fibernet XMUX4+

* Update fibernet.svg

remove length and width, add viewbox
2019-06-11 22:16:10 -05:00
djamp42
e6ad2b5bb8 Cisco UCOS Version and Feature Fix (#10307)
* Fix Software Version #

I don't think setting $firmware does anything, not to mention the regex wasn't matching correctly. I tested this fix tons of different software versions and they all seem to work.

* Revert "OS CIMC Software Version Number"

* version and features

* fixed feature

* Fix Extra Blank line EOF
2019-06-06 23:37:26 -05:00
Daniele Viganò
c7228e3b55 Extend the Dell drac module to report CMC status and sensors (#10310)
* Extend the Dell drac module to report CMC status and sensors

* CMC status sensors do not have chassis id

* Update test data for drac OS

* Add missing test data for drac os
2019-06-06 23:21:52 -05:00
Vitali Kari
00b148dbd3 Add MPLS Support (#10263)
* WIP - Add MPLS Support
This introduce the generic MPLS support
- New database tables for MPLS LSPs
- actually discovery and polling on NOKIA SR OS (Timetra) devices
- new routing->MPLS HTML pages

- ToDo MPLS LSP paths table and views
Suggestions and improvements are welcome

* add db schema

* some fixes

* add path table, discovery and polling

* add path views

* add test data

* Convert MPLS module to new style
Implement a SyncsModels trait to simplify code a lot

* abs() for negative value from snmp (bug?), test data

* fix db schema

* Fix up test data, remove uneeded data in json

* fix whitespace
2019-06-06 16:12:13 -05:00
Tony Murray
3129dd3148
Restore cimc data (#10308) 2019-06-04 20:41:44 -05:00
djamp42
e514cbc3e1 CIMC Version Fix (#10284)
* Fix Software Version #

I don't think setting $firmware does anything, not to mention the regex wasn't matching correctly. I tested this fix tons of different software versions and they all seem to work.

* Revert "OS CIMC Software Version Number"

* cimc-version-fix

* added test data

* Update cimc.snmprec
2019-06-03 22:32:41 -05:00
Marlinc
93f3528bbf Add Ipoman power consumption support (#10244)
* Add Ipoman power consumption support

* Create ipoman.json
2019-05-31 07:43:54 -05:00
Martijn Schmidt
9455a83478 Convert OS mrv-od to yaml, discover more sensors, discover entity-physical (#10266)
* Dynamic entPhysicalIndex values for YamlDiscovery

* Use degree symbol when displaying temperature values

* Adjust SNMP options for new snmp_get_multi()

The OS polling module for mrv-od was using snmpget commands with
-Ovqs, rather than -OQUs, which meant that the equal sign was
stripped in the snmpget output. But that equal sign is now used
as the explode() delimiter so it broke the construction of the
returned array for the snmp_get_multi() function.

Additionally, I removed the NBS-CMMC-MIB:: prefix which is no
longer returned by snmp_get_multi() as part of the OID. Now,
the mrv-od.inc.php OS polling module is retrieving data from
positions in the array with actual content.

* Convert mrv-od to yaml, improve sensors discovery

Converted sensors discovery for mrv-od to yaml, retaining all
functionality for pre-cache, dbm, and temperature. Replaced specific
SFF-8472 Digital Diagnostics state sensors with generic ones, given that
we are now reading out detailed values through new dbm, current, voltage
sensors.

Reasoning: the generic Digital Diagnostics state sensors report state
diagsOk, or else the worst severity level measured among all of the
Digital Diagnostics values for that optical data point. You'd really
only want to set a generic "alarm" so the box can report that it
thinks something is wrong, whereafter a human can look at the graphs
and/or the CLI to draw their conclusions about the alarm. Otherwise,
things would quickly become too spammy as you are essentially duplicating
every sensor across both regular measurements and state measurements.

Further changes:
- Increase maximum number of detected PSUs from 4 to 8 per the MIB.
- State sensor to detect (in)sufficient power budget for all modules.
- Use skip_values to hide state sensors with the notSupported value.
- Use skip_values to hide sensors which are unsupported per the MIB,
  signified by the device returning special values -1 or -2147483648.
- Add dBm, temperature "over" graphs to the mrv-od device header bar.

* Add mrv-od entity-physical support

MRV does not use the ENTITY-MIB data format, so we had to reconstruct
the inventory from their proprietary format using the following tables
from their NBS-CMMC-MIB:

- nbsCmmcChassisTable
- nbsCmmcSlotTable
- nbsCmmcPortTable

Additionally, since sensors didn't have their own ifindex in the
NBS-CMMC-MIB, I went ahead and appended the last OID digit to
the "containing" ifindex create a unique number. The same was
done for the sensors in the yaml-discovery.

* Test data for mrv-od, fix 2* pre-commit.php issues

* Fix entPhysicalIndex returning 0 instead of null

Some unit test breakage was caused by 62167ebcb which changed
the code to return 0 instead of null when {{ $index }} was
set as the entPhysicalIndex in the YamlDiscovery. So now we
detect if it returns some value which may be interpreted as
false, and if so we set null rather than 0.
2019-05-29 13:30:33 -05:00
Arnoud Vermeer
f14b90a1ef Icotera support for 6400 and 6800 series. (#9755)
* Icotera support for 6400 and 6800 series

* Fix broken test data
2019-05-29 09:37:10 -05:00
jozefrebjak
824bcb7f16 Added detection and sensors for Huawei SMU device (#10267)
* added new os huawei-smu
* Create huawei-smu.inc.php
* added snmprec test
* added json test
* Update huawei-smu.json
* Update huawei-smu.json
* updated os definition
* added sensors of SMU
* Update huawei-smu.inc.php
* Create HUAWEI-SITE-MONITOR-MIB
* Update huawei-smu.snmprec
* Update huawei-smu.yaml
* Update huawei-smu.json
* Update huawei-smu.snmprec
2019-05-28 14:57:11 +02:00
Michael Ducharme
902c056f62 Fix for RouterOS LLDP discovery (#10265)
* Fix for RouterOS LLDP discovery

Only the first nine neighbors were correct on RouterOS - missing hexdec() led to the remaining neighbors being linked to the wrong ports. Ex. port 10 in hex was incorrectly linked to port 10 decimal when it should be 16 in decimal

* Added test data for MikroTik RouterOS CRS317 switch
2019-05-28 08:32:51 +02:00
Spencer Butler
5c39c41891 Updated OS (ftd) for Cisco FirePOWER devices (#10046)
* Adding support for Cisco FirePOWER devices

* update OS (ftd)

* Update ftd.yaml
2019-05-24 08:02:51 -05:00
kmpanilla
dbd0066269 Update to planetos.inc.php for ISG-* models (#10152)
* Update to planetos.inc.php for ISG-* models

Gets the proper hardware model# and version of the planet IGS-* series.

* Added test files

* Update planetos.inc.php

* Update planetos.inc.php

* Update planetos.json

* Update planetos.json

* Delete planetos.json

* Update planetos_igs-10020mt.json
2019-05-24 08:01:58 -05:00
Timothy Willey
a000b4a6de ArubaOS - fix client count polling, add ap count polling. (#10231)
* fix client count polling, add ap count polling.

* Set low warning/critical thresholds for AP count sensors

* Add Aruba AP Count Warning and Critical Alerts to collection, lint alert_rules.json

* add newline at end of alert_rules.json

* add/update tests/data/arubaos*.json test data
2019-05-23 10:17:09 -05:00
Spencer Butler
83522c6fef Added support for East iStars UPS (os: istars) (#10041)
* istars - Added support for East iStars UPS (os: istars)

* typo

* remove duplicate image

* refactored to use rfc1628

* added json

* update is_array to isset for bad rfc1628 implementation

* Update istars.inc.php

* revert rfc1628 changes

* update test data + PR 10240 patch

* update OIDs
2019-05-21 11:03:28 -05:00
Jozef Pivarník
2dc05ee501 Fixed Cisco MAC accounting discovery, polling and HTML templates. (#10158)
* Fix Cisco MAC acounting discovery, polling and HTML templates.

* Remove empty code.

* Provide test data for cisco-mac-accounting module.

* Added module test dependency.
2019-05-20 20:56:19 -05:00
Tony Murray
4387ab052e
Fix docs tests (#10240) 2019-05-20 19:23:44 -05:00
Tony Murray
604a200891
Python dispatcher service v2 (#10050)
* Refactor LibreNMS service
add ping

* services ported
remote legacy stats collection

* alerting

* implement unique queues

* update discovery queue manager

* remove message

* more cleanup

* Don't shuffle queue

* clean up imports

* don't try to discover ping only devices

* Fix for discovery not running timer

* Update docs a bit and and add some additional config options.
Intentionally undocumented.

* Wait until the device is marked up by the poller before discovering

* Handle loosing connection to db gracefully

* Attempt to release master after 5 db failures

* Sleep to give other nodes a chance to acquire

* Update docs and rename the doc to Dispatcher Service to more accurately reflect its function.

* add local notification
2019-05-20 11:35:47 -05:00
corsoblaster
3e2c999706 Collect Appliance serial number from Sophos device (#10210)
* Collect Appliance serial number from Sophos device

Add serial number read. Added on polling session instead of discovery because the S/N changes in case HA functionality is enabled, and there is a switch between active and standby.

* Update cyberoam-utm.inc.php
2019-05-20 08:11:20 +02:00
kmpanilla
8fc9593c4f Fix Siklu Version/Serial (#10235)
* Fix Siklu Version/Serial

Siklu allows for two software images. We must first determine which SW bank is "running" in order to report the correct version.
Also adding correct Serial Number detection for Siklu devices.

* Update siklu.inc.php

* Update siklu.snmprec

* Create siklu.json
2019-05-18 23:19:04 -05:00
PipoCanaja
393b0e688f Added Wireless discovery to Huawei Vrp (#9516)
* HUAWEI Wireless MIB files

* Adding support for Wireless Controller capabilities of Huawei VRP Switches

* CodeClimate Fixes

* Add clientPerRadio polling for VRP

* Cache snmpwalk_group and  snmpwalk_cache_oid separately

* Travis

* Travis

* Cleaning sensors not available

* isset corrected

* tests

* clean

* default value for depth

* Update Vrp.php

* Update Vrp.php

* Update vrp.inc.php

* Update vrp_ac6605-26.json
2019-05-18 23:00:53 -05:00
Vitali Kari
953f26d4d5 Add support for ZyNOS MGS switches (#10234)
* Update zynos.yaml

add support for MGS Switches

* Create zynos_mgs3712.json

* Create zynos_mgs3712.snmprec

* Create ZYXEL-MGS3712-MIB
2019-05-18 22:52:33 -05:00
jozefrebjak
9d56593a2c Initial detection for huawei gpon MDU (#9733)
* added initial detection for huawei gpon MDU

* Add files via upload

* Add files via upload

* Fixed tests
2019-05-14 22:13:53 -05:00
Heath Barnhart
b7053ad064 SNMP Trap Handlers for Ruckus Wireless (#10175)
* pushing handlers and AP event tests

* adding tests for SZ events

* Fixed state handler, added state handler tests

* Style checks and cleanup

* fixed a style issue in RuckusSzClusterInMaintenance.php

* removed SNMP Cold Start trap

* fixed snmptraps.php to remove unhandled traps
2019-05-13 17:53:56 -05:00
Timothy Willey
0d656590ec NEW OS Aruba Instant (#9954)
* New OS: Aruba Instant

* New OS: Aruba Instant

* recreate test data

* remove aruba_instant test data

* remove empty file includes/definitions/discovery/aruba-instant.yaml

* fix state sensor discovery

* remove minor changes to includes/polling/functions.inc.phpwq

* move mac helper functions to Rewrite class

* simplify snmpwalk_group usage, general code cleanup

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* recreate test data for 105 variant

* Add Client sensors for 8.4.0.0+

* begin stream-lining discovery and polling. separating discovery functions

* update test data

* update test data

* update test data

* improve mempool discovery/polling, clean up os polling, improve state discovery, improve os definition, misc fixes to wireless sensors module

* attempt to implement custom AP and client discovery and polling

* code fixes

* re-add ap count top graph

* more fixes

* more fixes

* more fixes

* more fixes

* remove some debugging, update test data

* code cleanup

* code cleanup

* address some scrutinizer warnings
2019-05-13 10:06:12 -05:00
Heath Barnhart
2187967854 Modified BGP4 handler to write to db (#10180) 2019-05-12 23:44:14 -05:00
Marvin Kuurstra
966ce85c19 Fortigate sessions sensors (#10183)
* Adding sensor for sessions

* Adding test data

* Fix index mistake and update test data (#12)

* Update test data for existing fortigate
2019-05-09 23:58:03 -05:00
CirnoT
f63c7e3508 Update bridge STP trap handlers to log events under stp type (#10192) 2019-05-09 21:45:21 -05:00
CirnoT
f036b1df3d Added support for PoE state sensor on Mikrotik devices (#10201) 2019-05-09 23:14:42 +02:00
CirnoT
eb8600e1fd Added additional generic SNMP trap handlers (#10177)
* Add more generic SNMP trap handlers

* Sort snmptraps config alphabetically
2019-05-02 21:50:18 +01:00
Tony Murray
3e7970b814 Fixed Avtech discovery (#10163)
* Fix Avtech discovery
pre-cache stored the data incorrectly

* Fix RA-4E external sensors
sen1 had incorrect oids (duplicate of sen2)
Description oid from data doesn't match the mib, perhaps outdated MIB?

* add test data

* Updated 4E MIB
2019-05-02 21:37:00 +01:00
CirnoT
308145d2da Fixed Raspberry Pi sensors discovery (#10176)
* Fixed Raspberry Pi frequency, voltage and state sensors discovery
* Added tests
2019-05-02 08:10:20 +02:00
h-barnhart
554e22d927 Juniper SNMP Trap Handlers (#10136)
* initial commit of junos handlers

* added DOM alarm test, refactored handlers for DOM alarms

* fixed some formating issues with last commit

* Created DOM alarm handlers and unit tests

* Made tests for LSP Down handler

* Added trap tests for JnxVpnSes*, JnxVpnIf*, JnxVpnPw*

* Added BGP4 trap handlers and tests

* Fixed some variable names for codeclimate

* Simplified JnxBGPM2* handlers

* updated unit tests
2019-05-01 11:12:51 -05:00
CirnoT
9d5e780c59 Added support for APC PDU outlet state sensors (#10166)
* Add support for APC PDU outlet state sensors

* Update tests
2019-05-01 09:09:36 +01:00
Tony Murray
f2b6aaeb11
Fix transition os (#10169) 2019-04-30 09:18:18 -05:00
CirnoT
9950ae3f47 Add failed user login trap for Netgear switches (#10161)
* Add failed user login trap for Netgear managed switches

* Add failed user login trap for Netgear smart switches

* Add tests

* Remove unused $ipv4 from tests
2019-04-30 07:52:27 -05:00
JoshWeepie
4e62838cce Add support for Transition NIDs (#9729)
* Add support for Transition NIDs

* Upload Transition logo

* Create transition

* Add files via upload

* Add files via upload

* Delete transition

* Delete MEF-UNI-MIB.smi

* Delete PTP-MIB.smi

* Delete BRIDGE-MIB.smi

* Delete ENTITY-STATE-TC-MIB.smi

removed standard mibs

* remove extensions from mibs

* Create TN-AC-MIB

* Removed extensions from Transition MIBs

* Delete TN-AC-MIB

* Create transition.snmprec

Added test data

* Renamed some mibs + updated tests

* Update transition.json
2019-04-29 22:14:46 -05:00
CirnoT
ca18cf4176 Support for APC PDU Outlet traps (#10162)
* Support for APC PDU Outlet traps

* Add tests

* Remove unused $ipv4 from tests
2019-04-29 21:40:09 -05:00
Vitali Kari
df2e80544c Extended sensors for Timos devices (#10160)
* additional sensors for timos
change to yaml discovery for sensors
remove obsolete tmnxChassisPowerSupplyTable

* inconsistent data in snmpsim

* fix snmpsim data

* fix snmpsim data

* fix snmpsim data
2019-04-29 20:48:37 +02:00
Spencer Butler
9cfa2aaf40 Added support for Zmtel greenpacket devices (os: zmtel) (#10067)
* Added support for Zmtel greenpacket devices (os: zmtel)

* added more sensors

* move count sensors to features

* rename MIB and move modulation scheme to state sensor

* added test data

* graph pCID
2019-04-29 09:53:35 -05:00
PipoCanaja
bfa7537d83 Get and display the image patch version on Huawei VRP devices (#10099)
* Try to find the patch applied to this device

* tests all
2019-04-29 09:50:40 -05:00
PipoCanaja
a3263b802b Added packetlight support (#10131)
* MIBS

* logos
sensors
user_func
cleaning

* tests

* Switch to Packetlight class, and use is_callable instead of function_exists

* tests

* CodeClimate

* Rename functions
2019-04-29 09:46:53 -05:00
h-barnhart
5115fa9ca0 Adva SNMP Trap Handlers (#10094)
* Added SNMP Trap Handlers for Adva Ethernet devices

* Fixed formatting.

* Fixed errors from previous commit.

* Refactored AdvaAttributeChange.php

* Updated a few handlers, added test script.

* Added changes to snmptraps.php to make handlers active

* Fixed issues found by travisci

* Missed two mistakes in travisci, fixed. Should be ready for human eyes.

* Added SNMP Trap Handlers for Adva Ethernet devices

* Fixed formatting.

* Fixed errors from previous commit.

* Refactored AdvaAttributeChange.php

* Updated a few handlers, added test script.

* Added changes to snmptraps.php to make handlers active

* Fixed issues found by travisci

* Missed two mistakes in travisci, fixed. Should be ready for human eyes.

* Added two tests.

* fixed error

* Updated handlers with changes introduced in 1.50

* Refactored and added a few tests

* Added test for StateChangeTraps

* Added AdvaObjectDeletionTest, still wip as I need to recapture flow del.

* Added Network Element Alarm Trap Test

* Added more tests, but they are wip.

* Finished traps handler tests, few handler refoactors.

* fixed style errors and refactored as requested

* made requested changes to threshold trap handlers

* removed a test script

* modified adva port threshold handler

* Update AdvaAccThresholdCrossingAlert.php

* Update AdvaNetThresholdCrossingAlert.php

* removed static method

* fixed mistake in AdvaNetThresholdCrossingAlert.php
2019-04-29 08:39:20 -05:00
h-barnhart
27ff49fb1d Added Fortinet SNMP Trap handlers (#10148) 2019-04-27 20:34:15 +02:00
CirnoT
b102cedc5c Added PSU state to Netgear discovery definition (#10150)
* Add PSU state to Netgear discovery definition

* Add tests for Netgear PSU
2019-04-27 20:06:22 +02:00
pobradovic08
b8c4f38fb5 Added session graphs for Barracuda NGFW (#10102)
* devices: Corrected discovery object ID for Barracuda NGFW; Added fw session graphs
* device: Added test data
2019-04-27 15:33:55 +02:00
Tony Murray
6e6e54cb98
New User Management (#9348)
* Rewrite user management.

Error management

Revert edituser legacy page

Connect user permissions button to legacy page for now.

Implement user creation
Refine form

Remove PingCheck.php accidental add :)

Fixes for redirection and deletion

More fixes: realname accidental validation setting, hide can modify for read-only auths

Use a panel to improve style

Add icon to panel-title

Not allowed to delete own user (at least via the click of a button)

Use request validation to reduce complexity of controller.
Improve protection against users doing things they should not.

Switch to horizontal form and not nearly as wide of layout :)

delete without refresh.
Fix for buttons

Include all users (not just from this auth)
Hide the auth column if there is only one auth type

Show username if real name isn't set

Don't allow creation of demo users via the webui

a fix to the lnms user:add command, it didn't set auth_id

update edituser.inc.php to current
just redirect to users page

* Remove TwoFactorTest for now

* Update edituser.inc.php

* Update .env.dusk.testing

* Enable 2fa for 2fa test...
2019-04-22 19:01:39 -05:00
PipoCanaja
a08b8333cc Bug - Nasty user_func vs divisor-multiplier issue (#10122)
* Nasty user_func vs divisor-multiplier issue

* tests
2019-04-17 20:15:31 -05:00
Spencer Butler
c76115bf46 Added support dellNet devices (#10016)
* Added support DELL-NETWORKING-PRODUCTS-MIB (os: dell-net)

* dell-net - created mempool, removed flash (not enough data points)

* dell-net - updated yaml sysObjectIDs

* dell-net - added sensors, fixed sensors

* clean up

* dell-net added Tx/Rx indicators

* dell-net - regroup Lanes

* dell-net remove Lane quotes, removed random files

* dell-net - updated Model description per requester

* added rules to ignore 0 values

* restricted discovery match

* merge dellNet into os: dnos

* typo

* remove dell-net test files
2019-04-12 00:49:35 -05:00
PipoCanaja
36e709ebab Improved Linksys support, including POE (#10075)
Fixes #9718 

This PR adds POE graphs, even if not all the values that are polled on other OSes are available on this one.  

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 10075`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-09 20:32:57 +01:00
PipoCanaja
5697d24869 Added Cisco Small business bootloader + HW version (#10043)
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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-09 20:03:07 +01:00
Neil Lathwood
0a7b0d4086 Added detection for ESW 5xx series of Cisco SB devices (#10077)
* Added detection for ESW 5xx series of Cisco SB devices

* Added test files

* Fixed the regex

* Updated definitions

* Final fix hopefully
2019-04-09 18:45:43 +02:00
PipoCanaja
780ee36b10 Updated support for adva_fsp150 devices (#10049)
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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-09 13:59:08 +01:00
tomarch
e7ba1b195f Added initial support for teltonika (#10059)
* initial support for teltonika
* fix sensors
* fix mibs name
* add rutos.json
* Update rutos.json
2019-04-08 08:54:17 +02:00
Spencer Butler
47e0ee1d04 Added support for Liebert PDUs (#10062)
* Added support for Liebert PDUs
2019-04-07 21:19:08 +02:00
Spencer Butler
e1df2a3dd9 Added support for TP-LINK T1600G-52TS (#9983)
* Normalizing support for TP-Link Jetstream switches

* WIP - playing with MIB Modules

* removed comments

* reset discovery yaml
2019-04-07 08:55:52 -05:00
djamp42
c1fab98cc3 Added device WISI Tangram (#10039)
* Added device WISI Tangram
2019-04-03 06:43:39 +02:00
Tony Murray
7615dd5b39
rename hikvision nvr test file (#10055) 2019-04-01 16:21:27 -05:00
priiduonu
5fc2f18af1 Added support for IONODES video encoders (#10031)
* Added support for IONODES video encoders

* fixed expected number instead of string value error when running tests

* removed extra colon

* added mibs_dir for ionodes

* removed IF-MIB from ionodes.yaml
2019-04-01 09:25:32 +02:00
Spencer Butler
6b4f2476a6 Added support for DELLEMC-OS10-PRODUCTS-MIB (os: dell-os10) (#10011)
* Added support for DELLEMC-OS10-PRODUCTS-MIB (os: dell-os10)

* added info comment

* added group: dell
2019-04-01 09:23:31 +02:00
Spencer Butler
7bfe0bc831 Added support for HikVision-DS Cameras (#9980)
* Added support for HikVision-DS Cameras

clean up

removed pointless file, cleaned up code

fixed failing unit tests, a bit of cleanup

WIP - will rebase

split hikvision into hikvision-nvr an hikvision-cam

* removed unneeded comment and rec file
2019-03-27 15:38:35 -05:00
jozefrebjak
54893b9c4e Added support for EDFA (#9912)
* Create edfa.yaml

* Create edfa.inc.php

* Create NSCRTV-ROOT

* Create edfa.yaml

* Add files via upload

* Add files via upload
2019-03-27 15:37:23 -05:00
Tony Murray
f55302d0c5
Eltek Valere: group by shelf (#10040) 2019-03-27 15:33:22 -05:00
PipoCanaja
7fd7ba5a84 Added support for Orvaldi UPS (#10021)
* ovaldi UPS support

* ovaldi UPS tests

* serial + model + version inc tests

* update of the code using details from requester

* update of the code using details from requester

* update of the tests

* forgot discovery yaml ...
2019-03-27 07:21:35 -05:00
PipoCanaja
743b76ea9c Typo in routeros YAML discovery (#9903)
Typo in routeros YAML discovery (#9903)
2019-03-27 07:15:51 +01:00
Spencer Butler
2ad13f1836 Added support for Ruijie Networks (#10026)
* Added support for Ruijie Networks

* Extend discovery

Let's extend to all the products from this brand, at least until we have more detailed discovery
2019-03-26 20:38:28 +01:00
TheGreatDoc
5535768d25 New Device: ATS - Automatic Transfer Switch (#9889)
* New Device: ATS - Automatic Transfer Switch

* Small fixes

* Fixed test data

* More fixes, again

* Moved temp to php to retrieve limits from device

* Fixed perms again...

* Final test file. Or I hope so...
2019-03-24 18:48:55 -05:00
PipoCanaja
546849f326 Added Panduit Eagle-I (was Sinetica) (#10014)
* Panduit eagle-I

* tests

* mibfile

* over update

* tests redone with dynamic sensors
2019-03-24 18:45:50 -05:00
KodApa85
8ec2476036 Added support for APC AP9810 zone contacts (#9967)
* device: Added support for APC AP9810 zone contacts

* fix: disconnected sensors been detected. And iemConfigProbesTable certainly does get used and it reference

* fix: load is VA, not to be confused with watts. This could be different per device though...
Apparent Power unit = VA
Real Power unit = Watts

And Keeping codeclimate happy

* feature: updated APC MIB

* feature: added test data for APC Smart UPS SMX750i and AP9810 with contact switches
2019-03-22 00:10:20 +01:00
djamp42
fbfed49082 Add Device Arris Apex (#10006)
* device arris-apex

* Code Climate Fixes
2019-03-21 08:51:14 +01:00
Spencer Butler
62113ebde4 Added Med(5m) and High(15m) Utilization sensors for Cambium APs (os: pmp) (#9995)
* Added Med(5m) and High(15m) Utilization sensors for Cambium based (os: pmp) APs

* update the variants
2019-03-19 08:23:08 -05:00
Tony Murray
00a1185980
New permissions code (#9986)
* Initial permissions

* initial tests

* updates

* finish tests, other tweaks

* update legacy permissions checks
remove global :D

* missed facade extend

* Update eloquent permissions to use the new facade and drop joins

* method descriptions

* more docs

* fix style
2019-03-19 08:14:01 -05:00
PipoCanaja
16f7e6c697 Riello UPS os definition with RFC 1628 support (#9962)
* Riello RFC 1628

* tests + logo

* private mibs

* private mibs
2019-03-17 21:54:19 -05:00
PipoCanaja
70437ae42b Dantel Webmon Improvement (#9977)
* Generic polling for webmon

* Tests update

* clean

* tests and count sensor

* typo + tests

* update user friendly OS

* style
2019-03-17 21:42:47 -05:00
Spencer Butler
e5fd217184 Added support for Cisco Small Business WAP371-a-k9 (#9974)
* lnms-9931 - added support for ciscosb_wap371-a-k9
* lnms-9931 - remove testing string
2019-03-16 22:28:31 +01:00
PipoCanaja
6f8311369c
Dell UPS enable rfc 1628 support (#9961)
* dell ups rfc1628
* tests
2019-03-16 09:47:47 +01:00
Tony Murray
3825133602 Fix device missing from traps/new Log::event() (#9963)
* Fix device missing from traps/new Log::event()
2019-03-16 09:24:59 +01:00
Spencer Butler
907579dbef added new OS - sensatronics-em1 (#9960)
* added new OS - sensatronics-em1

* #9960 - added logo, icon, and update skip_values

* #9960 - fixed over: value

* #9960 - updated icon, logo, and updated descr: from static to table names
2019-03-15 13:18:52 -05:00
PipoCanaja
904f64ef12 eatonpdu new device (#9947) 2019-03-13 21:39:49 -05:00
djamp42
0b2fbceedd Add Device Arris DSR-4410MD Sat Receiver (#9943)
* arris dsr4410md

* update sensor names

* code climate fixes

* Add blank line at EOF
2019-03-13 21:39:29 -05:00
PipoCanaja
0b4c7b584a remove calls to unavailable {{ $variable }} from YAML discovery (#9864)
* remove calls to unavailable {{ $variable }} from YAML discovery

* tests

* Add a warning for debugging purposes
2019-03-13 21:04:50 -05:00
PipoCanaja
59f00dcc6b
Improved VRP stack state discovery with one member only to avoid unnecessary alarms (#9925)
* VRP stack state improvement

* tests

* cleaning
2019-03-13 09:03:18 +01:00
Tony Murray
78ae084157
Fix Aruba Instant wireless sensors (#9936)
* fix Aruba Instant wireless sensors

* add tests
2019-03-12 23:59:40 -05:00
Tony Murray
cb005210d2
Resubmit #9608 (#9941)
* Reorganize trap tests

* Testing db DRIVER to prevent .env from interfering

* New code to detect if Laravel is booted.  Hopefully more reliable.

* WIP external test process

* revert module test helper

* Use .env in Eloquent::boot()

* Fix test database settings loading

* fix undefined classes
(didn't find the one I needed)

* Fix incorrect Config usages
And RrdDefinition return type

* fix .env loading

* use the right DB

* slightly more accurate isConnected

* Move db_name to DBSetupTest specifically

* restore $_SERVER in AuthSSOTest

* missed item

* WIP

* tear down in the correct order.

* some testing cleanups

* remove check for duplicate event listener, it's not working right

* Don't need this change anymore

* Implement Log::event to replace legacy function log_event()

* fix port tests

* fix up tests

* remove pointless TrapTestCase class

* fix style

* Fix db config not being merged...

* skip env check for tests

* defer database operations until after Laravel is booted.

* don't include dbFaciale...

* redundant use
2019-03-12 23:59:03 -05:00
Ruslan
019c57beaa Add Junos VirtuallChassis ports polling (#9879)
* Update ports.inc.php

* Create junos-vcp.inc.php

* Fix some formatting errors in junos-vcp.inc.php

* Update junos_ex.snmprec

* Update junos_ex.json

* Update tests/data/junos_ex.jso

* Rollback junos_ex data set

* Update ports.inc.php

* Update junos-vcp.inc.php~

* Update tests/snmpsim/junos.snmprec

* Generate new .json files

* Update includes/polling/ports.inc.php

* Rollback tests/data/junos_ex.json

* Update junos.snmprec

* Update junos.snmprec

* Use str_pad in junos-vcp.inc.php
2019-03-12 09:01:35 -05:00
PipoCanaja
a361f3fd09 Added Ciena Waveserver (#9930)
* ciena waveserver files + MIB

* ciena tests

* ciena forgotten file

* Thresholds + cleaning
2019-03-12 08:58:41 -05:00
Tony Murray
eb648a1d6f
Revert "Changes to improve testing (#9608)" (#9937)
This reverts commit d1a0ccda46.
2019-03-12 00:49:14 -05:00
Tony Murray
d1a0ccda46
Changes to improve testing (#9608)
* Reorganize trap tests

* Testing db DRIVER to prevent .env from interfering

* New code to detect if Laravel is booted.  Hopefully more reliable.

* WIP external test process

* revert module test helper

* Use .env in Eloquent::boot()

* Fix test database settings loading

* fix undefined classes
(didn't find the one I needed)

* Fix incorrect Config usages
And RrdDefinition return type

* fix .env loading

* use the right DB

* slightly more accurate isConnected

* Move db_name to DBSetupTest specifically

* restore $_SERVER in AuthSSOTest

* missed item

* WIP

* tear down in the correct order.

* some testing cleanups

* remove check for duplicate event listener, it's not working right

* Don't need this change anymore

* Implement Log::event to replace legacy function log_event()

* fix port tests

* fix up tests

* remove pointless TrapTestCase class

* fix style
2019-03-11 22:59:39 -05:00
PipoCanaja
6a25ed347b Cleaned sensor descriptions using $subindexX (#9932)
* Netgear

* fusion

* eaton-mgeups

* apc-mgeups
2019-03-11 20:32:30 -05:00
PipoCanaja
6ec97309a0 Grandstream basic support (#9906)
* grandstream simple discovery

* grandstream simple discovery tests

* exclusion in linux matching

* Revert un-necessary changes, and change "over:" to ping
2019-03-10 08:38:46 -05:00
Nick Hilliard
8d67bb776e Improved Infinera Groove discovery (#9913)
* Improvements for infinera groove
- add support for 3.0.1 and prior versions
- add support for subports and fibre-channel
- fix bug relating to OS version detection
- updated unit test snmprec
2019-03-10 11:58:34 +01:00
ospfbgp
eb82a153d9 Add support for power supply on Extreme BOSS switches (#9898)
* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Update boss.inc.php

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2019-03-09 14:24:37 -06:00
Vitali Kari
06bba5a2b2 add support for cirpack soft switch (#9914)
* add support for cirpack soft switch

* remove unused lines
2019-03-07 19:57:06 -06:00
Tony Murray
7bbf30bbe9
Fix printer discovery level (#9917)
* Fix printer discovery level
When the printer knows there is "some" paper left.

* update test data
2019-03-07 19:51:39 -06:00
tarik
e3e3de1442 Printer paper tray status and error states (#9859)
* adding paper tray status and error states

* adding paper tray test data

* Create jetdirect_papertray.json

* Store printer supply type

* Update json data

* fix style
2019-03-06 18:58:14 -06:00
GitStoph
a114d98cdd Meraki MS: add serial number (#9768)
* added line to merakims.inc.php to properly code serial # in devices table

* Update merakims.inc.php

* Update merakims.snmprec

* Create merakims.json

* Update merakims.inc.php

* Update merakims.inc.php
2019-03-05 22:19:54 -06:00
PipoCanaja
9deb00f20c Added Patton SmartNode OS discovery and polling (#9901)
* Patton SmartNode OS discovery and polling

* mempools

* graphs overs

* []
2019-03-05 21:35:58 -06:00
network-guy
65fba42306 Dantel WebMon Device Support (#9767)
* Dantel WebMon Support

Webmon tep discovery changes

Fix Code Climate Issues

* WebMon - Move MIB to folder and create json reference

* Minor changes to Webmon polling
2019-03-05 00:46:00 -06:00
Tony Murray
f4a33c1a34
Prevent credentials from being leaked in backtrace in some instances (#9817)
* Prevent credentials from being leak in backtrace in some instances
Particularly before the user is authenticated

* fix test
2019-03-05 00:24:14 -06:00
PipoCanaja
e17f47a329 Added VRP stack member and ports discovery (#9891)
* VRP stack ports

* Add test data
2019-03-05 00:23:25 -06:00
priiduonu
489666ae74 Add support for Moxa EDS-G512E-8PoE (#9857)
* Add support for MOXA EDSG512E8-PoE

* Add support for MOXA EDS-G512E-8PoE

* Add support for MOXA EDS-G512E-8PoE

* Remove whitespace

* Create MOXA-EDSG512E8POE-MIB

* Delete MOXA-EDSG512E8POE-MIB

* Create MOXA-EDSG512E8POE-MIB

* Delete MOXA-EDSG512E8POE-MIB

* Create MOXA-EDSG512E8POE-MIB

* Update moxa-etherdevice.yaml

* Create moxa-etherdevice_edsg512epoe.snmprec

* Create moxa-etherdevice_edsg512epoe.json

* Add support for MOXA EDSG512E8-PoE

* Add support for MOXA EDS-G512E-8PoE

* Add support for MOXA EDS-G512E-8PoE

* Remove whitespace

* Create MOXA-EDSG512E8POE-MIB

* Delete MOXA-EDSG512E8POE-MIB

* Create MOXA-EDSG512E8POE-MIB

* Delete MOXA-EDSG512E8POE-MIB

* Create MOXA-EDSG512E8POE-MIB

* Update moxa-etherdevice.yaml

* Revert "Add Moxa EDS-G512E-8PoE test data"

* Add test data for Moxa EDS-G512E-8PoE

* Removed whitespace

* Update moxa-etherdevice_edsg512epoe.json

* Update moxa-etherdevice_edsp510a8poe.json
2019-03-05 00:19:16 -06:00
PipoCanaja
4599b36b25 Access to "sub" index (when OID has multiple indexes) (#9893)
* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* accessing in YAML each part of the index in case oid has more than one

* Codeclimate

* Initialisation + comments

* Like this
2019-03-04 21:17:14 -06:00
Tony Murray
b402e859fd
Fix Cisco Sat style (#9902)
* Fix Cisco Sat style

* update index
2019-03-04 21:12:12 -06:00
djamp42
8c5f86f32d Add Device - Cisco Sat Receivers (#9899)
* Cisco Sat Receiver

* Formatting Fixes

* Code Climate Fixes

* Add $entry field in the last array.

* Formatting Fixes

* Updated to correct S/N was grabbing wrong OID.

* Update test data for missing serial #

* Updated Serial # test data
2019-03-04 16:08:11 -06:00
KodApa85
7f104d4fd9 Advanced state sensors (#9881)
* refactor: advanced sensor states

mark create_state_index($state_name) as E_USER_DEPRECATED?

* fix: minor corrections

* fix: mib has partialSync(9) and incompatibleVersion(8)

* fix: corrected netagent2upsstate - Sleeping(5)

* fix: NetAgent2 upsThreePhaseUPSStatusInverterOperating correction

* refactor: array() be gone

* Refactoring includes/discovery/sensors/state/extendair.inc.php with arrays
And tidying up array formatting in other files

* fix: minor typo

* standardising array item names

removed redundant "if ($state_index_id !== null) {"

* workaround: procurve & serverscheck

a sensor is causing create_state_index($state) to return null.
The updated code doesn't allow for this and thus a hybrid is being used.

* standardised naming of state info. Caused a typo $state_name instead of $status_name
$state_name is the standard

* converted compas to square arrays

* Converted APC states using preg_match to new create_state_index() call

* Update boss.inc.php
2019-03-04 11:31:17 -06:00
Nick Hilliard
09caced7ef Add support for Infinera-Coriant Groove (#9843)
* Add support for Infinera Groove
2019-03-04 17:31:53 +01:00
Tony Murray
e677d4b63e
Fix incorrect icon sometimes (#9887)
* Fix icon finding
Also fix os suggest not loading all OS.

* Fix os that would have missing icon under the new code (and one under the old code)

* forgot icon
2019-03-01 23:06:01 -06:00
Vitali Kari
49f01970c5 add support for sagemcom (#9835)
* adds support for sagemcom

* requested changes

* delete unused variable

* logos

* modules fine tuning

* code style

* Update sagemcom.svg

* Update sagemcom.svg
2019-03-01 08:08:04 -06:00
PipoCanaja
e82f1fc316 VRP: add fan description to hwEntityFanState (#9863)
* VRP: add fan description to hwEntityFanState

* tests
2019-03-01 06:03:53 -06:00
crcro
3ad698ff98 Added edgeos hardware info (#9867)
* added hardware info
cleanup os version

* allow minor revision to be larger than 9

* Update edgeos.inc.php

* snmprec

* Create edgeos.json
2019-03-01 01:00:01 +01:00
KodApa85
3c0d0c9fba Added support for Alpha Comp@s (#9871)
* newdevice: Added support for Alpha Comp@s
http://www.alphainnovations.eu/compas

* fix: Updated state values
state values persist in database, even after deletion of devices.
Not a 100% how to purge them.
create_state_index($state_name, $states) doesn't update the database, if the states have changed

* refactor: comp@s OS state sensor now updated to latest format
2019-03-01 00:14:17 +01:00
ospfbgp
1ea3fdd70a Discovery rcChasPowerSupplyOperStatus for Extreme/Avaya (#9878)
* Update voss.inc.php

* Update voss.inc.php

* Update voss.inc.php

* Update voss.inc.php

* Update voss.yaml

* adding support for vsp9012 and vsp8608

* Add files via upload

* Add files via upload

* Add files via upload

* Delete voss_8608.json

* Delete voss_8608.snmprec

* Delete voss_9012.json

* Delete voss_9012.snmprec

* Add files via upload

* Add files via upload

* Delete voss_vsp-9012.json

* Add files via upload

* Add files via upload

* Add files via upload

* Delete voss_vsp-9012.snmprec

* Add files via upload

* Delete voss_8608.json

* Delete voss_8608.snmprec

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
2019-03-01 00:11:37 +01:00
esundberg
8929cdb458 Added Perle OS Support for IOLAN SCS (#9866)
* Sync Git to Master

* OS Support for Perle Terminal Servers. Added via /scripts/new-os.php. Tested on two devices

* There was an existing Perle OS, updated it to include the Perle IOLAN SCS model .1.3.6.1.4.1.1966.12. Removed Files the script created that were no longer needed

* There was an existing Perle OS, updated it to include the Perle IOLAN SCS model .1.3.6.1.4.1.1966.12. Removed Files the script created that were no longer needed. Round 2

* Update exiting includes/definitions/perle.yaml to catch all device by Perle. Removed the .gitignore files from the branch

* Git Add includes/definitions/perle.yaml helps

* Empty file not allowed in YAML verification

* restore missing files

* restore missing files

* restore missing files

* Restore the sysDescr

The existing testdata relies on this, as sysObjectID is not collected
2019-02-25 14:15:51 +01:00
jozefrebjak
99c8dbd5a1 Added power and fan sensors to VRP (#9838)
* added power and fan sensors to vrp

* Update vrp.yaml

* Update vrp.yaml

* Update vrp_5720.snmprec

* Update vrp_5720.json

* Delete vrp_5720.snmprec

* Delete vrp_5720.json

* revert old snmprec file for 5720

* revert old json file for vrp 5720

* Create vrp_5720_32x.snmprec

* Create vrp_5720_32x.json

* Update vrp_5720_32x.snmprec

* Update vrp_5720_32x.json

* Update vrp_5720_32x.snmprec

* Update vrp_5720_32x.json

* Update vrp_5720_32x.snmprec

* Update vrp.yaml

* Delete vrp_5720_32x.json

* Delete vrp_5720_32x.snmprec

* Add files via upload

* Add files via upload

* Update vrp_5720.json
2019-02-22 07:39:07 -06:00
PipoCanaja
e2f835ad9d
FDB table with history capabilities (#9804)
* Migration script and data feeding

* Adding the columns in the GUI

* build schema

* update FDB test data

* Use of timestamps()

* ignore created_at and updated_at in tests, and regenerate test impacted

* daily.sh does the cleaning

* space cleaning codeclimate

* Use carbon instead of str-val

* handle when $fdb_entry->updated_at and created at are null

* handle when $fdb_entry->updated_at and created at are null (force travis rerun)

* Doc update

* Doc update
2019-02-21 13:23:01 +01:00
jozefrebjak
2eac72d34b Added support for Protelevision DVB-T Transmitter (#9648)
* Create protelevision-t1.yaml

* Create protelevision-t1.yaml

* Create PT-MIB

* Create PT3080-MIB

* Add files via upload

* Create protelevision-t1.snmprec

* Create protelevision-t1.json

* Create protelevision-t1.inc.php

* Add files via upload

* Delete protelevision.png

* added indexes to dbm sensors

* Update protelevision-t1.yaml

* added On Air TS Bitrate

* Update protelevision-t1.yaml

* added more sensors

* Update ProtelevisionT1.php

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* added more sensors and grouping of state sensors

* Add files via upload

* Update protelevision-t1.json

* Update protelevision-t1.json

* Update protelevision-t1.snmprec

* Update protelevision-t1.yaml

* Update protelevision-t1.json

* Update protelevision-t1.json
2019-02-19 00:39:16 -06:00
PipoCanaja
cc08235fe2 Netscaler SDWAN appliance - Serial# + Version and state sensors (#9834)
* mib

* versions and serial

* sensors

* sensors

* tests

* cleaning

* (force travis rerun)
2019-02-18 10:16:40 -06:00
KodApa85
9dba9f6265 Netgear m5300 health sensors (#9744)
* ZyXEL XGS4600-32F
- Added mib for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage
- Updated zyxel group mempools
- Updated test data
    - snmprec
    - json
- Altered ZyWall
    - To exclude XGS switches

* Defined ZYXEL-HW-MONITOR-MIB at the top of file

* Removed .MIB

* Netgear M5300
- Added mibs for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage

* Netgear M5300
- Added mibs for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage

* Create netgear.json
2019-02-17 20:07:13 -06:00
Søren Rosiak
ae7e2621f6 Fix Junos CPU Discovery (#9467)
* Fix SRX processor description..

* Add hacky mode to identify which CPUs to poll

* Create junos_srx3600.json

* update EX test data
2019-02-16 08:01:32 -06:00
Marc
fcb0b67714 Additional TPLink JetStream mem/cpu support (#9829)
* newdevice: Additional TPLink JetStream support
Added: T1700G-28TQ, T1600G-16TS
Updated: T1600G-28TQ to use cpu/mem

* Create jetstream_t1600g-18ts.json
2019-02-15 21:33:30 -06:00