* Move Config loading to a service provider
That way other service providers can depend on it
Move various random listener registrations into the EventServiceProvider
Various startup cleanup
* Config::persist Set live variable before persisting incase db update fail
* Disable strict mode for legacy code (init.php)
* Disable debug after os test data is gathered
* remove Eloquent::boot it is never used
* remove Eloquent::version
* lint fixes
* style fixes
* there is no c_echo here
* Allow unordered OIDs (global and per-os)
Fix global no_bulk setting, was ignored before
(to fix global needed to rework Config::getCombined() a bit to allow a global prefix to be specified)
Removed invalid use of getCombined and updated tests
* fix whitespace
* update os schema
* FS OAP OEO and EDFA mibs
* definitions and discovery yaml
* current dbm state temperature and voltage updates
* update on poller and discovery modules
* test data
* removing unneeded pollers and discovery modules as requested
* update to os test data
test data now reflects fs-nmu details instead of module details as module may not be present at previous oid or module may not be present at all in the device
* OS update and Test Date Updates
* channels numbers
* removal of default true poller and discovery modules
* reintroduced previous OEO module data
* StyleCI fixes
* Update fs-nmu.inc.php
* Update fs-nmu.inc.php
* Update fs-nmu.inc.php
* Update fs-nmu.inc.php
* Update fs-nmu.inc.php
Co-authored-by: Neil Lathwood <gh+n@laf.io>
* Revamp validate web page
to load page then validate, instead of validate then load page
* style fixes
* lint cleanups
* fixes
* translations and a couple fixes
* style fixes
* move result serialization into the class.
* Add ISIS discovery and polling for iosxe devices
* remove ModuleModelObserver
* add php stan exclusions as they are already present for the base module
* change port_id to cached lookup
* Create model object instead of using arrays and set properties directly
* remove unneeded space...
* remove null from non nullable field
* revert to extending from ciscowlc rather than os
* remove OS module
* remove phpstan exclusions and fix errors
* add spacing...
* add spacing....
* add spacing
* again...
* Add tests
* Update Iosxe.php
* Update IsisAdjacency.php
* Create 2022_04_08_085504_isis_adjacencies_table_add_index.php
* Update db_schema.yaml
* Update iosxe_asr920.json
* Update Iosxe.php
* Update Iosxe.php
* Update junos_mx5t_isis.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for PrimeKey Hardware Appliance
https://doc.primekey.com/ejbca-appliancehttps://doc.primekey.com/signserver-appliancehttps://doc.primekey.com/ejbca-appliance/operations/webconf-configurator-of-hardware-appliance/monitoring
* Correct off-by-one error for Galera states
* Add load multiplier
* Don't poll transaction ID, it's too messy
* Tabs -> spaces
* Don't modify system load. (Is this a %age or not?)
* CUP moves Load -> Count
* CPU moves Load -> Count
* Now I have MiBs. Attempts to use them are to date unsuccessful
* Removed numeric oids entirely
I'm not sure how easy it will be to conver this to YAML.
* Formatting
* More formatting
* Numeric it is
* Fix States
* Numeric oids
* Shorten Descriptions
* Add DB threshold
* Percent -> Yaml
* Temperature -> Yaml. Relaxed num_oid validation
* Fanspeed -> Yaml
* Volgate -> Yaml
* Count -> Yaml
* State -> Yaml
* Tweak snmp_flags
* minimize icon
* Check if first_word function is required
* Incorporate feedback
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add DBm and State Sensors
Added extra MIB files
Added Dbm levels on ports
Added Stacking State Sensors
* Added include for zynos.inc.php
File patch - includes/discovery/ports/zynos.inc.php
* Create ZYXEL-STACKING-MIB
Official Zyxel MIB
* Create ZYXEL-TRANSCEIVER-MIB
Official Zyxel MIB
* Added test file zynos_xgs4600.json
* Create zynos snmprec test file
* CENSORED zynos_xgs4600.json
* Created new polling file for Zynos ports
Converts zynos SWP port style to be 1/1 style
* Created new discovery for Zynos ports
Changes zynos SWP ports to be 1/1 style during discovery
* Fixing ci complaints in discovery/ports/zynos.inc.php
* Fixing ci complaints in polling/ports/os/zynos.inc.php
* fixing more ci complaints in discovery
* Updated Zynos.snmprec
* Updated zynos.json
* Updated zynos.json
* Removed ifDescr pre-cache
* Removed pre-cache from zynos.yaml
* Reverted zynos.snmprec
* Restored zynos.json
* Updated zynos polling to use zeropad
* Updated zynos discovery to use zeropad
* Updated zynos.yaml
Updated zynos.yaml to include ifname: true to change port names and added '/^ZyXEL/' to sysDescr_regex
* Update zynos.inc.php
* Update zynos.inc.php
* Update zynos_xgs4600.json
* Update zynos_xgs4600.snmprec
* Re-Generated Zynos.json
* Fixed ifOperStatus in Zynos.json
* Delete zynos.inc.php
* Update ports.inc.php
* Added new test data
* Updated zyxel test data and discovery
* Update ports.inc.php
* Update zynos.snmprec
* Updated zynos.json
* Update Zynos.json
* Fix StyleCI issues
* Update zynos.json
* Update zynos.json
* Update zynos.json
* Updated zynos mgs3712.json
* Update zynos_mgs3712.json
* Added back old SFP discovery
-SFP Temperature
-SFP Voltage
* Migrate addhost.php to lnms device:add
Have snmp-scan.py call lnms device:add (make exit codes line up so this works)
Fix issue with ping only devices trying to detect os via snmp
Reorder options in device:add help and improve formatting
Update docs to remove references to addhost.php
Fix a bit of code that was in functional code
* fixes
* fix snmp version message
* Add Cisco Err Disable Mib
* Add new trap handler class
* Add ErrDisabled event handler
* Add ErrDisalbed event test
* remove unused line
* no ifindex message change
* Update unknown ifIndex message
* Add bad IfIndex test
* update description text
* style fixes
* change param to True for toString
* Add return type to test function
* style fix
* remove toString() and explode()
* remove unused line
* Fixeed Hardware and Versiondetection for US-8 and USW-Switches with Version 5
It seems that the same model and same firmware version respond with different SNMP-records, depending on Hardware revision. This should be more general
* removed "linux" from version string in some cases
Changed regex for better version isolation and updated test data
* Update edgeswitch.yaml
Corrected the edgeswitch Test-Version detection. It seems that there are 4 cases :(:
USW GigaBit Ethernet Switch, firmware 5.76.7.13442
US-8, 5.76.7.13442, Linux 3.6.5
USW-Flex 5.76.7.13442
EdgeSwitch 24-Port 250W, 1.0.1.4720839, Linux 3.6.5-f4a26ed5
* Removed false change. Changed 8XP test data
Removed false change. Changed 8XP test data
* ' -> "
' -> "
* New device:add code
pre-requisite for updating other code paths
includes option to set display name
separate validation code from device creation
* remove duplicate community and v3 creds
* style fixes
* some lint fixes
* fix phpstan
* Exception cleanup
improved messages and translations
* port association mode to enum
well, pseudo enum
* defaults and cleanups
* fixed/improved validation messages
* fix tests
* fix stupid ide refactor mistake
* lint fixes
* OspfTxRetransmit class
* Message tidyup
* Initial test class
* add ospftxretransmit class
* add empty line
* chnage int to string in traptext
* new block to catch non lsupdates trap
* Add second test
* lint fail changes
* extra space removed
* Secure MAC Violation event
* Add Cisco Port Sec Mib
* Add CiscoMacViolation class
* removed $ifIndex and $port reference
* change ifDescr for ifName
* New test
* style fix
* Update vertiv-pdu.yaml
VERTIV-V5-MIB states UNITS "decivolts (rms)" for pduPhaseVoltage
* Update vertiv-pdu_mn03edr1.json
Updated test data
Co-authored-by: Neil Lathwood <gh+n@laf.io>
* Add EntityVoltage Sensors
* Add BoardPower Sensors
* Add Fanspeed Percent sensor
* Add Voltage_Status and Temperature_Status Normal|Minor|Major|Critical indicators, and internal Voltage and Temperature sensors
* set Minor alarm violations to warning status
* remove inconsistently applied empty lines between sections, and trailing newline that caused errors
* fetch thresholds for temperature.sensors and optical.RxPower from SNMP
* Added snmp testfiles for ne8000-m8 variant of VRP platform
* group sensors by card-identifier
* Regenerate testfiles for 5720-32x-ei
* Regenerate testfiles for the whole VRP family
* Optical Bias is reported as miliamps-mA, and not microamps-uA
* Implement divisor detection, VRP or NE8 prepended on sensor for debug-testing
* remove VRP or NE8 prependeds on sensors(put there for debug/testing only)
* use parent OIDs for walking and naming
* ignore per-slot power if unsupported
* regenerated snmp json testfiles
* sanitize bgp-peers value
* restore vrp.json test
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* push apc trap handlers
* added unit test
* removed CR and fixed test
* switch cr for lf
* fixing ci complaints
* fixing another ci error
* fixed unit test
* annotating test
* Add initial support for Lenovo ThinkStation server
* Initial Support for Lenovo ThinkStation Server - detection rules
* Lenovo ThinkStation MMIB Files
* Added test data for Lenovo ThinkStation
Model SR250
* trying unit test fix
trying to correct unit test failures
* Revert "trying unit test fix"
This reverts commit 7f44689e8a.
* Create lenovoXClarityIMPI_lenovoxcc.snmprec
Added snmprec
* Update lenovoXClarityIMPI.yaml
Removed Null-Value (over) in yaml
* Update lenovoXClarityIMPI.yaml
Fixed typo
* Update lenovoXClarityIMPI.yaml
Fixed another typo in os yaml
* Update lenovoXClarityIMPI.yaml
Added {{ $index }} and removed skip_values
* Update lenovoXClarityIMPI.yaml
Added index in yaml
* Update lenovoXClarityIMPI.yaml
* Update lenovoXClarityIMPI_lenovoxcc.json
* Update lenovoXClarityIMPI_lenovoxcc.json
* Updated detection rule
Removed N/A skip, removed unecessary state_name.
Removed $index in oid, because otherwise the detection fails for some reason
Excluded num_oid because otherwise the poller fails to detect the values.
* Code improvements and test data
I've implemented what I've learned from my Fujitsu pull:
- added test data
- corrected MIB file names and folder
* Code improvements
Removed an empty array and two empty lines.
* Code improvements
* Delete LENOVO-SMI-MIB DEFINITIONS
This file is named wrong and we already have `LENOVO-SMI-MIB` so looks to be duplicated
* Changed OS name
Changed OS name
* Fixed test data for os name change
* Update LENOVO-PRODUCTS-MIB
Reupdated Lenovo-Products-MIB to 2017er Version
Co-authored-by: Neil Lathwood <gh+n@laf.io>
* STP module rewrite WIP
* Finish rewrite
* Ignore disabled and log root/topology changes
* Remove interfaces for now
* fix style
* Lint fixes
* Document ResolvesPortIds and hide map functions
* whitespace fixes
* Revert to stpInstances in case someone writes mstp support
* missed one
* phpstan fixes
* Handle table and oids separately
* forgot to register observer
* Test data and correct non-table handling in SnmpResponse->table()
* update test
* test data
* revert aos7 silly things
* minimal polling
* Update test data
* order ports_ntp and rename new field to port_index
* forgot the db_schema
* revert ciena-sds port things
* MSTP support, maybe
* Adding test data
* Filter bad lines instead of discarding the entire snmp response
and capture fixes and test data
* fresh data
* add os data
* update data, ignore unfound ports, obviously bad device implementation.
* fixes
* Ignore context files in os detection test
* Remove empty table data
* add ciena-sds vlan
* designatedCost column is too small
* Update stp webui
* Refactor code to interfaces, to allow vendor mibs
* update schema
* fix issues added by abstraction
* STP fixes
* Default to no context for vlan 1
* never store vlan 1
* Update test data
* remove eltex brokenness
* fix style
* fix stan
* Fix Rewrite MAC to Hex padding with floats
* fix sqlite migration
* Add ubiquiti Airfiber 60
* New AF60 data and MIB
* Stylci fix and small additions
* Update test data
* Stylefix
* Remove the weird ubiquity oids containing encoded mac addresses
* Updated test data
* Remove more complex sensors for now to be added after the conflict airos airos-af60 is solved
* Fix hardware and OS
* To be verified is this is the most practical / clean way of doing it
* Advanced wireless and MCS state sensor
* Fix link capacity multiplier and active link
* Test data update fix lint
* Maybe better
* Fix Temperature Sensor for AirOS 8
* Update airos_airos8.json
* Update airos.json
* Add new skip_values feature to deal with Ubiquiti nonsense.
Tweak test data to test the change
fix not_regex
Co-authored-by: Tony Murray <murraytony@gmail.com>
* added new sensors to mes23xx
* ci
* copy/paste error
* ci
* cleanup + testdata
* yaml
* yamlnew
* added [no_bulk] for PoE discovery
* fully qualified OID name
* forcewalk param
* [snmp][no_bulk]
* var names, test, schema
* Key off OIDs, not mibs
luminato is POC and needs to be reverted before merge.
* fix up os schema
* docs
* remove luminato arbitrary changes
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Initial Support for Fujitsu RX300 with iRMC4
Initial Support for Fujitsu RX300 with iRMC4 (might work for other servers, too)
* Fixed Typo in power consumption
* Changed MIB-Name and added sysDescr for more granular detection
* Update fujitsuiRMC_rx300.snmprec
changed serial to a generic one
* Update fujitsuiRMC_rx300.json
Updated to use correct serial number
* Update fujitsuiRMC_rx300.snmprec
* Update fujitsuiRMC_rx300.json
* Tried to create a discovery yaml with valid num_oid and valid test data
* Update fujitsuiRMC.yaml
removed remaining index parameter (forgot them from previous testing)
* Update fujitsuiRMC_rx300.json
Updated test data to reflect recent changes
Co-authored-by: Neil Lathwood <gh+n@laf.io>
* Initial commit of DCP-M
* Match on system name DCP
* Fix matching regex
* Add pre-cache and dbm discovery
* Show dbm graph
* Adding snmpsim data
* Fix styleCI issue
* Detect dcp-m mib
* DCP-M Progress
* Fix CI issue
* Removing pre-cache and dbm files
* Do not include empty tables in test data
* empty data is simpler to check now
* Update test data
* revert comment options that block update all test data
* clean existing data
* fixes
* another fix
* remov extra sensors???
* why is that using that ip...
* missed an empty table
* missed one
* restore ftos
* revert another ftos
* revert ird
* restore timos
* restore timos_7705
* oops
* double oops
* timos mpls
* timos_hc
* another timos_hc fix
* Smartax supports IF-MIB, skip custom discovery and fix polling GPON ports in and out traffic
* This file seems to break GPON port polling on SmartAXes firmware versions R017 and R018, deleting the file fixes GPON polling
* Added necessary test files so that polling tests do not fail
* q-bridge-mib, discover missing VLANs v2
* copy/paste typo fix
* Use SnmpQuery
* Switch from Vlan_x to VLAN x
* Cleanup
Revert accidental change
Incorrect table depth (even though the outcome is the same)
And test data that was explicitly Vlan_
* fix test data
* update routeros_vlans
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Fix missing mib_dir in definition
* Added state sensors
* snmprec data
* json data
* delete unused snmprec
* License and Author
* remove unused json data
* Fix style issues
* Fix more style issues coz im blind
* Fix more style issues coz im blind last
* Refactored
* Why do we loop?
* Fix style issues
* Update polling
* Refactor to use methods
* Fix a pair of style issues
* Updated test files
* Convert to yaml
* Wrong description on Mode
* Added another state + fixed some indexes
* Dunno what happened
* Fix for phpstan level 6
* Fix forstyleci
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Initial discovery for APC EPDU1132M
* Rename current APC ePDU model to specific
* Add more conditions to test
* Ignore APC ePDU
* Add version field
* Update version in test file
* Add JSON test data
Also remove hostname (was literal question mark), was causing issues
* Veeam fix and extend part 1
* Veeam SNMP traps
* StyleCI
* StyleCI
* Fix typo
* Lint
* Fix tests
* Fix tests :fingerscrossed:
* Think i get it now
* This is it?
* gotta be it
* Final
* Again
* Configurable device display name
You can just set the display name in device settings.
It also accepts simple template format with the variables: hostname, sysName, sysName_fallback, ip
Default controlled by device_display_default, (set from old force_hostname_to_sysname and force_ip_to_sysname settings
* remove second argument to format_hostname()
* Style fixes
* Update schema
* update phpstan baseline
* Improved settings strings (and add for translation)
* core WIP
* try to finish up
* trim space too
and a couple of cleanups
* update test data
* put escapes back
* another net-snmp difference
* correct copy paste error
* WIP
* Use new code YAY
* a tiny bit more
* Kind of working
* Handle manual modules correctly
* convert core to modern module
* Only save metrics if modules is not overridden
* correct module exists check
* database error handling
* debug handling
* restore bad changes
* Introduce Actions
RunAlertRulesAction
UpdateDeviceGroupsAction
* tweaks to output
* Fix some issues in outside code
* Style fixes
* fixes to module status checks
* typehints!
* Use logger only and DI
* OS module not named correctly
* Work on quiet output a bit more
* generically don't change output when disabling debug if the driver is already stack
* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction
* restore legacy os module shim
* use the new poller code for tests
* PollingDevice event
* Fix some issues and enable/disable error reporting around legacy modules
* typehints
* fully update baseline
* Use Process for version commands so we don't leak debug output.
* don't detect rrdtool version in ci every time
* style fixes
* Warning fixes
* more fixes
* re-update baseline
* remove diff noise
* fix up alerts
* Catch exceptions in device ip lookup
* Revert accidental snmp.inc.php poller target change
(should have been ?: not ??)
* core WIP
* try to finish up
* trim space too
and a couple of cleanups
* update test data
* put escapes back
* another net-snmp difference
* correct copy paste error
* WIP
* Use new code YAY
* a tiny bit more
* Kind of working
* Handle manual modules correctly
* convert core to modern module
* Only save metrics if modules is not overridden
* correct module exists check
* database error handling
* debug handling
* restore bad changes
* Introduce Actions
RunAlertRulesAction
UpdateDeviceGroupsAction
* tweaks to output
* Fix some issues in outside code
* Style fixes
* fixes to module status checks
* typehints!
* Use logger only and DI
* OS module not named correctly
* Work on quiet output a bit more
* generically don't change output when disabling debug if the driver is already stack
* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction
* restore legacy os module shim
* use the new poller code for tests
* PollingDevice event
* Fix some issues and enable/disable error reporting around legacy modules
* typehints
* fully update baseline
* Use Process for version commands so we don't leak debug output.
* don't detect rrdtool version in ci every time
* style fixes
* Warning fixes
* more fixes
* re-update baseline
* remove diff noise
* fix up alerts
* Fix warnings up to Arbos
* fixes a-c
* a-r
* a-vrp
* There and back again
* Update test data, couple fixes
* PHPSStan fixes
* style fixes, and fix Asyncos, whoops
* flip serial back.......
* less bogus data
* Poweralert sysName during polling too
* make sure things are calculated in the correct order
* fix style and bad nullables
* update test data
* A comple more conversions
* cambium ptp, misc, and hardware_mib
* remaining except vmware-esxi
* Fixes
* Update baseline
* fixes and fix up baseline
* adjust SnmpQueryMock to upstream options change
* data corrections
* restore slashes
* correctly handle all options input in SnmpQueryMock
* undo ftos changes
* restore vccodec sysDescr
* Init work on rutos-3xx
* Add RUT360 support in rutos-rutx
* Testdata
* Removed old files
* Removed unused pre-caching
* Undo changes to mib
* Modified rutx11 test data
* Changed state_name
* Revert "Changed state_name"
This reverts commit fb61f8df67.
* Changed state_name
* Changed state_name
* Changed state_name and hopefully fixes tests
* Changed rutx11 test data
* Changed state_name back
* Revert
* Fixed state_name to avoid collision
* Updated rut360 test data
* Modified rutx11 test data
* Fixed typo
* Updated test data for rutx11
* Fix net-snmp unformatted strings
When net-snmp returns an unformatted string (with quotes around it), it also has backslashes to escape certain characters. Remove those.
* Clean up sysDescr and sysName when setting to Device model.
* Lint fixes
* Hmm, additional formatting spots
* Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header
* Raspberry Pi: Add new test data
* Raspberry Pi: Make styleci happy
* Raspberry Pi: Fix some more style issues
* Raspberry Pi: Use d_echo for array debug
* Raspberry Pi: Prevent processing if the extension is not present
* Raspberry Pi: Make styleci happy
* Raspberry Pi: Update test data
* Raspberry Pi: Remove debugging
* API transport fix parsing
parse templates after parsing user options, not before
* API transport tests
* fix style and lint
* remove accidental item
* fix more type issues
* Run phpstan locally with `lnms dev:check lint`
Separate result cache for deprecated functions so we don't break the cache every time.
* Skip phpstan flag
Skip all lints on ci except php lint (so we can check on multiple php versions)
* forgot default value
* fix up test cases
* Update LibreNMS/Util/CiHelper.php
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Better handling of some alerting errors
* Better error output
* Consolidate simple template parsing
* Fixes reported by phpstan (one was a bug, yay!)
* add back forgotten trim
* don't remove the template if there is no match
* Match previous behavior, which was inconsistent.
* use anonymous class for tests instead
* Oopsie, Stringable is PHP8+
* fix style
* Add Processor discovery for Dell PowerConnect 28xx
* Add Temperature discovery and cleanup code
* Add test data for PowerConnect 2824
* Add Serial Number
* Don't add VLANs as Ports
* Revert "Don't add VLANs as Ports"
* Remove invalid mempool from tests
* Introduce OS flag to support devices that deliver OIDs out of order
* Add MIB for Bintec Be.IP Plus
* Add YAML definitions for Bintec Be.IP Plus
* Add Bintec be.IP plus test files
* Rename bintec mib files
mib-standards.mib was deleted, because it included definitions that also
existed in separate files
* Add test data
* Remove standard mib files from bintec dir
* Add regex to parse Bintec Be.IP Plus OS version
* Update test data for Bintec Be.IP Plus
* Calculate Bintec Be.IP Plus CPU load from inverse of idle time
* Improve Bintec Be.IP Plus discovery and tests
* Use MIB instead of numerical OIDs where possible
* Update tests to comply with updated discovery
* Remove unused MIBs
* Remove json props that let tests fail
* Update Settings.md
* Remove `snmp_out_of_order_oids` definition from bintec-beip-plus
* Add `-Cc` snmp param for prots module
* Add `-Cc` snmp param for arp-table module
* remove snmp_out_of_order_oids
* Remove snmp_out_of_order_oids
* Update snmp.inc.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Improve Poweralert based devices support
- Add graphs / data for Input Voltage
- Add graphs / data for Total/Output Current
* fix version formatting
* Create poweralert_3.snmprec
* Create poweralert_3.json
* Update poweralert.yaml
* Update poweralert_3.snmprec
* Update poweralert_3.json
* Missed one
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Update apc.yaml
Added sysObjectID: .1.3.6.1.4.1.318.1 to apc.yaml definition rules to allow the discovery of UPS' that are connected to Power Chute Business edition hosts.
(Tony Murray you were right & YAML hates me!).
* Create apc_powerchute.snmprec
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add Sophos-XG OID for monitoring HA and license state
* add generic property
* Update MIB to newest version
* Add Test-data for sfosCentralOrchestrationLicRegStatus
* Add IPSec monitoring
* regenerate test-data
* Correctly implement Wireless Sensors for Teltonila RUTX series routers allowing for hardware with multiple modems
Fix sensor warning limits based on hardware specs.
* Re-capture test data for new sensors
* Tidy style
* no message
* no message
* Update RutosRutx.php
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Kick other session when changing password
Invalidate other sessions when a user password gets changed
* Don't logout admin users when they change passwords.
Cleanup phpstan exceptions
* only restore user if needed
* comment odd behavior
* $current_user typehint
* Added ambient temp sensor and XUPS alarm OIDs
* I dumbed this down a bit, as I do not fully trust that I actually understand the xups mib.
Now we raise an alert if XUPS-MIB::xupsAlarms.0 is anywhere in the range 1-4
* Changed the index:-value for consistency
* added snmprec and json for my hardware/firwmare version
* reran save-test-data against all variants and renamed my latest snmprec properly
* Update eaton-mgeups_9pxle.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* don't hardcode index for Mikrotik LTE wireless statistics
* sync test data now that Mikrotik LTE index is no longer hardcoded
* sync tests data now that Mikrotik LTE index is no longer hardcoded
* fix whitespace
* sync test data now that Mikrotik LTE index is no longer hardcoded
* add test data for Mikrotik LtAP mini (aka RB912R-2nD)
* Re-write Routeros wireless code
It now works like most other devices
* fix style
* update baseline
* Remove station 60G rate
* use base unit of m, not km
* move interface stats name inside loop to avoid a walk when it does exist
* notification
* fix typo
Co-authored-by: Tony Murray <murraytony@gmail.com>
* remove ^M from DOS style file
* Support for West Mountain 4005i DC PDU
* update SVG to include width attributes
* try adding reserveAspectRatio="xMinYMin meet"
* remove width attribute
* removed disabled modules per @Jellyfrog comment
* rename per PR
* add missing test JSON data
* don't attempt to graph or detect uptime, as neither OID is supported
* remove file extension
* remove specific modules for discovery & polling, as this device isnt buggy enough for justify
* Update westmountainradio.yaml
* Update westmountainradio.yaml
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Core module WIP
* update OS::make()
* core WIP
* try to finish up
* switch all core do os Model
* Mock WIP
* Working tests
* cleanup
* phpstan fixes
* style fixes
* fix agent
* trim space too
and a couple of cleanups
* corrected ios test data
* missed space
* update test data
* put escapes back
* another net-snmp difference
* Fix class description
* revert snmp.inc.php change, that can be a different PR
* revert snmp.inc.php change, that can be a different PR
* Add new OID for humidity sensor for opengear devices.
* Typo fix
* Fixed typo: wrong OID
* Added opengear humidity test data JSON
* Removed ogEmdHumidityTable from cache.
* Added SNMP sim data for testing
* Update opengear_humidity.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* endrun_updated_support
* Added requested changes
* Converted to yaml
* Fixed Tempus Features
* fixed test data (again)
* Update endrun_sonoma.json
* fix gitignore
* fix last gitignore
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Updated mib
* Add support for IOS/IOSXE PoE stats
* Added testdata
* Better titles for Power-tab in Health
* Added low_limit for iosxe
* Update ios_2960x.json
* Added high_limit for ios
* update ios_2960x
* update ios_2900l
* pre-cache is not needed
will only slow polling down in some cases
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Use high precision OIDs for APC UPS sensors
* Force test re-run
* Remove ifHighSpeed
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Updated mib
* Add support for IOS/IOSXE PoE stats
* Added testdata
* Better titles for Power-tab in Health
* Added low_limit for iosxe
* Basic support for Enviromux devices
* Fixes
* Revert "Added low_limit for iosxe"
This reverts commit 645e3b423a.
* Removed commits from wrong branch
* Removed limits due to not working, need php
* Added testdata
* Update nti.svg
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Dusk: improve speed
Instead of refreshing the database between tests, just cleanup all side effects.
Update UserFactory to upstream so hash never has to be generated for default
* Actually, migrate, but not fresh
* Added support for Teltonika RUTX series routers
* Added snmprec file for testing
* Update and rename rutos-RUTX.yaml to rutos-rutx.yaml
Fix OS name
* Rename rutos-RUTX.yaml to rutos-rutx.yaml
* Rename rutos-RUTX_rutx11.snmprec to rutos-rutx_rutx11.snmprec
* Create rutos-rutx_rutx11.json
* Fix: Device discovery OID removed tab
* Remove whitespace
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: hjcday <hugh.day@lsv.com.au>
* Rename NetSnmp to SnmpQuery
Always resolve a new instance. It was not expected to be a singleton, set options persisted.
This means numeric() works properly now
* fix snmpfetch call and style
* Ability to set device from device array
* Initial commit
* Removed unused function
* fixed style
* fixed style
* fixed test data
* Initial commit
* end of the day commit
* finish + test data
* Delete ericsson-tn_ericsson-tn.snmprec
* Update manifest and add service worker
cleanup icons a bit
* Push notifications WIP
* navigate working
* cleanup
* acknowledge wired up
* Set VAPID keys on composer install
* Component to control notification permissions.
* Allow all user option to validate
* Enable on browser load if transport exists.
* Check for transport before showing user permissions
translations
* Documentation
* style fixes
* access via the attribute model
* fix alerting test
* update schema
* cleanup subscription on disable
* non-configurable db and table for webpush subscriptions (respect system connection)
* revert AlertTransport change
hopefully phpstan can figure it out
* phpstan fixes
* Support custom details display
* Match transport names to brand's preferred display
* less duplicate id errors
* Tests are done in Laravel code now so
remove legacy function usage... could be better, but ok
* Style fixes
* Style fixes 2
* Fix alert test
* Doc updates requires HTTPS and GMP
* unregister subscription when permission is set to denied
* cleanup after user deletion
* delete the right thing
* fix whitespace
* update install docs to include php-gmp
* suggest ext-gmp
* update javascript
* Update functions.php
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Fping WIP
* Update availability, move ping rrd update in the same place as db update.
* move classes around
* make device:ping command work
* use new code, remove legacy code
* save metrics boolean prevents all saves
style fixes
* update device array
* style fixes
* Update unit test
* fix whitespace
* Fix Fping stub
* fix backwards if
* fix phpstan complaining
* Fix return type
* add fillable to DeviceOutage model.
* device_outage migration to add id...
* missed line in db_schema.yaml
* 1 billion more comments on the brain damage up/down code
* tests for status and status_reason fields
* fix style again :D
* Duplicate legacy isSNMPable() functionality
but with only one snmp call ever 😎
* Remove unused variable
* fix migrations for sqlite
* Improvements to SSO Authorization and logout handling
Changes:
* Adds support for a default access level in the SSO authorization
plugin when group mapping is enabled.
* Restore functionality of the auth_logout_handler configuration option,
allowing the user to be redirected to a configured URL to complete
logout from an external IdP.
* Documentation and test coverage updates
* Set sso.static_level to 0 in AuthSSOTest:testGroupParsing()
* Simplify implementation to use default values in Config::get()
* SNMP WIP
* cleanup, more types
* Include my snmp:fetch command
* Fix Facade name conflict
* Command WIP
remove mib
* Ignore exit code
cleanups
* Doc blocks and style fixes
* forgot to use parseOid
* Hopefully final fixes
* missed on (:
* small changes
deviates from existing code, hopefully doesn't re-add too many corner cases.
* add some simple tests, will make it easier to add more in the future when we find corner cases.
* test numeric
* API refinements, try to avoid setting textual net-snmp options directly
* change numeric to a toggle makes for nicer usage
* make ci happy
* Some errors happen only in stderr, pass that to SnmpResponse for parsing.
Add error message access
* More consistent naming
* Teldat: Wireless and GSM Basic Monitoring
* Teldat: Wireless IfIndex fix
* Teldat: Wireless and GSM tests
* minor comment correction
* Teldat: Wireless and GSM add json test data
* linter.warn: bugfix access_point_id = null, generally used for controllers, TELDATs are never controllers
* Teldat: Wireless and GSM tests replay results.
* linter.warn: fix#17 $entPhysicalMeasured expects float|int|null set to: null
* Teldat: Wireless and GSM some updates, bugfixes and lint updates as requested.
* linter : some more fixes...
* Teldat: Wireless and GSM, apply recommendations.
* minor styleCI fix.
* linter: fix
* linter: fix.
* Delete WirelessLteCellPolling.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Infer character encoding for ifAlias and sysLocation
Tries to convert character encoding for non-UTF-8 encoded strings.
This will only work for snmp strings that are type-hinted, not ones forced to ASCII with -Oa or similar
Only works for your default charset or Windows-1251 or LATIN1.
You can set your character encoding in .env with CHARSET
Please save us all and just use UTF-8
* style fixes
* less Yoda
* ensure return type
* fall back to passed string
* don't convert strings with any unprintable characters (such as line return)
* Update LibreNMS/Util/StringHelpers.php
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Fix CP850
* fix space
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Add power consumed
* Revert "Add power consumed"
This reverts commit 424554ac04bd340de2fd962cb6808045024ef783.
* Start with tempsensorts aus some states
* Inventory data
* Convert plugins to Blade
* Revert "Convert plugins to Blade"
This reverts commit 8d1d3ff5b1.
* fix style
* Add FANs and Powersupplies
* fix style
* add test data
* add a short description for the doc
* refresh Testfile
* Add hardware, OS version and serial to arubaos-cx discovery
* Add support for ArubaOS-CX versions 10.04 and 10.06
* Fix bug where first arubaos-cx regex would be ignored
* Add test data for 10.07, data for 10.06 coming soon
* Add data for 10.06
* Update 10.04 test data
* Update arubaos-cx.json
* Update arubaos-cx_10.06.json
* Update arubaos-cx_10.07.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Added SAF Integra-X support.
* Fixed discovery confusion between Integra-B and Integra-X.
* Removed a missed unusued use statement.
* Fixed CPU sensor issues related to MIB display hints throwing off math.
* Fix to Integra-X snmprec and test data.
* Add mibs/zte/ZXR10-MIB
ZTE ZXR10 vendor-specific mibs
* Update zxr10.yaml
add mib_dir
change top-line view like in cisco
* Create zxr10.yaml
define mempool and processor discovery for zxr10
* Update zxr10.yaml
fix discovery.php "error in mempools module. Unable to translate oid ZXR10-MIB::zxr10SystemMemSize"
* Update zxr10.yaml
ZXR10-MIB::zxr10SystemMemUsed is in percent not in bytes.
* zxr10.yaml :: fixed mempools data
fixed mempools data
* TESTS :: Add snmprec
* TEST :: Add data/json
* Change group from zxr10 to zte
* Remove mib_dir
With group: zte it works without mib_dir: zte
* Rename zxr10_zxr10.json to zte_zxr10.json
* Rename zxr10_zxr10.snmprec to zte_zxr10.snmprec
* Removed older Horizon definitions
* Added Horizon Compact definitions via YAML.
* Added Horizon Duo definitions via YAML.
* Added Horizon Compact Plus definitions via YAML.
* Fixed issue with OID name casing for Horizon Duo EnetPort2CRC sensor
* Moved SNR/RSL/Tx Power to wireless sensor definitions.
* Reordered use statements to make StyleCI happy.
* Validate APP_KEY
key:rotate command to rotate keys, only rotates validation data for now
* fixes, swapped encrypters, not saving new value to db, check that key exists first
* add confirmation
* Option to generate new key, re-encrypt data and then save it to .env
A lot more text to try to prevent disaster. Print out both keys 1-2 times.
Fix bug in EnvHelper (when key is commented but not empty)
* fix style
* oops, good phpstan
* Rewrite ISIS Adjacency discovery/polling
hopefully much faster now, do most work in discovery and just check up/down in poller.
* unused variable
* Implement option for OS override
* fix an incorrect typehint
* test data
* work around stupid migration name
* update schema
* better handling for the on-demand discovery
* more detailed phpdoc
* fix when adjacency is not found
* don't clear out data when adjacency goes away
* Adjust nullable fields
* fixes
* fix class name
* correct migration
* fix bug causing adjacency data to always be blank
* port popups for port links
* isisISAdjState does not need to be nullable
* remove extra space
* default off
* If port is missing return $text
* update schema
* Cleanup old components
* correc copy paste error
* Update configuration docs to use lnms config:set
don't show slashes input
still need to test them all
* fixup broken commands
os array type a little broken
* bash
* fix lnms config:set os append
* enable os append test
(and small correction)
* fix whitespace
* Show ifSpeed on Graph
Drop ifHighSpeed, we really don't want to store that value.
* safer truth check
* Allow global setting and per-graph variable
* match surrounding case
* Style fixes
* Remove old function usage
* update schema
* remove some old usages
* cleanup more ifHighSpeed references
* update test data to remove ifHighSpeed
* fix down migration
* Add button on graph page
Change default
tweak wording
* Update ict-pdu.inc.php
Lines 7&8 fixes an issue seen when polling current on ICT2000DB-12IRC .
* Create ict-pdu_ict200db-12irc.snmprec
* More generic fix
* Create ict-pdu_ict200db-12irc.json
* Update ict-pdu.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* lnms config:set works for os settings
validate against os schema (gives us path and value validation)
fix unset in config:set
json formatted output in config:get to match input parsing
* inline errors
* Check that OS exists
* Fix lock file
* Set param type
* correct method name, it no longer returns a boolean
* rename --json to --dump
tests and fixes
* fix whitespace
* missed one whitespace
* typehints
* add connection typehint
* try again
* Added test data
* Added support for some Cell states
* Added more Cell states and added missing testdata
* Obs deleted the test data file
* Added support for monitoring Cellular signal
* Forgot test data again....
* Added more Cell states and Wirless data. Removed services because I cound get it to work correctly
* API find a switchport with the mac from device
* fix style
* convert SQL to Eloquent
* convert SQL to Eloquent
* git mistake
* Global use App\Models\Port
* git mistake partII
* Refractor Eloquent - Not finish but easier to help for others
* Better Eloquent Query without filter option
* Validation
* fix style
* Add filter option and DOC
* convert to the better macToHex method
* add a maxToHex unit test
* fix style
* fix style
* fix syle - seems my dev:check is running again :-)
* Fix phpStan
* phpStan #2
* When in a stack, the index for each port is based on the unit number in the stack. The first unit
in the stack uses index '1.', the second uses index '2.', the third '3.' and so on. This change
allows for stack indexes greater than '1'
* Create ciscosb_cbs350-4x.snmprec
* Create ciscosb_cbs350-4x.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Update dell-compellent.yaml
Dell changed the text for sysDescr after the 2017 firmware-release so that the string "COMPELLEN" which was looked after here before, did not appear anymore. The Compellent cuts off the snmp-answer after 255 characters.
I replaced the previous detection to a new snmpget-detection using the oid (DELL-STORAGE-SC-MIB::productIDDisplayName.0) that shouldnt be altered in the future.
* Add files via upload
* Rename dell-compellent_scv3020.snmprec.TXT to dell-compellent_scv3020.snmprec
* Keep backward compatibility
* Create dell-compellent_scv3020.json
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Update with FortiAP
Add number of connected wireless client and number of connected FortiAP
* Add fortiAP support
* Update Fortigate.php
* tests
* style
* Update fortigate_500d.json
Test cannot run properly because of dependency between interfaces and OSPF ports.
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Inital support for Eltex-MES switches
* Eltex-MES code cleanup & added mib files
* Eltex-MES mib files renamed
* Eltex-MES mib files renamed(v2)
* Eltex-MES added json test data
* Eltex-MES added bad_iftype in YAML
* Eltex-MES test data after adding bad_iftype in YAML
* Eltex-MES fixed YAML & new test data
* Undo module disabling
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Update sonicwall.yaml
Add support for Sonicwall OS 7.
* Add files via upload
* Create sonicwall_sonicos7.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Initial Siemens Scalance X switch support
* updated mempool definitions to pass unit tests
* sysDescr parsing changes and MIB rename
* further sysDescr parsing cleanup
* test data updated after sysDescr parsing changes
* discovery yaml formatting
* processor and mempool discovery yaml redone in PHP to overcome snmptable issues
* StyleCI fixes to PHP
* StyleCI fixes to PHP
* StyleCI fixes to PHP
* incorrect file location after StyleCI fixes
* removed redundant processor discovery code
* fixed general alarm codes
* fixed Cooling envelope zone. Warnings were shown instead of normal ok messages
* added current error code with description
updated mib with current error code
* Set correct OID for inverter alarms
* added up to date snmprec data
sorted state groups for rittal chiller
* added warning limits according to documentation and standards
* spaces
* Create pcoweb-rittal-lcp-3311_lcp-dx-3311.json
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fixing irrelevant value for Juniper RPM percentage packetloss
Old MIB values fron generic DISMAN ping pingResultsProbeResponses and pingResultsSentProbes are
querying current probe values so if a probe is still pending, irrelevant value are taken. It results
in high percentage packetloss that not match reality.
Using the Juniper MIB values jnxPingLastTestResultProbeResponses and jnxPingLastTestResultSentProbes
seem to fix this.
At the same time we take here jnxPingLastTestResultAvgRttUs instead of jnxPingResultsRttUs which
is more accurate.
* Fixing typo in the name of Cisco MIB for Cisco SLA's polling
* Delete old comment about SNMP values : getting the all values once instead of one by one
* Adding test files for Juniper RPM last modification
* Revert "Adding test files for Juniper RPM last modification"
This reverts commit 0209b18b9d.
Reverting to keep snmprec junos_vmx already generated file
* Regenerating JSON test file and keeping snmprec file
* Added support for the Rittal LCP DX Chiller connected to a Carel pCOWeb card. A custom MIB is also provided.
* removed .mib extension from CAREL-RITTAL-LCP-3311-MIB
* Added snmp test data
* Add TP-Link's DDM and PoE MIBs via their 20210310 archive.
* Add support for DDM sensors on TP-Link Jetstream switches.
* Add support for PoE on TP-Link switches.
* Fix linting issues.
* Fix group discrepancy in test data.
* Fix multiple discrepancies in DDM test data.
* Improve `num_oid` and `index` fields for Jetstream PoE sensors.
* Test data for PoE sensor `index` change.
* Convert Jetstream sensors to YAML and refine index names.
* Added minimal support for Eaton EMP gen2 (Env. Monitorin Probe).
Probe is readable from both xups and eaton sensor mib. Many more details available in sensor mib.
* Added states for state sensors.
Added snmprec for an Eaton 9px with firmware 2.0.5 and a connected EMPg2 device.
* added an snmprec for a device with a connected emp g2, and renamed the existing snmprec so we can refer to it as a variant
* readded xupsEnvAmbientTemp sensor
* Add support for HPE Managed Power Distribution Unit - pdu2 and pdu3
* Adding test data for hpe-mapdu from HPE P/N H8B49A (pdu2) and HPE P/N
P9S18A (pdu3)
* Remove module overrides and leave it up to user. Fix snmp_max_oid
* Fixed detection of PDU3 devices, updated testing data
* Make sysDesc definitions more specific - adding only HPE part number and
whole sysdescription of tested device.
* Change sysDescr to be less specific
* Force Test Re-run
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added New-OS: Alcatel Stellar Wireless
* Addressing StyleCI remarks
* StyleCI is still unhappy with me
* Addressing scrutinizer identified minor bug with additional type check
* Add snmprec test data
* Add json test data
* Add the TPLINK-SYSINFO MIB, via TP-Link's 20210310 archive.
* Simplify discovery of TP-Link JetStream switches: the OID `.1.3.6.1.4.1.11863.5.` applies to them all.
* Support TP-Link JetStream switch hardware, serial, and version data using their sysInfo MIB.
* Use correct filename for the TP-Link sysInfo MIB.
* Add SNMP and test data for TP-Link JetStream switch models SG2210P and T2600G-28TS.
* Definition of a new SLA module to migrate from old cisco-sla and support other devices : Juniper RPM and Huawei
* Change wrong description name of module SLA
* Re implementing Juniper RPM support in a new module Slas (Cisco SLA to be added)
* Added Graphs for Juniper RPM types
* Tried to make discover and poller generic : to handle Cisco SLA and Juniper RPM and others
* Reimplementing Cisco SLA in the new Sla module and adding condition to manage both SLA and RPM
* Definition of a new SLA module to migrate from old cisco-sla and support other devices : Juniper RPM and Huawei
* Change wrong description name of module SLA
* Re implementing Juniper RPM support in a new module Slas (Cisco SLA to be added)
* Added Graphs for Juniper RPM types
* Tried to make discover and poller generic : to handle Cisco SLA and Juniper RPM and others
* Reimplementing Cisco SLA in the new Sla module and adding condition to manage both SLA and RPM
* Fix some error due to Elequent object replacing SQL request
* Fixing indentation
* Fixed continuous integrations errors
* Fixed continuous integrations errors part 2
* Fixed continuous integrations errors part 3 : missing last new lines
* Fixed PHP Static Analysis checks
* Fixed continuous integrations errors part 4
* Fixed PHP Static Analysis checks part 2
* Trying to convert existing cisco-sla to new slas one
* Trying to add slas to fix test failure (I am pretty sure this is not enough but I don't know how to do it)
* Switching old cisco-sla module declaration to new slas module in concerned OS files
* Fixing wrong sla module name instead of slas in concerned OS files
* Fixing wrong module name sla changed to slas (as is it in power-supplies reimplementation)
* Fixing some warnings shown in the Inspection CI but skipping some that are already present
* Adding tests files from virtual Juniper VMX and adding slas modules in /tests/module_tables
* Adding missing SNMP data files
* Module Slas modifications to use inheritance
* Fix CI errors
* Fix CI errors part 2
* Fix CI errors part 3
* Fixing no value on RTT graphs
* Fixing only last SLA to be polled : problem with loops
* Fix CI errors part 4
* Optimizing a little the Juniper RPM poller part
I wanted to query only the required values but it is complicated to query a specific OID
as Cisco-SLA does because the owner and tag are hardcoded in ASCII decimal with strange values.
So I use the function snmp_walk which gets the whole OID values in text.
And I index the Juniper MIB (because we want multiple values). But I changed the DISMAN MIB
requests to get only what we want.
* Fix CI errors
* Fix CI errors part 2
* Fix CI errors part 3
* Fixing PHP Static Analysis error 2/4
* Fix CI errors
* Implementing Interfaces to fix some errors that occurs with inheritance
* Adding missing Interfaces files
* Moving generic Sla discovery code into Junos Class
* Fix CI errors
* Fix CI errors part 2
* Fixing missing definition of SlaDiscovery in Cisco shared Class
* Fixing missing import for Illuminate\Database\Eloquent\Collection
* Fix CI errors part 3
* Fix PHP Static Analysis error
* change type strings to use translations instead of config
* IOSXR test data
* remove test data garbage
* simplify discovery
* Fix style
* Updating test files to adapt mock sla_nr ID starting from 0 and not 1 : CI tests should pass
* clean up polling
add rtt field in the db
cisco icmpjitter seems to have confused a lot of values
* rtt on discovery
* use crc32 for consistent sla_nr values
* revert snmprec
* Fix style
* correct schema
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add Epson Projector as new OS
* Remove poller definitions
* Remove poller definitions
* convert os to epson-projector
* fix delete doc/Alerting/Transports.md
* Add VPN IPSEC discovery and fix haState
Adding VPN IPSEC Discovery and fix haState at creating https://github.com/librenms/librenms/pull/12821
haState does not work from yaml file because needs to Convert string value to integer LibreNMS value
* Update gaia.yaml
* Update gaia.yaml
* Update gaia.yaml
* Gaia VPN IPSEC discovery
* Gaia VPN IPSEC discovery
* mib for WaterLeakDetectore
Add support for WaterLeak detection
rename OS
rename OS
rename OS
remove unnecessary module restrictions
space
* disable only some modules
* return "Outlet " + index in event outlet description is empty
* update tests to account for blank outlet description
* add hardware, serial, and version detection for Raritan PDUs
* fix nokia(TiMOS) memory to use kibibyte instead of bytes to fix issues with routers that has more memory then byte counter handle
* fix test cases
* fix mempools test case
* fix timos.snmprec
sync timos.snmprec and timos.json
* fixed timos.json
* fix timos_7705
* Trying to add basic support for Vertiv PDU power graphs
* Trying to add basic support for Vertiv PDUs and power graphs
* Update geist-watchdog.yaml
* Update geist-watchdog.yaml
* Update vertiv-pdu.yaml
* Add files via upload
* Add files via upload
* Add files via upload
* Update geist-watchdog.yaml
* Add files via upload
* Delete vertiv-pdu.yaml
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* newdevice: Added support for PowerWalker VFI
* discard powerwalker 500r from being discovered as cyberpower
* add version_regex and correct num_oid: upsInputCurrent
* update version_regex, add hardvare_regex
* start
* added test data + mibs
* fxied minor
* Update CIENA-6500-AMPS-MIB
* Update CIENA-6500-ENUMS-MIB
* removed unused mibs
* added test data
* Delete ciena-saos_saos.snmprec
* Rename ciena_saos.json to ciena-saos.json
* Rename ciena_saos.snmprec to ciena-saos.snmprec
* Rename ciena-saos.snmprec to ciena-saos_ 6500.snmprec
* Delete ciena-saos.json
* Delete ciena-saos_ 6500.snmprec
* new attempt for the test data
* test data again
* Delete ciena-saos_saos.json
* Delete ciena-saos_saos.snmprec
* Update ciena-saos.yaml
Cleanup
* added some quickwins
* new test data
* Update ciena-saos.yaml
* added test data
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Trying to add basic support for Vertiv PDU power graphs
* Support for fortiswitch in gen_rancid (#12894)
* Trying to add basic support for Vertiv PDUs and power graphs
* Update geist-watchdog.yaml
* Update geist-watchdog.yaml
* Update vertiv-pdu.yaml
Co-authored-by: Cliff Albert <cliff@oisec.net>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
1) Update to latest MIB (v2.2 => v2.9)
2) Correct scaling factors (matching updated info in MIB)
3) Add Load - confirmed to work
4) Update header, show Load, not Current (due to data availability)
Use HOST-RESOURCES-MIB, apparently Ubiquiti added partial HR-MIB support sometime.
Works better than the old load based value.
Also port os discovery to the new style
* Create Checkpoint Gaia Sensor Count
Gaia Security Gateway Count:
- Number of concurrent connections
- Peak number of concurrent connections
- Limit of Connections table
- Connections rate
- Number of connections handled by SecureXL
- Number of IKE current SAs
- Number of IPsec current Inbound ESP SAs
- Number of IPsec current Outbound ESP SAs
Gaia Management Server Count
- Log Receive Rate
- Log Receive Rate Peak
* Checkpoint Gaia Sensor Count
* Checkpoint Gaia Sensor Count
* Checkpoint Gaia Sensor Count
* Checkpoint Gaia Sensor Count
* Create Checkpoint Gaia Sensor State
Checkpoint Gaia Gateway Cluster HA State
Checkpoint Gaia Management Connected Gateways
* Update gaia.yaml
* Add SecureXL current status and Management Connected Gateways
* Add SecureXL current status, Management Connected Gateways and Changed haState color to gray
* Add SecureXL current status, Management Connected Gateways and review haState
* Add SecureXL current status, Management Connected Gateways and review haState
* Fix for Gaia Storage duplicated
We are getting duplicate storage.
Since Checkpoint Gaia is a Linux-based operating system, the file “./includes/discovery/storage/ucd-dsktable.inc.php” has already discovered the storage, so I think the file “./includes/discovery/storage/gaia.inc.php” is not necessary.
* Delete gaia.inc.php
* Add files via upload
* Add files via upload
* Fix for Gaia Storage duplicated
* added support for GE MDS devices
* added test files
* Removed .MIB from all mib files
* Update includes/definitions/discovery/gemds.yaml
* Fixed test data
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Remove $debug global
and $vdebug global
makes these variables more accessible and protects from collisions.
* the on boot set sends application as the first parameter, just handle that
* Relocate other debug related functions
* Log debug to stdout
* Wrong output
* remove stupid constants
* Fix lint and style issues
* Added support for GAIA logserver/firewall lograte, raid state and type, logserver state and testdata, firewall packet stats and connections stats
* Fixed typo
* Added testdata
* Fixed typo
* Changed some faulty strings to integers
* Added more sensors. License, HA states and Updates checks
* Added testdata
* Using snmp_get_multi. Cleaner code
* Fix rrd function usage
Co-authored-by: Tony Murray <murraytony@gmail.com>
* fix aos7 yaml
* fix aos7 yaml
* fix tests
* fix tests2
* trying to fix tests3
* Update aos7_6900-x20.json
* add new tests
* some changes
* miss this
* again
* again
* again
* again
Co-authored-by: Tony Murray <murraytony@gmail.com>