* Add PHPUnit test for LibreNMS Discord transport
* Style
* Adding comments for methods and others.
* Refactor title, color, embedFields and footer to its own methods.
Renaming and comments.
* testDiscordDelivery includes img and html tags.
* testDiscordDelivery tests INI options
* renamed getter methods for clarity.
Refactor to includeINIFields() method.
* refactor attribute $discord_message;
* Discord.php: Bugfix "Error: Invalid Field" when discord-embed-fields is left empty.
Discord.php: Removed DEFAULT_EMBEDS (defaults are not working with text fields).
DiscordTest.php: transport config tests improved.
* Transport.md: Documented options, images and ebed fields. Better examples.
* typos
* styleCI and PHPStan
* StyleCI
* StyleCI
* content centered in minigraph-div.
Removed white background to improve readability.
* comment removed
* Improved visibility of all ports in dark mode by removing bright grey background.
* Improved border color for dark and light theme.
* Add circular loop detection to MaxDepth
* Formatting fixes
* Remove controversial bit
* Remove the recursion on the observer code updating max depth of child devices
* Update the fast ping code to keep track of device dependencies instead of using max_depth
* Style fixes
* Add circular loop detection to MaxDepth
* Formatting fixes
* Remove controversial bit
* Update the fast ping code to keep track of device dependencies instead of using max_depth
* Style fixes
* Fix the device list
* Remove some more old lines from the ping job
* Filter parents to those that have ping enabled to ensure child devices are always trigered for alerts
* Formatting fixes
* Added code to the ping check to order the hostnames so we try to ping parent devices before children
* Formatting fixes
* Add some types
* Refine host ordering code
* Fix output and simplify lnms poller:ping command
* a bit more cleanup
* Formatting fixes
* Fixed up type for waiting on list
* Formatting fix
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Avoid a redirect loop if we have a toasts (login error)
* 1st try to a new approach
* Fix extra return
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Update eltek-webpower.yaml
Added the BatteryQuality value. Shows the battery quality percentage of the latest battery test.
* Update eltek-webpower.yaml
fixed the json format error
* Update eltek-webpower.json
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Improve OcNOS port breakout detection
Old code required a transceiver to exist in one of the breakout ports
* Allow functionality without prots module running
* OcNOS transceiver temperature display fix
Temperatures were not displayed in the transceiver area. Update the group to fix that issue.
* Update test data
* Add transceivers module
Move os specific code to OS
Fix errors and updated connector names
Add RouterOS, a lot less data there.
Add Comware
Add Exa, required a transformer function (mw to dBm)
Add Junos, revision was too short
Just starting on ui
Graphs, and more ui
some polling fixes
collapse header for small screens
refactor a bit
Missed graphs
Transceivers icon inline
Use @once on popup javascript
update db_schema.yaml
Don't show transceivers in basic view
basic view could use a review
Apply fixes from StyleCI
API functions
Comware don't fail if port is missing
Apply fixes from StyleCI
Add alert rules to collection
Device Overview
Attempt to fix bad alert rule, probably needs more
Fix up Comware and remove old sensors
Mark transceiver metrics without thresholds as Unknown
Routeros cleanup
Exa cleanup
Handle missing port
Graph allow filter by channel
More translations
Add transceiver graphs to port graphs
Add Cisco support, use entPhyscial module data if available
Fix OcNos divisors
Labels on transceiver page
Show encoding if available
Hacky OcNos port mapping
Fix up Junos optics and remove old sensors
FS switch support
Metric casts to prevent thrashing
Extra transform_function support
Add link to transceivers page from overview
Change default sort to group by type, then channel
move some code out of overview blade template
Fix bad type ocnos
Apply fixes from StyleCI
Add scales to graphs
Add some test data
Default sort order for metrcis in SQL applied by default
Transceiver metrics threshold manual settings via WebUI and API
Fixes to channels verbiage
Fix severity calculations
Add cable field for SM/MM/Copper
Apply fixes from StyleCI
update test data
Show DDM
Update DB schema file
Extend serial field to 32, even though devices shouldn't be able to have one longer than 16
Missing import
Add status field to database, that way we can support snmp implementations that only return an enum
Add missing files
Fix db_schema
Fix style
Fixes
Style fix
Work around phpstan issue
Update transceivers.blade.php
Missed getStatus() call
Prevent extra dots when channels are not changed
Update module to match upstream
Save ocnos metrics as sensors
Move to regular sensors
add entity physical index
Update UI to sensors WIP
Apply fixes from StyleCI
Forgot one change
Update ui to use sensors
Remove transceiver metrics
Remove metric os discover code
fs-switch pending
Remove transceiver metrics for fs-centec
Exa link up
Revert all test data
Fix up transceiver module interface
Remove unused Convert class
comware cache and transceiver type
Fix some transceiver metrics filtering and formatting issues
Consolidate display formatting
Coalesce commare hh3cTransceiverTable walks to prevent double walk
Use group to identify transceiver sensors
Fixup routeros
Fix up cisco
update db_schema
Small addition to docs
Improve overview layout and add graph popup
Update Junos
update css files
ddm should be nullable
Increase the field length for type and model
Cisco Improve detection when there is an intermediary container
Add transceiver test data
Apply fixes from StyleCI
Fix incorrect test data
Improve display formatting
Fix test data
Apply fixes from StyleCI
Fix up more data
Fix up more data
Fix incorrect return type in routeros
Update ocnos data
* Remove some remaining references to transceiver_metrics table
* Format Oxidized update time
Format Oxidized update time to local timezone (instead of UTC)
* extra space removal
* and one more
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Update discovery-protocols.inc.php
When using the LLDP-V2-MIB, the device may reply with lldpV2RemPortId as hexadecimal. To convert it to a string, this update checks if the lldpV2RemPortIdSubtype is '5' = "interfaceName(5)"; if so, the code removes the character ":" from the value of lldpV2RemPortId and tests if it is hexadecimal. If the test is positive, it translates it into a string.
* Update discovery-protocols.inc.php
Added lines 342 to 345 to convert the lldpRemPortId when is hex and lldpRemPortIdSutype is 5.
* Update discovery-protocols.inc.php
Importing lib StringHelpers.
* tabs + tests PANOS
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Global VLAN ports page
* Show a list of devices too
* Fix a little theme color issues
* oops
* Just put css in the theme
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
Co-authored-by: Neil Lathwood <gh+n@laf.io>
The SysObject ADVA list is messy. "nemihubshelf" device is a 150CM, and crashes when discovered and polled as a 150CC. This PR excludes them from being discovered wrongly.