* add borgbackup poller
* add borgbackup app page
* add graphs for borg backup
* minor borgbackup graph fixes and cleanups
* don't use custom colors for borg backup
* add metrics
* add borgbackup to the apps page
* add borgbackup snmprec for v1
* add test file for borgbackup v1
* add borg backup docs
* various style fixes
* add a missing key to the test data
* $total_vars -> $to_total
* remove a accidentally added space to applications.md
* test tweaks
* add no_hourly option to generic_stats
* add some more options to generic stats and don't display hourly since it is not really useful for borg backup
* style fix
* Add PSU State sensor support for FortiSwitch
* FortiSwitch 424E-Fiber test data
* FortiSwitch 424E-Fiber test data
* num_oid fix
* Set graph to 0
No clue wat ' graph' parameter does, but 0 seems to be the default
* Fixed test data after num_oid fix
* Fixed test data after num_oid fix
* Test data fix after yet another fix
* Test data fix after yet another fix
* Cant seem to get test data to change state_draw_graph to 0
* ArubaOS-CX PSU & OS & serial support
- PSU state sensor support
- Add OS/software detection
- Improve serial number detection. Aruba doesn't (always) present a serialnumber on index .1. Seems to have been replaced to .101001
# snmpget -v2c -c public 192.168.178.200 -m HOST-RESOURCES-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/arubaos-cx ENTITY-MIB::entPhysicalSerialNum.1 ENTITY-MIB::entPhysicalSerialNum.101001
ENTITY-MIB::entPhysicalSerialNum.1 = STRING:
ENTITY-MIB::entPhysicalSerialNum.101001 = STRING: SG30LMP0WD
# cat /root/aruba/all-oke-mib | grep 101001
ENTITY-MIB::entPhysicalDescr.101001 = STRING: 6300M 24-port SFP+ and 4-port SFP56 Switch
ENTITY-MIB::entPhysicalVendorType.101001 = OID: ARUBAWIRED-NETWORKING-OID::arubaWiredSwitchJL658A
* ArubaOS-CX 6300M test data
* ArubaOS-CX 6300M test data
* num_oid fix
* 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>
* Fixing memory scale for datacom-dmos devices
Fixing memory scale for datacom-dmos devices
* Update datacom-dmos.yaml
Removing the line "index: 1" because the MIB shall provide the existent indexes.
* Uploading updated snmprec files
Uploading updated snmprec files after changing the datacom-dmos.yaml in order to fix the memory scale.
* Uploading updated json files
Uploading updated json files after changing the datacom-dmos.yaml in order to fix the memory scale.
* datacom-dmos updated snmprec files
* snmprec files
* Updated datacom-dmos test files (snmprec and json)
Updated datacom-dmos test files (snmprec and json). I had problems generating these files, so please ignore the commits without files I did earlier.
* Fix Tests
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fix wrong as discovery. if peer has no bgp enabled, the bgp as was miss-discovered
* Update includes/discovery/bgp-peers.inc.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* tests
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added Zhone health and reduced ports to only physical ports.
* Liniting
* Move MIBs out of folder, doesn't work
* Add testing data.
* Added test data, sorry for delay
* Added test data again
* Move MIBs to folder
* Unsupported dirrective
* Add support for Forcepoint NGFW 6.10 and older
* Update forcepoint_forcepoint-ngfw-330.json
* Proc. discovery fix
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* nokia null check for discovery proto
* nokia null check for discovery proto
* fix for Nokia discovery + reindent
* fix for Nokia discovery + reindent
* style
Draytek use a custom OID to define their devices memory usage, defined here: https://www.draytek.com/support/knowledge-base/5517
This commit includes a mempool definition with the new memory OID `1.3.6.1.4.1.7367.3.7` and relevant LibreNMS tests
* 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 regex for hardware and version
* updated test data
* Update hwg-ste2.snmprec
* Create hwg-ste2.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added support of new OS for NTP/PTP systems:
- support of Meinberg microSync OS (mbg-meinbergos)
- support of Safran (Orolia) SecureSync OS (orolia-securesync)
- support of Adva OSA (5401 and 5412) OS (adva_fsp150cm)
* Fix Safran (Orolia) images
* Added Test-unit JSON files
* Changed SVG images
* Changed SVG images
* Changed SVG images
* Add more filter options for the BGP API endpoint. bgp_descr, bgp_state and bgp_adminstate
* typo and lint
* Adress family filter would also be helpful. casting AS1234 Like inputs to plain numbers
* linting again...
Disc is typically used for optical media, not hard disks (so unlikely
to encounter discs in mdraid related circumstances).
mdadm and friends use the disk spelling, the host script also shows
shows this `"disc_count": $(maybe_get "${mdadmSysDev}/md/raid_disks"),`
Fixing the variable names as well would be nice, but that change would
be a lot bigger and probably break things as it would need host script
adjustment synchronising and all that, but I think we can at least
change the cosmetic spelling.
https://en.wikipedia.org/wiki/Spelling_of_disc
* 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>
* Adding basic support for Datacom DmOS devices.
Adding basic support for Datacom DmOS devices. These devices includes OLTs and Switches developed by Datacom (Teracom Telematica Ltda):
https://www.datacom.com.br/en/produtos/dmos
All the product models which uses this OS (DmOS) have the same specific sysObjectID = .1.3.6.1.4.1.3709.1.2.137 So new future devices will also have this OID.
* Rename DMOS-SYSMON-MIB.mib to DMOS-SYSMON-MIB
removing extension ".mib" from the filename
* Rename DMOS-TC-MIB.mib to DMOS-TC-MIB
removing extension ".mib" from the filename
* JSON files
json files related to the snmprec files sent in an earlier commit.
* Update dm4770 test data
* Fix mib_dir
* Update datacom-dmos.yaml
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Fixed BGP Remote peer link and graph in Routing Overview, or just static text when not a device in LibreNMS
* Added extra space
* Reverted back to overlibLink (due to BGP update graphs on hover)
* Added extra space
* Remove graph for remote peer, as it is falsely (showed earlier the Updates Graph for local peer)
* Removed unnecessary/unused code
* Remove graph for remote peer, as it is falsely (showed earlier the Updates Graph for local peer), replaced with just a DeviceLinks
* Change Url::deviceLink to return $text if the device doesn't exist. Default to ''
Import some of the things to improve readability.
* update phpdoc
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for FiberStore "data center" switches
FiberStore has two different model lines of switches, and this adds
support for the "data center" line. This was configured and tested
against the N5860-48SC model.
The MIBs are from FiberStore's website, with the exception of the
FS-FIBER-MIB (the website version is a little behind the software, so
support sent me an updated version and should be getting it published
soon).
This does not currently handle 4x10 or 4x25 QSFP+ light levels, as I
don't currently have any to test against.
* Add test data for fs-switch-dc
This is from a production switch, with data filtered to just the
FiberStore enterprises OID.
* Update fs-switch-dc_fs-switch-dc.json
* correct processors warn field name
* Update fs-switch-dc_fs-switch-dc.json
* Update fs-switch-dc.yaml
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
Added logging output to renamehost() if an RRD Folder already exists for the new hostname.
Before: NOT renamed: Renaming of 10.4.0.146 failed
Now: NOT renamed: Renaming of 10.4.0.146 failed due to existing RRD folder forDEVICE
* 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.
* rework
Sorry for the long waiting time. I've made some tests and found that the value 0 should be ignored anyway because some Cisco switches report a non-existing fan with a speed of 0 which causes several errors when adding e.g. a fanless switch. Therefore I would like to suggest to keep the skip_value for this case.
I've also seen no more fan flapping with the most recent switch firmware so maybe Cisco has fixed something internally.
* Fix Test Data sg350x-24p
* Corrected other ciscoSB-Test data
Corrected other ciscoSB-Test data
* Removed ciscosb generic test data
This snmprec behaves different for my test system and the git checks. In addition the model is missing.
* Reverted cbs250 testfile
For some reason the generated test file contains errors. Reverting
* Weired fix
* Fixed weired update
* Recreated snmp data for cbs250
Recreated snmp data for cbs250
* updatet test data
Reworked Test data with most recend version
* Removed unused SNMPsim-Data
the ciscosb_x snmpsim Data are not used. Most device types are covered with the other test data. SRW-Switch line is currently not fully working. I have such an old device I'll add test data in the future.
* Recaptured cbs250 Test Data
* Renamed cbs250 test data
I have the impression that the online test somehow does not reload the snmprec data correctly. Therefore I rename it to make sure it handles it as a new device
* Removed VLANs
* Removed Farenheit to Celsius conversion
It seems that with the most recent version cisco reports the temperature in C. https://community.librenms.org/t/cisco-cbs-350-reads-wrong-temperature/22038
* Fixed wrong copied data
* Altered warning limit to CLI-values
* Added snmprec data back
Added snmprec data back
* Add FortiGate Environment stats
Adding Temperature, Fanspeed and Voltage sensors
* Fix test data
* New test data
* Update fortigate test data
* 500d ospf ifIndex
* 60f3g4g bgpPeerIface null
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for Fujifilm printer
* Add support for Fujifilm printer
* fix Fujifilmprinter.yaml
* Add Fujifilm printer test unit
* remove snmprec supply descr contains utf8 character
* fix discovery yaml
* Freenas zpool improvement
Don't try to multiply two strings (cast units to int)
No need to double fetch database entries to check if it exists.
Only poll zpoolUsed to speed up polling
* Block zpool usage on new devices, they dropped support.
TRUENAS-MIB included for reference
* Fix polling, update test data
* API: get poller group
* missed string in doc
* return all poller groups if name/id aren't specified
* add missing doc link
* style fixes
* more style
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Fix health temperature degree display
It will be converted to html later. (otherwise it was double converted)
* Remove all ° it will only cause troubles
* Add support for Nokia 1830 PSS Optical gear
Tested against 1830 PSS-8 Chassis, in single and multi-chassis configurations
Supports Optical Power, temperature, current, power, and a variety of card states, alarms, and trail status.
Of note: With multi-chassis nodes, reading values from the non-master can be a "slow" process, slow in that the default timeout Libre ships with can cause the SNMP client to begin issuing retries. This can result in the chassis daemon rate limiting and/or blocking the client. The solution here is to raise the SNMP timeout within each device's configuration; unfortunately those values are not configurable on a per-OS basis (at least not at this time).
* Removing Unused / Duplicate MIBs
* IP::fromHexString handle ascii
Some bad MIBs convert the hex to ascii on display.
Attempt to decode that if the situation is detected.
fixes#15501
* add ascii tests
* Ports min polled period of 1
Prevent divide by 0
Use Mac utility
* fix bad snmprec for airos-af-ltu
* Update a large amount of invalid mac addresses
either the script is capturing them wrong or users are mangling them
* More updated test data
* Update test data with bad input
* Fix ones using encoded <private> and attempt to fix capture
* Update awplus data
* restore missing data
* update other DNOS
* Fix ones using encoded <private> and attempt to fix capture
* Fix ones using encoded <private> and attempt to fix capture
* fix typo
* Update some data
* update data
* update ruijie
* modifications needed for update of VALERE-DC-POWER-MIB with new file ELTEK-BC2000-DC-POWER-MIB
* add test results for BC2000 post update
* updated test file data
* re-upload of updated files
* reverted valere.json to defaults and recreated with proper varient .json
* replace vpwrShelfIndex with vpwrBayIndex
* updated test data
* Update test data
* try again valere_bc2000.json
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Ports module fix nulls not updating
* Fix broken test data
I'd like to see how it came out broken in the first place, but I don't have access
* Update json data
* Fix fortivoice snmprec
* Fix scs-ks
* Fix bad siteboss550 data
* Remove some lightly used or unused dbFacile functions
['NULL'] legacy behavior seems unsupported, replace with actual nulls
* Fix refactor mishap
* another
* update baseline
* these were very wrong... what happened?
* Agent: Packages fixes
Don't try to save invalid packages, probably due to script failure on device.
Add pacman support
* Apply fixes from StyleCI
* Add version
* cast to number
* Update includes/polling/unix-agent/packages.inc.php
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Fix an agent bug if a process ran more than 999 days
Increase it to 274 years before that happens ;)
Fix a few other small bugs
* Update schema check file
* Refactor MAC utils to a new utility class
* Apply fixes from StyleCI
* Inline functions
Add tests
Handle bridgeid format
* Apply fixes from StyleCI
* Dedicated code path for stp bridge parsing, and improve STP output a bit
* Correctly parse dot1dBaseBridgeAddress and don't store int in bool field
* trim any unexpected character from bridge addresses, add extra test data.
* better comment
* barsBridge can handle dot1dBaseBridgeAddress correctly now
* parseBridge, check for properly formatted mac first.
* update test data, empty data = empty mac
* Fix new usage after rebase
* import
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Vmware vminfo
Remove legacy file and migrate to OS discovery
* tighter
* ios_stp-vlans working correctly now
* Make vmwVmGuestOS nullable
* Discover os info too
* VM Info module
* Apply fixes from StyleCI
* Fix log severity
* Fix log severity (more)
* VM Info module
* Poll with ESXi too because it is lightweight
add test data
* poller data now too
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* 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>
* Added grouping on the Voltage displays
Added groupings to better show which voltage and current variables that belongs together.
* Update enexus.json
* Update enexus_eltek-smartpack2-syst.json
* Update enexus_enexus.json
* Update enexus_smartpacks.json
* Update enexus_smartpacks2.json
* Update enexus_sp2touch.json
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add useful IF-MIB entries as 'unordered oids'
to Raisecom ROS and ROAP definitions because
they don't have increasing OIDs in snmpwalk
* Bump composer/composer from 2.5.8 to 2.6.4 (#15364)
Bumps [composer/composer](https://github.com/composer/composer) from 2.5.8 to 2.6.4.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.5.8...2.6.4)
---
updated-dependencies:
- dependency-name: composer/composer
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update aviat-wtm.json (#15368)
* sort services by type and name (#15367)
* Added support for Cambium cnMatrix switches (#15351)
* Added support for Cambium cnMatrix switches
* Fixed styling issues
* Fixed styling issues
* Fixed duplicate, incorrectly labeled LLDP-EXT-DOT3-MIB and LLDP-EXT-DOT1-MIB
* Corrected MIB with the same name but with different OIDs configured: LLDP-EXT-MED/-CAMBIUM/-MIB
* Removed my added duplicate MIBs
* Removed unused MIBs
* Rearrange AD auth settings (#15363)
so it makes more sense, add missing settings
* Specify radius attributes for auth roles (#15374)
* Specify radius attributes for auth roles
* Clarify that any role can be defined
* Fixes check_dns against localhost when a search-domain is configured (#15373)
* Added extra ASN-range comments, added Priv eBGP on host details, changed color to light-blue instead of red (#15372)
* Moxa EDS improve discovery (#15375)
Consolidate walks so less need to be performed.
This should help a lot since each device model has its own MIB.
* Remove unused functions (#15371)
* Remove unused functions
inline other legacy functions
* Apply fixes from StyleCI
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Availability module fixes (#15369)
* Refactor poller to allow modules to run even if the device is down
Include core in config (but not webui) to avoid silly shenanigans
Inject datastore into polling
* Needed to split datastore interface
* Cleanup some data_udpate() references
* Apply fixes from StyleCI
* Fix legacy poller :D
* Output to the correct stream
* Fix lint issues
* Apply fixes from StyleCI
* Fix discovery not including core and submodule handling
* Use whereRaw
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Lentz <monkeybrains7@gmail.com>
Co-authored-by: SourceDoctor <sourcehhdoctor@googlemail.com>
Co-authored-by: Noah Roufus <noaheroufus@gmail.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: barryodonovan <barry.odonovan@lightnet.ie>
Co-authored-by: Tim de Boer <tim@tim427.net>
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Refactor poller to allow modules to run even if the device is down
Include core in config (but not webui) to avoid silly shenanigans
Inject datastore into polling
* Needed to split datastore interface
* Cleanup some data_udpate() references
* Apply fixes from StyleCI
* Fix legacy poller :D
* Output to the correct stream
* Fix lint issues
* Apply fixes from StyleCI
* Fix discovery not including core and submodule handling
* Use whereRaw
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Added support for Cambium cnMatrix switches
* Fixed styling issues
* Fixed styling issues
* Fixed duplicate, incorrectly labeled LLDP-EXT-DOT3-MIB and LLDP-EXT-DOT1-MIB
* Corrected MIB with the same name but with different OIDs configured: LLDP-EXT-MED/-CAMBIUM/-MIB
* Removed my added duplicate MIBs
* Removed unused MIBs
* Updated Install-LibreNMS.md
Default PHP version of Debian 11 (following this documentation) is 8.2 currently, instead of 8.1
* Fixed Markdown/Parse mode for Telegram
* Changed peer_iden to peer_addr in routing/bgp.inc.php
* Update app_ntp.inc.php
Fixes ISSUE 15344
- Corrects start point in table when showing NTP APP
- Corrects blank page when showing ALL NTP entries
* Update app_ntp.inc.php
Use row count for page start not a hard coded 10
* Adding oid upsAdvOutputActivePower
Adding oid upsAdvOutputActivePower under the power section as this value is in watts.
* Create apc_smx750.json
Adding test JSON data for APC changes
* Create apc_smx750.snmprec
Adding snmpsim test data for APC changes
* Update apc_smx750.json
* Update apc_smx750.snmprec
* Update apc_smx750.json
* RouterOS: use mtxrGaugeTable instead of mtxrHealthGroup
Should now exactly match System > Health
Historical data will be lost
* fix yaml
* Fix numeric oid
* Update test data, add table to crs317
* Add groups and cleanup yaml
* revert state_name as it is used in the rrd file name
* Except the gauge table state sensor
* Group Health -> System
* update json
* update json
* add the softdeletes migrations for applications
* add working migration file
* add deleted_at to db schema.yaml for applications
* update includes/html/forms/application-update.inc.php to work with softdeletes
* update includes/html/pages/device/edit/apps.inc.php for softdelete
* update includes/discovery/applications.inc.php to work with softdelete
* minor updates to application-update.inc.php for disabling
* style cleanup
* set discovered when running discovery
* update application tests to include deleted_at
* add deleted_at to a missed test
* a few more tweaks for opensips
* add a missing deleted_at for linux_suricata_extract-v1
* fix fillable for Application model
* massive cleanup of the application update widget thingy
* improve the code for discovery and using Laravel
* add a missing line to app/Models/Application
* add a missing include to app/Models/Application.php
* record includes for Application model
* remove apps from the applications table when a device is deleted
* revert to using upcert and where for discovery to fix CI
* make discovered fillable and set it when running discovery... convert back to firstOrNew
* clean up application discovery a bit and use observer
* style fix
* spelling fix... disablaed -> disabled
* rever removal to just use where
* cleanup app removal on delete
* add restored to ModuleModelObserver
* delete -> forcedelete fix
* apply the suggested changes
* use murrants other suggestion
* style fix
* Added support for Nutanix VM count, disk state, CPU usage and RAM usage
* Added num_oid values required for pull request
* Fixes for Nutanix AOS graphs
* Install bouncer
* Seeder and level migration
* Display and edit roles
* remove unused deluser page
* Update Radius and SSO to assign roles
* update AlertUtil direct level check to use roles instead
* rewrite ircbot auth handling
* Remove legacy auth getUserlist and getUserlevel methods, add getRoles
Set roles in LegacyUserProvider
* Small cleanups
* centralize role sync code
show roles on user preferences page
* VueSelect component WIP and a little docs
* WIP
* SelectControllers id and text fields.
* LibrenmsSelect component extracted from SettingSelectDynamic
* Handle multiple selections
* allow type coercion
* full width settings
* final style adjustments
* Final compiled assets update
* Style fixes
* Fix SSO tests
* Lint cleanups
* small style fix
* don't use json yet
* Update baseline for usptream package issues
* Change schema, not 100% sure it is correct
not sure why xor doesn't work
* Create F5-COMMON-SMI-MIB
* Create F5-PLATFORM-STATS-MIB
* Create f5os.yaml
* Create f5os.yaml
* Create f5os_f5os.snmprec
* Create f5os_f5os.json
* Remove remaining test line
* Add mandatory num_oid
* Add num_oid for fanspeed
* Force use of index for fanspeed
* Force index for temperature + add snmp_flags to make it work
* Update test data
* Update test data
* Fix port speed setting
Due to a bug all manually configured port speeds were lost and will need to be reconfigured.
This allows them to work in a way that will prevent that issue in the future by storing the speed with the override.
Includes notification.
* Fix date
* Add URL
* Spelling fix
* Add BIRD2 application support and docs
* Remove whitespacing
* Update includes/polling/applications/bird2.inc.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Correct the variable names to reflect their actual content and also use the remote address to display on the webUI as opposed to the unrelated peerid aka router-id
* Style fixes
* Style fixes
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* 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.
Previously, if the device was ping only, it wasn't marked as discovered.
Now we always run discovery, but basically all it does is update last_discovered.
* APC last input failure & display outlet name
* SNMP data & test files
* fix total energy divisor
* fix ap8853
* fix ap8959eu3
* test fixes
* Adjust sensor descr new format #{outletid} : {outletlabel}
* Add support for OpenManage Modular devices.
* Update dell-ome-m.yaml
Remove commented out dmmGlobalSystemStatus num_oid
Change Max/Min Power to Peak/Min Usage
* json test file for open manage modular support
* Update dell-ome-m_dell-ome-m.json
* Update dell-ome-m_dell-ome-m.snmprec
* Update dell-ome-m_dell-ome-m.json
* Update dell-ome-m_dell-ome-m.snmprec
* Update dell-ome-m_dell-ome-m.json
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true
Improve scheduler validation handle non-standard install directories and systems without systemd
Add index to table to improve speed and improve mac->vendor lookup speed
Scheduled weekly with random wait to prevent stampeding herd issues for upstream
drop oui update from daily
* MAC Vendor OUI use scheduler
Add command to update `lnms maintenance:fetch-ouis`
Show vendor column in tables if mac_oui.enabled is set to true
* Lint fixes and better prefix detection
* update schema file
* add munging to generic stats graph include
* add graph_uptime_days config def
* make it optionally changable now
* style fix
* remove the graph_uptime_days option
* 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
* rework into a json app and support the old style
* working now
* add health checking
* add some datapoints to make writing alerts easy
* add a few missing item for has checks
* rework the app page
* use the right var for id9
* print the self test log if we have it
* add a graph for the max temp
* display the max temp graph
* display the health pass in the disk list if we have the data
* fix legacy handling and set app as ok
* replace id190 and id194 with the more useful maxtemp graph on the apps page
* don't print the additional info area for legacy extends
* add id232
* add id252 graph support
* properly display id232 now
* do not display SSD graphs for non-SSD disks
* for legacy extends, make sure we don't have a bad line
* add missing label for Product value
* fix metrics
* rework the metrics stuff a bit more
* typo fix
* more smart metrics cleanup
* add exit info to metrics
* style cleanup and logic checking for when disks are all now fine
* fix checking for no more health errors
* update the docs for SMART for v1 and remove slightly pointless notes about useSN
* update the docs
* initial test stuff
* add missing tests for the legacy code
* save if it it is legacy or not
* style cleanup
* update the smart legacy test
* style cleanup
* more test tweaking
* some more style cleanup
* more test fixes
* correct the disk ID for the legacy test da0 -> Z304VCFY
* more tests update
* more test cleanup
* begin cleanup of the v1 tests
* more v1 test updates
* more tests for v1
* more test cleanup
* fix exit_nonzero and add unhealthy metric
* add smart alerts
* add the metric unhealthy to the stat test
* use app data for the smart-common.inc.php
* Add vendor search and related functions
* Add OUIDB cache for vendor lookup
* Add vendor drop down
* appy style CI changes
* Apply style CI and lint changes
* more styleCI changes
* update type hinting
* Edit mac_oui cache lock name and function
* Update MAC OUI message during daily
* Use DB for vendor lookup
* New vendor_oui table migration
* New MAC OUI to database function
* Update readbleOUI to use DB rather than cache
* Make StyleCI changes
* styleCI tweak
* Remove lock release to allow refresh timer
* change migration name to match table
* add schema dump
* update schema
* styleCI tweak
* Squash Commit
Fortigate Mib updates and ipsc ipv6 tunnels stat
test data to go allong with it
* add optional -Ih flag
* lint fix
* revert changeed on test data 500d
* fix test data on 60f3g4g
* add poller for mojo cape submit
* mojo_cape_submit poller now works
* add app page for mojo_cape_submit
* add basic generic stat graphs for mojo cape submit
* general size stats graph for mojo_cape_submit
* make sure we update slugs that did not see anything submitted for them
* sort the slugs by sub count
* add app protos graph and sub top 12 graphs
* add mojo cape submit docs
* add tests for mojo_cape_submit
* add mojo_cape_submit to the apps page
* add string helper for mojo_cape_submit
* poke lots of stuff with php-cs-fixer
* remove a unneeded line
* add a missing metric and app data to test
* add logsize poller
* add set size info
* add more stats
* add min size
* more logsize files
* add logsize
* fix creating log file links
* add two new graphs
* add some graphs
* add no_minus_d
* add no minus d to app page
* add count of log files
* save logsizes in app data
* rename title log sizes
* only show top 12
* add mean median and mode
* cleanup naming a bit
* the values for the files hash is now a int instead of another hash
* add new stats and correct median name
* now properly handle unseen
* fix logsize bits
* add combined
* update metrics and add some tests
* add logsize graphs to apps page
* add the logsize bit
* add logszie docs
* add some example alert rules
* style cleanup
* more style cleanup
* fix a few things for metrics and update the test
* fix a variable name in the test and update the data
* Add Calix E7 (EXA) PON port sensors
* oops
* remove space
* skip sensors on down ports
* fix state generic values
* 10 oid was breaking... change to 8 max
* Add initial divisors... need to double check
* change power to dbm as it is more useful
* Add bias and limits
* Test data
* change skip value
* Add PK-SOFTWARE-APPLIANCE-V2 MIB
* Add support for PrimeKey Software Appliance
* Move file to correct path
* Make the OS detection more specific
* Thanks vscode
* Sync filename with osname
* Not supported
* Track SQL database size as volume
* Two fixes
* adding human readable version of /api/v0/fdb/{mac}/detail
* adding last seen field in human readable format
* fixing styling issue
* fixing another styling issue
* removing stale variable
* adding a limit to number of results returned in order to limit memory issues
* adding the documentation for fdb_detail api
* Wording fix
* wording fix again. smh
---------
Co-authored-by: Justin Lentz <monkeybrains7@gmail.com>
* fix for hrStorageIndex agility
* test for array
* Handle not found data
* Handle description changed correctly
* remove debug
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* add suricata_extract
* convert from dervive to gauge and use delta
* add suricata_extract to includes/html/pages/apps.inc.php
* graph cleanup
* add sub_size
* add sub_size graph
* add docs for suricata extract
* add tests for suricata_extract
* add rules for suricata extract
* minor test tweaks
* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches
* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches
* Convert BER as well
Allow divisor and multiplier to be set from oid
* use fillValues
* fix
* sort snmprec, fix divide by 0, add more context
* add privoxy
* various style fixes
* cleanup option bar
* save metrics for privoxy now
* add instructions for privoxy
* add privoxy test data
* regen the test data
* add a few missing depends to the instructions
* add apps.inc.php entry for privoxy
* note the required log settings for privoxy
* style fix
* APC Emu dry contacts
* EMU test files
* Added energy and power sensors
* Revert "Added energy and power sensors"
This reverts commit b27b4a3ac2.
* Total energy sensor
* code stuff done for Sneck
* whoops, correct the abs value post adding it post rrd update
* return a array for getting the sneck data and nicely print the raw return value
* add test stuff and freeze time at 1650911765 for tests
* move the freezeTime
* add use Illuminate\Support\Carbon;
* more test changes
* rework freezeTime a bit more
* more test stuff
* another test
* rework it a bit again
* correct variable spelling for $time_diff
* remove freezeTime as we are using a old version of Laravel
* finalize graphs
* misc
* finalize sneck page
* mve the sneck tests as it needs a newer version of laravel than we are using
* add documents for sneck
* finalize the poller
* formatting cleanup
* correct comment type
* correct the spelling of description
* more documentation
* save the check returns as metrics
* add some more examples
* fix some of the sneck alerts and add a few more examples
* turn off time to polling by default
* suggest using ntp if enabled
* since we are zeroing time_to_polling by default, this now works
* backout some suggested changes for once we change to larval 9
* remove del_sneck_data as it is no longer used
* add more docs on the metrics
* php-cs-fixer to fix a few things
* update and fix sneck tests
* remote a metric from the test
* another minor tweak to the test
* one more minor change
* ahh! derp! think I found it finally... hopefully hanging this for the last time...
* now use app data
* now logs check changes
* add a missing )
* add a missing )
* some style fixes
* update the sneck page use to the app data stuff
* update the poller to use the new app data
* misc
* update sneck to log check status changes
* correct alert log messages
* correct a comment
* fix metrics
* derp, another fix
* test fix
* re-order to avoid warning
* poller update
* update sneck graphs
* update sneck graphs
* remove a unneeded line
* test update for discovery
* minor tweaks to the test and fix update the polling a bit
* style fix
* fix return data printing
* fix the test data to include app data
* attempted test fix
* add config def to apps.sneck.polling_time_diff
* cleanup docs a bit
* minor config tweaks
* minor doc cleanup
* add linux_softnet_stat poller
* add graphs and app page for linux_softnet_stat
* fix polling
* rename a few items, clean up the app specific page, and add to the apps page
* convert from derive to counter
* save the budget and budget_usecs to app data
* display current value of the budgets
* now track budget values
* add tests data
* rename it
* add docs for Linux Softnet Stat
* re-order and add budget for app page graph order
* style fix
* correct data location
* fix metrics for the json
* add alerts for ZFS
* add initial l2 bits to the poller for zfs
* more minor tweaks to the ZFS poller
* more zfs bits
* add new ZFS graphs
* begin adding L2 stuff
* add linux_zfs-v3 bits
* update zfs app page
* style fix
* update the data for the zfs legacy test
* test update for zfs v1
* fix some zfs tests
* more zfs v3 test cleanup
* another zfs v3 test data fix
* more zfs v3 test data cleanup
* more test tweaks
* add sensor support for cefcModuleOperStatus
* add tests for cefcModuleOperStatus
* revert sensors/state/cisco.inc.php
* add sensor support for cefcModuleOperStatus using yaml
* update tests for cefcModuleOperStatus
* try adding tests again for cefcModuleOperStatus
* include CISCO-ENTITY-FRU-CONTROL mib for cefcModuleOperStatus sensor state discovery
* Add no_proxy and other proxy related settings
Set user agent on all http client requests
Unify http client usage
* Style fixes
* Remove useless use statements
* Correct variable, good job phpstan
* Add tests
fix https_proxy bug
add tcp:// to the config settings format
* style and lint fixes
* Remove guzzle from the direct dependencies
* Use built in Laravel testing functionality
* update baseline
* Add RoomAlert 12E Switch Sensors, fix Humidity Sensor
* Fix per murrant
* Revert port data generated on older install
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for Trellix NSP devices
- Add discovery for mlos NSP devices
- Monitor port statistics from non standard MIBs
- Add Trellix MIBs
- Add test data
* Fix StyleCI findings
* Rename MIB files to match MIB names, remove unused MIBs
* regenerate mlos-nsp_ns9500.json to account for changes from PR#14963
* Fixes#14957 missing IPv6 BGP peers
* Limit to NX-OS and IOS-XR
* Check for actual VRF since count(getVrfContexts) always > 0
* argh, fix last minute nervous finger superfluous space
* removed redundant count()
* Added support for user timezones and user browser timezone byt default
* Formatting fixes
* Use the timezone for alert log display
also added validation for the timezone because it's being used in SQL.
* Formatting fixes
* Added return type
* Formatting"
* Update the latency graphs to use the user timezone
* Simplify the web routes config
* Update phpstan to ignore type error
* Fixed up the phpstan config
* Reverse phpstan change
* Re-apply phpstan override
* Remove the option to unset the session timezone
* Formatting fix
* Update outge and event logs to use session timezone
* Fix route for the timezone control
* Made the timezone more dynamic
* Fix a logic error that was stopping the timezone from being set automatically on login
* Prevent getPref from being called twice
* again prevent getPref double call
* getPref double call
* Fixed typo made during merge
* Fixed merge error in phpstan-baseline.neon
* Change spaces to tabs in phpstan-baseline.neon
* Update error count
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for Firebrick memory monitoring.
* Add mempool testing for Firebrick.
* We have to specify the OID by numeric, because otherwise it assumes it's some kind of indexed table.
* Specify by OID.
* Fix test result data for the FB mempools.x
* Firebrick reports in KB.
* Fix precision in the tests.