* Sensors remove reliance on global variable
* Apply fixes from StyleCI
* Clear the instance instead of reset.
Remove $valid['sensors'] from docs
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Fix cisco dbm sensors port link on discovery (NCS55A2)
dBm sensors were not linked to port on Cisco NCS55A2 platform (iosxr)
causing false alarms triggered by optical modules in administratively shut down ports.
* Delete iosxr_ncs55a2.json
* Create iosxr_ncs55a2.json
* Renew test/data/iosxr_ncs55a2.json
* Delete and recreate test/data/iosxr_ncs55a2.json
With command :
./scripts/save-test-data.php -o iosxr -v ncs55a2 -m os,ports,processors,mempools,sensors
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Fix Undefined variable/key warnings
* massage for test data
* restore set_numeric, only generates noise
* Fix ucd storage used (apparently free is not stored in discovery...)
* 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
* Update functions.inc.php
Skip changing the high limit threshold to low limit threshold value when high limit threshold doesn't exist for a sensor. If low limit threshold value was set by discovery process or manually, the same value would be also set for high limit threshold.
* Update cisco-entity-sensor.inc.php
Skip invalid sensor threshold values, which some Cisco ASR devices (probably other families too) return.
* Add snmprec data for Cisco ASR9010
* Create iosxr_asr9010.josr
* Create iosxr_asr9010.json
* Delete iosxr_asr9010.josr
* Update iosxr_asr9010.json
* Update iosxr_asr9010.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Sev and Rel terminology varies between devices
* Most temp sensors don't have low limits, so adding
* update test data
Co-authored-by: Tony Murray <murraytony@gmail.com>
* refactor: advanced sensor states
mark create_state_index($state_name) as E_USER_DEPRECATED?
* fix: minor corrections
* fix: mib has partialSync(9) and incompatibleVersion(8)
* fix: corrected netagent2upsstate - Sleeping(5)
* fix: NetAgent2 upsThreePhaseUPSStatusInverterOperating correction
* refactor: array() be gone
* Refactoring includes/discovery/sensors/state/extendair.inc.php with arrays
And tidying up array formatting in other files
* fix: minor typo
* standardising array item names
removed redundant "if ($state_index_id !== null) {"
* workaround: procurve & serverscheck
a sensor is causing create_state_index($state) to return null.
The updated code doesn't allow for this and thus a hybrid is being used.
* standardised naming of state info. Caused a typo $state_name instead of $status_name
$state_name is the standard
* converted compas to square arrays
* Converted APC states using preg_match to new create_state_index() call
* Update boss.inc.php
* Don't do uneeded snmp queries
sensors discovery 26 -> 16
wrapped some poller modules in db checks. The same could be done for some others, but more work is needed.
* travis fix