* Common contexts for polling
Don't store contexts on the device array, use the device model
Also should be easier to add different contexts later.
* rename variables for consistency
* 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>
* 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>
* Firebrick: Fix an issue which led to duplication of BGP peers.
* Code style.
* Attempt to get some sanity with BGP Table 0.
* Attempt to make it so peers are not immediately added then deleted.
* Force vrfId to Null if empty.
* Another attempt at keeping the DB clean.
* Code style.
* Stop the dicovery deleting peers it just created.
* 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
* 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 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
* 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
* FabOS module dBm
fixes#11597
* Fix polling and state sensor discovery value
* fix temperature and fanspeed checks.
Also, fanspeed was totally broken.
* port sensors to yaml, found more broken things in the process.
* Test the num_oid generation
* Refactor num_oid discovery
* cnt
* Cache the value to avoid unnecessary snmptranslate
* desc of function
* typo
* Negative caching as well
* Negative caching
* style
* Str::before
* Str::before
* Str::before
* Fix key, and model Devices
* types
* types
* doc update
* re-run tests
* Use Cache class
* Simplify caching and do it into oidToNumeric
* Simplify caching and do it into oidToNumeric
* style
* Extend to 3 hours
* and not ->cache_time
* force re-run tests
* only one OID for num_oid test
* rerun tests
* typo in MD
* restore
* Exemple
* Exemple
* light change
* test
* test
* test
* back to PR
* phpstan + suggestions from Tony
* fix firebrick num_oid
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Pop returned value from snmpwalk_group for lldp on mikrotik routeros
* Account for non-multiarray response then pull out the inner-array
* StyleCl suggested format
* Add comment
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Update cisco.inc.php
Wrong OID used for c3GsmSimStatus
* add test data for iosxe
* Update ios_ir809.json
* Update iosxe_ir1101.json
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Add Firebrick MIBs, temperatures and voltages.
* Add missing $sysOid checks.
* Add fan speed for FB6000 series.
* Add sane limits.
* Update Firebrick MIBs.
* Make BGP peers work.
* Better support for Firebricks.
* Add more firebrick support.
* Add BGP Peer States.
* Fix fan speed divisor now that Cliff has fixed the code.
* Fixes for BGP and sensors.
* Add Firebrick IPSec module.
* Add IPSec Tunnels (Base).
* Sort out the IPSec states (although they're still green for no real reason).
* Code style fixes.
* Add missing config definition.
* Fix code style issues.
* Move bgp-peers to its own file.
* Do fan speeds with yaml, not PHP.
* Add Firebrick 6000 snmprec.
* Move Firebrick tests to be FB6000 tests.
* Revert "Move Firebrick tests to be FB6000 tests."
This reverts commit 426c1db980.
* Add tests for specific firebrick variants (2900, 6000) rather than generic.
* Add the firebrick-ipsec-tunnels poller config option.
* Switch to cipsec-tunnels for Firebrick.
* Unnecessary as it's now in cipsec-tunnels.
* Add extra MIB fields for Firebrick BGP MIB.
* Minor fix for AS text.
* Fix the tests.
* Exclude build timestamp from the version.
* Fix a couple of careless errors.
* Code style fix.
* Better version strings.
* Fixes for BGP, and add "Routing Table" support (VRF).
* Add more test data for BGP peers.
* Fix test data for BGP.
* Remove processors for now - as we can't get the data sensibly.
* Fix code style.
* Update firebrick.inc.php
Force tests re-run
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fixed issues health and polling issues with 9001 and NCS devices, added support for 9901
* Update iosxr.inc.php
* Update iosxr.inc.php
* Update cisco-entity-sensor.inc.php
* remove polling file and adjust to user_func from disco
* fit formatting and remove echo
* fit formatting2
* fit formatting3
* Fix test files with no badif
* remove all exclusions so tests work
* recreate json test for 9010