* packet_loss macros quick fix
Due to device_perf table going away, this macro no longer functions as it did.
Use device status to make it somewhat functional until a better solution can be found.
* remove space
* Add support for a maintenance boolean in API results.
If a device is under maintenance, it would be nice to see that from the
API. This can help drive other automation workflows where LibreNMS forms
a cornerstone in the management source of truth.
* Revert changes made by VSCode formatting.
* Revert two more formatting changes.
* Create a new API endpoint for GETing maintenance status.
This uses the same endpoint name as for setting a device to maintenance
but with a GET verb.
---------
Co-authored-by: Joe Clarke <jclarke@cisco.com>
* Improved Latency graph
Store loss+jitter info in rrd instead of database
New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data)
Delete device_perf table
* Change loss to an area so it is more visible
* Style fixes
* Cleanups from phpstan & tests
* exit_code fix
* Remove alert usage of device_perf
* Don't use magic __get
* Add test for bulkPing
Add host to previous tests
* style fixes
* Fix issue fping error responses
* Pretty up Slack formatting.
* Normalize spaces by turning every instance of two or more spaces into
one space.
* Allow for custom URL links even when strip_tags() is in effect by
transformaing "standard" markdown syntax into Slack link markdown
after strip_tags() is run.
* Document the changes to the Slack transport.
While here, flesh out the Slack docs to match the configuration options
one currently sees in the transport.
* Use backticks to escape things from markdown rendering.
* We don't need this other escaping now.
* Fix custom link due to line break.
* Fix spelling typo.
---------
Co-authored-by: Joe Clarke <jclarke@cisco.com>
* Added support for new device OS Westermo WeOS
updated high limits
* Removed config regarding discovery and polling modules
* First test with moving sensor discovery to YAML
* Updates to discovery snr sensor, new test data, deleted sensors written in php
* Fix for SNR discovery sensor descr
* Removed shdsl from bad_iftype
---------
Co-authored-by: OSIRIS-REx <sphinxes@protonmail.com>
* rls definition
* Adding discovery
* Temp Sensor Discovery
* files for discovery
* Adding and updating MIBS
* Add snmpsim
* Modified yaml for unit test
* phpfmt format
* ci changes
* fixing temp sensor
* fix json
* db schema out of date causing bad snmpsim json
* changed temperature discovery to php
* With updated snmpsim data
* index_string restored, YAML for temperature
* style
* Fixed index_string usage in JUNOS files
* Update YamlDiscovery.php
Allow filtering on "index" in skip_values
* Move DBM to YAML as well
* style
* schema update
* Slot XX Yyyyyy
remove unwanted dot
* matching tests
* schema, round 2
* states in YAML
* put temp sensor back in yaml
* enable default poll and discovery modules
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* OcNOS: add health sensors
Add Health Sensors
Update MIBs
Break out current sensors due to missing thresholds on _IIN sensors
* Add test data
* Wrong processors data
* Update Huawei MIBs
* Add YunShan OS definition and discovery
* Add YunShan OS snmpsim and test data
* Update discovery according to newer MIBs
* OS test data update
* OS test data update
* OS test data update
* 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
* remove unused entPhysicalIndex_measured
* tests
* tests
* doc
* entPhysicalIndex_measured must be ports OR null currently
* Should not pass tests
* tests
* back to normal
* 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