* 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
* AuthSSOTest: clear roles cache
* PollingJob: When a poller module doesn't exist, return null instead of false. Skip all other checks and disable polling in that case.
* Sensors: Guess high and low limits separately as needed
* Sensors: drac test psu current data was wrong, referencing the snmprec, 8 / 10 and 0 / 10 should be the values
NOTE: drac is messed up and runs a billion snmp queriess for no reason
* please phpstan
* Sensors: limits reference old code
move to "creating"
* Fix gw-eydfa accidental assignment
* Fix ies5000 test data now that the bad state is removed
* Fix ies5000 test data part 2
* Move sensor discovery reset into discover_device()
* infinera remove duplicate sensor (also a lot of trailing whitespace apparently)
* Fix innovaphone bad yaml discovery
* module tests should be using null when test data doesn't exist, not an empty array
* When discovery or polling is not supported, dump null instead of an array.
Account for nulls in testing
* update ISE serial
* Janitza was seemingly wrong before
* Remove some private data
* bgp-peers requires ipv4-addresses and ipv6-addresses for bgpPeerIface
* fix polycomLens broken state sensor discovery
* Raritan pdu and pdu2 test data was combined in one test file, split it out
* scs-ks duplicate temperature sensor indexes
* sentry3 someone tried to avoid breaking stuff but just broke things more
* smartos-dcp-m fix incorrect numeric oids
* ssu2000 apparently test data was wrong, must have fixed a bug in the code.
* timos remove duplicate dbm sensor definitions
* bgpPeerIface is working in tests now
* Fix moxa-etherdevice when mibs are a bit different
* xw_to_dbm negative values should return null
* Update cisco test data due previous fixes/changes
* One more bgpPeerIface
* Add orderBy to ospf module db dumps
* Remove links test data for now
* Improve handling of bad data in ipv6-addresses module
* More cisco state fixes
Turns out it was fetching values as strings. Swap to SnmpQuery and fetch the data numeric as expected
* Apply fixes from StyleCI
* update MIB too
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* 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>
* add PTZ and Dome Cameras
* remove default temperature limits
* set temperature limit per device type
* fix linting
* add test data
* set original limits as default and use integers instead of strings
* Move sentry3 current and voltage sensors to YAML, add power to YAML, fix voltage for three-phase
* Sentry3: add systemTotalPower and systemPowerFactor
* sentry3: note that voltage and power factor are configured, not measured
* sentry3: group names to indicate sensors which are configured, rather than measured; prefix current index with infeedID to match previous PHP discovery
* sentry3: add ouprefix to outlet current to match previous PHP discovery index
* sentry3: restrict to recording voltage to only the first feed of each tower, to match previous indices
* sentry3: add snmprec from 3-phase CS-24V4-P32MA
* sentry3: attempt to fall back to Infeed
* sentry3: laravel blade fallback fix
* update tests instead of trying to fall back to old-style descriptions
* sentry3: update expected voltage in test, too
* typo
* fix test
* fix outlet OIDs ; update snmp test data with missing names ; regenerate test output
* add missing num_oids for power
* num_oid requires index, even for system-wide values
* Increase the column width of entPhysicalIndex and entPhysicalIndex_measured
* Update schema
* Remove unchanged change
* Update test data
* Remove migration and update test data
* Fix hirschmann and junos
* One too many
* Potentially incorrect usage
* Another potentially incorrect usage
* Revert changes to cisco and dell
* Test data changes for loop-telecom and ups-nut
* Update entity-sensor.inc.php
* FSW Test data
* FSW Test data JSON
* StyleCI
* Update fortiswitch.yaml - Correct state sensor index
* Update fortiswitch.yaml
* Add files via upload
* Fix sensor value at discovery
* Create ARUBAWIRED-AAA-MIB
* ArubaOS-CX MIBs
* ArubaOS-CX Test data
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Style CI
* Style CI
* New test data
* Add files via upload
* Add files via upload
* Only translate the VSF sensors
* Style CI
* Update arubaos-cx.inc.php
* Add files via upload
* Update fortigate.inc.php
* Add percent sensors for DHCP Pool usage (per vDOM)
* FortiGate 40F JSON Test Data
* FortiGate 40F JSON Test Data for DHCP Usage sensor
* Style-CI Fix
* Style-CI Fix
* FortiGate 40F JSON Test data
* FortiGate 40F SNMPrec Test Data
* Add license expiration days state sensor
* Add FortiGate license expiration count sensors
* Update FORTINET-FORTIGATE-MIB
Update to version 2023-07-21
* Update cisco.inc.php - Add REP Segment state sensor
* Create ios_cisco.snmprec
* JSON files for REP support test data
* Rename to IE2000 and add matchin JSON
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added models in hirshmann definition file
* Added Hirschmann_ms4128.snmprec to ~/tests/snmpsim
* Generic SysObjectID
* Some devices are not replying with all the table data
* fix tests accordingly
* add more sensors
* Move Temperature to YAML
Discovery and polling are currently buggy, this will fix it and make it capable of handling more than one temp sensor.
History of temperatures will be lost here.
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fix Fortinet HA status polling
* Test data
* Update fortigate.inc.php
* Update fortigate.inc.php
* Update all test data
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Added values from SFP DDM's
* Added tempreture as well
* Fixed indention and generel code style
* Update awplus.inc.php
* Fixed coding style
* More code style fixes
* More style fixes
* Test data
* Test data that only contains/matches the sensors added.
* Fix health temperature degree display
It will be converted to html later. (otherwise it was double converted)
* Remove all ° it will only cause troubles
* Remove snmp functions that are barely used
Replace them with SnmpQuery calls
* Apply fixes from StyleCI
* Fix missing namespace
* Import Oid
* No more variables left may be repeated multiple times at the end with snmpsim, remove them all
* update data fixed by SnmpResponse bugfix
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Fix error when missing poller data
* Apparently impossible to detect regex without error, so require regex always. Update docs.
* Apparently this adva code is garbage :D
* Missing count sensor type
* Processor handle missing input
* Handle missing ifName a little better
* Yep, ports module is a dumpster fire. Attempt to clean up some.
* apparently os yaml trying to replace on non-existent fields
* Might as well define all sensor type units
* revert previous fix, real issue was vlans module does not have polling.
* Force cast on some values before doing arithmetic
Some devices (like Delta InsightPower G3 Mini SNMP Card) return STRING instead of numerical value.
A few lines after, when doing a division on it, everything go bad ( / $divisor).
I added force casting, no more crash and the values are OK.
* Using helper cast_number() instead of intval()
* Fix style
* Add test data
* Stop using deprecated function cast_number