* Fix sensor state translations
* Fix up lint/style
* Set state_index_id
* Apply fixes from StyleCI
* Wrong call
* just use a loop
* Wrong id column
* Missing fillable
* Handle sensors missing state translations
* Before making a state index
* Can't map to a state index if it doesn't exist
* Apply fixes from StyleCI
* ies5000 overflowing tinyint
* Accept state translations directly add that in the translation
* handle duplicate state names, but with different case (skip no way to work there)
* Apply fixes from StyleCI
* Fix type stuffs
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Update Matrix.php
Changing 'm.text' to 'm.notice' so that when an alert is issued, you get notified on your Matrix client.
The current 'm.text' parameter will silently send you the message, whereas 'm.notice' will send you a message with an alert.
* Enabling notifications on Matrix client
Changing 'm.text' to 'm.notice' (line 47) so that when an alert is issued, you get notified on your Matrix client.
The current 'm.text' parameter will silently send you a message, whereas 'm.notice' will send you a message with an alert.
* Update Matrix.php
* Update Matrix.php
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Convert Config to a singleton
Continuation of #14364 by @Jellyfrog
This time, make the old class a shim for the facade. Will update references in a separate PR.
* Remove logging config call
* Apply fixes from StyleCI
* Fix bad Git constructor call
* Fail on config table does not exist instead of throw exception
* Inline LibrenmsConfig::isRegistered()
* Debug call in case there are more issues,
remove before merge.
* Fix up config tests
* Allow config cache controlled by CONFIG_CACHE_TTL (disabled by default for now)
* Enable config cache for tests
* Remove debug statement and deprecation phpdoc
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Improved module controls
Ability to clear device module overrides from webui
Ability to clear all database data for a module (helpful for module you have disabled that still have data)
Database reset only works for modern modules.
* Update functions.php
* save-test-data.php improvements
Message when snmprec data is not found
Output when venv setup fails
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Update CISCO-LWAPP-TC-MIB
Uploaded latest version from Cisco Feature Navigator
From the original Cisco MIB:
Deleted duplicate END in line 868
Change the names “dot11_6ghz” and “dot11_xor_5_6ghz” by removing the underscore (example: “dot11-6ghz” “dot11-xor-5-6ghz”)
* Update Iosxe.php
Added Wireless Controller module
* Update iosxe.yaml
Added AP count and Wireless Client
Credit to @AllanHahn
* Create iosxewlc.yaml
Added IOS-XE WLC. Need to add sysObjectID for the future devices beyond WLC9800.
System description has IOS-XE in it
* Update iosxe.yaml
* Update iosxe.yaml
WLC 9800 not included, have own YAML file
* Create iosxewlc.php
* Update Iosxe.php
Remove WLC Module
* Rename iosxewlc.php to Iosxewlc.php
* C9800 WLC detection
* Update iosxewlc.yaml
* Remove CiscoWLC notes
* Remove ISIS
* Update Iosxewlc.php
* Fix syntax
* Remove Cisco WLC notes
Need some cleanup since already created new PHP file for Cisco IOS-XE WLC
* Update Iosxewlc.php
* Update CISCO-LWAPP-AP-MIB
Downloaded the latest from Cisco MIBS to support AP count for Cisco WLC C9800 models.
* Update Copyright
* Change type from network to wireless
* Patterned with AirOS Cisco WLC
* Create iosxewlc_c9800.snmprec
Added test file
* styleci compliance
* styleci compliance
* styleci compliance
* Uploaded data from actual device
* styleci compliance
* styleci compliance - remove space
* Merge iosxe and iosxewlc
As discussed
* Merhe iosxewlc.yaml to iosxe.yaml
No over graphs for Number of Clients and AP Count or IOSXE WLCs but still can view via Tabs
* remove iosxewlc.yaml
Covered by iosxe.yaml
* Delete iosxewlc.php
Covered by iosxe.php
* Rename iosxewlc_c9800.snmprec to iosxe_c9800.snmprec
due to removal of iosxewlc template which was merged.
* styleci compliance
* styleci compliance
* Update iosxe_c9800.snmprec
* Update iosxe_c9800.snmprec
* rerun-tests
* Remove pollOS block from Iosxe
* Check before polling and add additional IP discovery
* lint fix
* Added raw data from actual device
Convert sensitive data to <private>
* Create iosxe_c9800.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
buildCommand needs to be public access for show command, reverted to protected because I thought it was only for tests, and that doesn't require it to be public anymore.
* Sensors remove reliance on global variable
* Apply fixes from StyleCI
* Clear the instance instead of reset.
Remove $valid['sensors'] from docs
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* IP Infusion OcNOS inventory
* Hide strings that say item is missing
Handle more sfp ethernet types
* Add Edgecore models AS5912 & AS7316 port mapping
* Test data
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Split out single device polling to a Laravel Job
Probably totally broken :)
* Add dispatch option to device:poll
* Fix up submodules
* Add missing logger parameter
* Apply fixes from StyleCI
* Update module format in test helper
* Apply fixes from StyleCI
* Use Log facade to match other code
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Remove echo from modern modules
Still used many other places, further PRs will follow
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Initial entity-physical code
* Split out Entity-MIB trait
* Cisco Cellular inventory
* Fix bad test data
* alfo80hd - we now include all entPhysical entries
* Correct aos7 test data
* Add entPhysicalClass as last resort for label in ui
* aos add previously filtered data
* Fixup arista-eos data
* Update ariast_eos data
* Arris, clean garbage in Rev fields
* Aruba Instant custom inventory ported
* ArubaOS CX add vendor type mib
* aviat-wtm test data refresh
* axos add shelf fix data fields a bit
* ciena-rls
* ciena-sds
* Skip cimc for now... no test data
* Cisco updates
* Comware data update
* Update dnos
* Clean Edgeos garbage, make code from Arris shareable
* Relaxed ifIndex match, some devices cheat and send back static strings instead of formatted OIDs
* Regex refinement and updated edgeos with new clean data
* Update edgeswitch data
* Update eltex-mes21xx data
* eltex-mes23xx
* Guess at eltex-mes24xx since there is no test data
* Update eurostor, fix firmware version
* Apply fixes from StyleCI
* fixes
* Update fortigate data
* Update fortiweb, ftd, and fusion
* Update linux LSI
* Fix hexToAscii null removal with different seperator handling
* icotera add final snmprec data to avoid snmpsim bug
* Update IOS data
* Update mrv-od
* Add junos translation
* Generic data updates n-r
* ruijie workaround snmpsim bug
* Port saf-cfm
* Recode Schleifenbauer, and fix entPhysicalIndex values
* SmartAX fixes
* sm-os and tait-infra93
* timos inventory was not right, fix it up
* ubiquoss-pon
* VRP, has custom data collection on top of normal
adapt port ifIndex lookup to handle it
* VRP exceeded the string length specified in ENTITY-MIB...
* data updates
* Final data update and code cleanup
* Apply fixes from StyleCI
* Lint fixes
* Add missing SnmpResponse->pluck() code
* Update db_schema.yaml
* Fix bad test data
* Another instant-on update
* oops
* Remove some unused code
# Conflicts:
# includes/html/pages/device/overview.inc.php
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Nac polling improvement
Was loading all nac entries from the DB, then filtering them. Now it only loads non-historical entries off the bat.
All this because the filter was returning the wrong type...
* Add missing get
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.
I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:
```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```
* adjustments to baicells od04
* undo modification to mib
* add original unmodified mib, tweak yaml, add time conversion function
* added baicells od04 snmprec
* skip invalid values
* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec
* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB
* Update baicells-od04.yaml
* Create BaicellsOd04.php
* move userfunc into OS
* style
* squash php casting warning
* missing static
* style
* fix {{ $index }}
* Create baicells-od04.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fix expandable sizing
* Temp fix: port_id_{low,high} is actually ifIndex
* new PortsStack discovery module, store actual port_ids
* Show 4 rows of ports by default
* Add test data
* Fix up the single port view too
* Apply fixes from StyleCI
* Update db_schema.yaml
* Update base migration because sqlite cannot add primary keys
* Fix phpstan failures
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Snmpsim use python venv
Patch to enable listening while minimizing output
Update lnms dev:simulate, tests, and ./scripts/save-test-data.php
removed old option to start snmpsim from older scripts, use lnms dev:simulate
* Apply fixes from StyleCI
* various fixes
* Remove patch official package is updated
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
Always ignore underscores. Vendors constantly break this rule and it doesn't seem to have any side effects to enable -Pu.
translate respect hideMib() option
* Create ArubaosCx.php
* Create arubaos-cx_nac.snmprec
* Remove un-needed "use" lines
* Add spaces for formatting
* Add blank default values if information is not present
For table entries that do not have a value, add a fallback to a blank string, following the lead of other OS files
* Changing return types for vlan to match column type
* Delete indents on blank lines to please the formatter
* Create arubaos-cx_nac.json
* Update arubaos-cx_nac.json
* fix authz_status missing value
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* CHG: Dynamic debug flag and ability to exclude networks.
* Update config_definitions.json
* Update settings.php
* Update documentation.
* FIX: StyleCI Fixes.
* FIX: StyleCI Fixes.
* CHG: Changed excluding by network to by group membership
* Update settings.php
* Update config_definitions.json
* Update documentation.
* FIX: StyleCI Fixes.
* FIX: StyleCI Fixes.
* FIX: Fetch device data from cache.
* Add a check to see if we are trying to exclude by group before fetching groups.
* remove whitespace
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add entity physical test data
* Fix voss_8608 accidental character
* Non-ascii character... unsure about this one.
* Fix bad types on test data.
* Fix bad types on test data.
* Updated test data since snmprec is repaired a bit
* More fixes
* Fixup more bad data
* Extra null byte removed
* Add missing info
* Fix bad data
* Update siteboss571.yaml - Tidy up descriptions and fix current sensors
Fix issue with current sensors 1.1 and 200.1 - these were being overwritten with the per-module sensors due to overlapping IDs. insert extra index definition for each type. this is a breaking change that will cause new RRD files to be created for the current sensors with the new index names.
* Update siteboss571_siteboss571.snmprec
update test data
* Update siteboss571_siteboss571.json
* Revert "Update siteboss571_siteboss571.snmprec"
This reverts commit b767dbc91b.
* Revert "Update siteboss571_siteboss571.json"
This reverts commit a144078ed8.
* Create siteboss571_siteboss571-2.snmprec
* Remove Siteboss571 PHP detection, add new json test output
* Update siteboss571_siteboss571.json with new discovery
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>