Commit Graph

6992 Commits

Author SHA1 Message Date
Jellyfrog
e00eba327d
Re-implement Printer as a class based module (#12605)
* Re-implement Printer as a class based module

* Rename toner table

* wip

* wip

* Rename to printersupplies

* Fixes

* Rename

* wip

* wip
2021-03-27 10:09:14 -05:00
PipoCanaja
7dbb2e42b8
Huawei VRF BGP_Peers update (#12585)
* Mib update

* Fix update of peer + add PeerDescription

* tests

* force tests rerun
2021-03-26 16:36:42 -05:00
Tony Murray
5e7c58aa1a
Fix double escaping sysContact on device overview (#12653) 2021-03-26 16:11:29 -05:00
djamp42
9465e0d305
Hide disabled components from overview page CIMC (#12650)
* Hide Disabled Components from Overview Page

If $component is disabled, hide it from the overview page.

* Update cimc.inc.php

continue instead of break
2021-03-26 14:46:38 +01:00
PipoCanaja
cac7bfc59c
fix VRF name change not updated in DB (#12644) 2021-03-24 17:17:53 +01:00
William Irvine
d06c65a746
Fixed polling and health issues for 9001 and NCS devices, added suppo… (#12640)
* 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
2021-03-24 07:50:02 -05:00
Yif Swery
de0fc2125c
Add ability to set a custom port on IPMI agents (#12634)
* Add ability to set a csutom port on IPMI agents

* Casting the port value to int
2021-03-23 10:11:05 -05:00
Cupid@zul
e973a5fd49
Add CPU and Mem for Teldat Devices (#12619)
* 12394 Add CPU and Mem for Teldat Devices

* add cpu and mem to teldat +mib files.

* minor adjustment.

* add classes to memory: system, shared, cache

* +snmpsim test files

* memory minor fix: class name 'cache' > 'cached'

* minor fix removing: telProdNpMonSistemMemTotal

* add json tests.

* small fix: get S/N from description

* Update teldat.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-03-23 09:08:08 -05:00
Cupid@zul
c05cf4b2fc
Add ID to Device Table List and to Device Dependencies Table List + Shorten ifname in Device: Recent Events. (#12397)
* Add ID to Device Table List and to Device Dependencies Table List

* wrap interface text to max-width: 100px

* ok, fixed as requested. all tests ok! gui working well... filtering and sort tests ok.
2021-03-23 09:07:27 -05:00
Jellyfrog
800ae95b90
Cleanup (#12641) 2021-03-23 08:47:38 -05:00
Jellyfrog
d101834751
Correct sensor_id variable (#12633) 2021-03-22 10:41:20 -05:00
Matthew Simmons
97ad2e4bdf
Translate hex sensor values returned from ipmitool (#12638)
* Translate hex sensor values returned from ipmitool

* Style fix

* Fix rewrite - use matches array
2021-03-22 10:36:41 -05:00
Kevin Zink
54f1ac2f67
PHP8 Bug in printChangedStats (#12639)
array_sum(): Argument #1 ($array) must be of type array, null given
2021-03-21 12:50:40 +01:00
Kevin Zink
6cb7fb4da7
Bugfix for no sockets on Unix Agents (#12637)
* Bugfix for no sockets on Unix Agents

Fix Bug: Argument #1 ($stream) must be of type resource, bool given...

* Update unix-agent.inc.php

Fix Style
2021-03-20 17:19:09 +01:00
Jellyfrog
44d1985c23
Add more printer data (#12617) 2021-03-19 14:57:48 +01:00
Simon Smith
0712b5299e
Update availability-map.inc.php (#12632)
fix services url in availability maps as currently generates a 404
2021-03-18 16:27:49 -05:00
Serphentas
c88ef64169
Chrony support (#12488)
* initial chrony implementation

* remove unused import

* add testing data

* fix test data

* fix tests

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-18 20:11:25 +01:00
Simon Smith
92bf7d5efa
Add identification for Edgeswitch 8XP (#12622)
* Update edgeswitch.yaml

add frogfoot enterprise for old edgeswitch devices

* Create edgeswitch_edgeswitch-8xp.snmprec

* Create edgeswitch_edgeswitch-8xp.json

* Rename edgeswitch_edgeswitch-8xp.json to edgeswitch_8xp.json

* Rename edgeswitch_edgeswitch-8xp.snmprec to edgeswitch_8xp.snmprec

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-03-16 23:43:17 +01:00
Tony Murray
61316ce2cc
PHP 8 fixes (#12528)
* port related errors

* more fixes

* fix storage count

* add tests for php8

* style

* only need not empty

* aix fixes....

* storage WIP

* fix aix discovering hrstorage
fix db test adding .gitkeep
fix os modules when discovery only

* fix aos processors wrong oid

* fix mempool number casting

* fix aos7 cpu

* use + 0 cast instead of floatval()

* more verbose error on invalid json

* remove invalid data in json

* actually fix the json

* correct json error fix

* cast_number() function
fix aruba-instant and aos6 bugs exposed by new function, probably more...

* fix a-f
fix inadequate sort for component data

* fix global port poll time

* fix mempools precent 0, route count, ntp const

* fix schleifenbauer liberal current usage

* further number casting refinement

* vrp

* fix tests

* fix arbos

* warn cleanups adjust to :: change

* fix ciena-sds

* fix drac

* fix dell-rpdu anddlink

* fix and improve arubaos
better error when getting an array in Processor

* fix atenpdu, add missing arubaos files

* aruba-instant to yaml
apparently I didn't need to do this, the diff just looks really odd
It did add ranged sub-index replacements

* docker app, was completely wrong... fixed

* fix sentry4 divide by 0...

* fixed root issue, remove check

* nicer cidr in ipv6 code

* remove bogus enuxus battery bank skip_values

* Fix InfluxDB tests

* remove extra import

* fix other style issues.

* influx "style" fixes
2021-03-12 18:10:14 -06:00
aarchijs
13c5745ae8
Adding Cisco ME1200 support (#12527)
* Create ciscome.yaml

Adding initial discovery. Needs tweaking.

* Update ciscome.yaml

* Update ciscome.yaml

Updated

* Add snmprec data

* Update ciscome.yaml

Updating "text" field for clarification so it would be better differentiated between other Cisco OSes. 
Removed "cisco-cbqos" as it is not supported.

* Update ciscome.snmprec

Fixed line 14 as it should have been one long line

* Add ciscome_me1200.json test data

Test data for Cisco ME1200

* Rename ciscome_me1200.json to ciscome.json

* Update ciscome.json

fixed interface names to match snmprec file

* Delete ciscome.json

* Adding ciscome.json once more to fix descrptions

for some interfaces to match snmprec file

* Update ciscome.json

* Update ciscome.json

* Update ciscome.snmprec

* Update ciscome.json

* Update and rename ciscome.yaml to ciscome1200.yaml

* Update and rename ciscome.json to ciscome1200.json

* Rename ciscome.snmprec to ciscome1200.snmprec
2021-03-12 21:35:09 +01:00
rasssta
3d996a0408
hpe-ilo - Added support for Logical Drive Status (#12612)
* Update hpe-ilo.yaml

Added support for Logical Drive Status.

When using 3rd party disks with for example P420i, the controller reports the Logical Drive Condition as degraded as the disk is unauthenticated. So to get the actual status of the logical device one has to look at Logical Drive Status instead (which also reports a lot of other states).

* Update hpe-ilo_4.json

* Update hpe-ilo.yaml

* Update hpe-ilo_4.json

Typo
2021-03-12 21:15:48 +01:00
Tony Murray
242b8747fb
Fix AOS 7 sensors (#12599)
* AOS7 WIP

* Fix AOS 7 sensors

* TX Bias -> TX Power

* Fixes
2021-03-08 22:50:34 -06:00
Tony Murray
74c3d714a5
Oxidized support airfiber (#12597)
map airos-af and airos-af-ltu to the correct model
2021-03-08 21:19:00 +01:00
Tony Murray
b1dbd332d7
Revert "Use high precision OIDs for APC UPS sensors (#12158)" (#12592)
This reverts commit b340a3eec4.
2021-03-08 01:28:08 -06:00
yrebrac
7d65cf1f05
Add application powermon (#12500)
* adding powermon application

* working consumption graph

* updating powermon application

* powermon app style fixes

* added powermon app test data

* debug code

* revert

* fix tests

* fix tests

Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-07 20:28:09 +01:00
Lucas Dousse
49868ee1a6
docker stats app (#12358)
* docker stat app support

* Add missing doc and app

* stylci

* styleci

* styleci

* Add test data

* add snmpsim

* Update docker.inc.php

test with use Number::Bi

* typo

* Add tests

* Add tests

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-07 20:26:44 +01:00
Cirno the Strongest
b340a3eec4
Use high precision OIDs for APC UPS sensors (#12158) 2021-03-07 10:45:10 +01:00
Dan Baker
e04f0447af
Added alarm detection and optical PMs for Waveserver Ai (#12380) 2021-03-06 22:14:43 +01:00
Andrew Holmes
ec15515aae
support newer SyncServer (#12423)
* update microsemitime.yaml to support newer SyncServer sysObjectId, add additional device information fields and sensors

* fix test data. I keep forgetting that.
2021-03-06 22:10:04 +01:00
theochita
c5178cf550
webui: Add button to show verbose alert details in the alert, alert-log webui (#12484)
* Show verbose alert details in the alert, alert-log webui

update file permissions

* Make global admin permission required to use alert details ui

* StyleCI patch

Co-authored-by: root <root@usopsl-libre001.corp.blizzard.net>
2021-03-06 21:57:06 +01:00
PipoCanaja
42ded0fb54
Collect BIOS version for IBMC (#12586) 2021-03-06 21:36:16 +01:00
SourceDoctor
09d30ce75d
Global Settings - SNMP Timeout (#12579)
* Global Settings - SNMP Timeout

* omit snmp timeout if it is 1

* add retries field

* filter default retries too

* fix typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-03-04 20:18:26 -06:00
Tony Murray
6e19805bcb
remove legacy json format function (#12583)
* remove legacy json format function

* remove silly use
2021-03-04 14:55:41 +01:00
Janno Schouwenburg
0a8f24c5b1
Cisco enhanced cellular (#12463)
* Cisco enhanced cellular support

* Extra sensors, camelcasing and bugfixes

* Doc update

* German translation

* French translation

* Style fixes

* Style changes

* Style changes

* Style changes

* Style changes

* Style changes

* Added test data

* New test data --variant

* New test data --variant ir1101

* Made the new wireless sensors generic

* Added test data for ios variant ir809

* Fix includes/discovery/sensors/count/cisco.inc.php, thanks PipoCanaja

* Moved cellular operating band from Wireless sensors to count sensor

* test data

* test data

* test data

* test data

* Moved ICCID/IMSI/IMEI to inventory

* test data and style fix

* Cellular state sensors now have a group

Co-authored-by: Maikel de Boer <mdb@tampnet.com>
2021-03-02 06:37:30 -06:00
Tony Murray
f5a0959181
Revert "Switch to utf8mb4 (#12501)" (#12578)
This reverts commit 8e2e67d0ee.
2021-03-01 14:59:06 -06:00
PipoCanaja
c0060dc6ed
DynamicDiscovery - Guess num_oid if not provided in YAML file (#12570)
* Guess num_oid if not provided in YAML file
* Discover Processor num_oid if necessary
* num_oid is now optional

* documentation upgrade
2021-03-01 16:54:29 +01:00
Jellyfrog
8e2e67d0ee
Switch to utf8mb4 (#12501)
* Switch to utf8mb4

This allows emojis to function correctly

* Update URLs
2021-03-01 08:02:26 -06:00
Wade Fitzpatrick
be5a322d2c
Add BGP discovery and polling for Dell OS10 devices (#12549)
* Add BGP discovery and polling for Dell OS10 devices

* Add BGP testing data for Dell OS10

* Add BGP testing data for Dell OS10 (fix)

* Add DB info for unit testing

DB_TEST_HOST must be changed when running mysql in a separate docker container or unit tests fail

* Set bgpLocalAs in discovery (fixes unit test fail)

Ideally the main `bgp-peers.inc.php` should be fixed so it does not
depend on finding bgpLocalAs from BGP4-MIB

* Change comment style

* Remove link to code in documentation

* Discover BGP counters

* Use IPv6 addresses in compressed format
2021-02-26 16:57:16 +01:00
PipoCanaja
839ccec9ad
F5 realservers (node_name) display (#12553)
* Use the actual server name instead of pool name where needed

* Add a new attribute with nodename to avoid breaking RRD filenames

* tests

* tests improved

* force refresh tests
2021-02-26 16:15:43 +01:00
PipoCanaja
0d892a0559
VRP - Huawei Wifi Controllers and routers 3G/4G update (#12565)
* MIBS update for Redundancy support, and first state

* Current unit state

* Config Sync state

* Upgrade FLASH mib as well

* discover storage

* Storage discovery

* storage

* tests

* fix initial value, and handle empty Descr

* IMEI to replace SN, cause SN is sometimes missing
2021-02-26 16:08:01 +01:00
William Irvine
402982abf5
Added support for siteboss571 (#12568) 2021-02-25 20:00:04 -06:00
PipoCanaja
1c3303d8ae
Notifications : display sensor state textual value (#12554)
* display sensor state textual value
* style
* if then else
2021-02-25 19:00:47 +01:00
Jellyfrog
1f68b7b0ed
Update support for ServersCheck (#12546) 2021-02-22 11:22:19 +01:00
SourceDoctor
75a0a5e374
Use DNS Location Record for Location (#12409)
* Use DNS Location Record for Location

* .

* .

* .

* grammar fix

* dns class

* code changes

* composer update

* add missing composer.lock update

* reposition Location record parsing

* composer update

* default yes ; change lookup order

* merge master

* .

* move Location Record Parser to Model Level

* .

* fix location record code

* Location precedence with tests
Setting from UI disables all lookups

* update composer.lock and mix-manifest.json

* Style fixes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-22 11:17:40 +01:00
PipoCanaja
d20e1bdf5d
GUI - Fix the detailed access point view (#12543)
* Fix the detailed access point view
* Removing unused old tab file
2021-02-18 15:10:32 +01:00
Oleksandr Martsyniuk
01019cfc02
Add support for Edge-Core ECS4100 series devices (#12530)
* Add support for Edge-Core ECS4100 series devices

* Add ECS4100-52T-MIB file

* Update OS/Edgecos.php

* Add support for Edge-Core ECS4610-24F

* Added MIB File

* Updated definitions/edgecos.yaml

* Add test data for ECS4610-24F
2021-02-15 23:45:56 -06:00
PipoCanaja
291f90ab84
handle invalid temperature data for some devices 0x7fffffff (#12537) 2021-02-15 16:04:23 +01:00
Tony Murray
8b105ba162
GPS coordinates from device (#12521)
* GPS coords from device
in yaml or php
define for epmp, airos, and airos-af-ltu
quirk for airos bug with - in the middle of the number

* style fixes

* revert airos-af-ltu mempool change

* fix imports

* add epmp test data... more improvements to come there.

* don't stagger geocoding now that this is moved to discovery
also, no need to check OSDiscovery since the base implements it.

* fix json data

* fixed
2021-02-14 20:36:55 -06:00
Cupid@zul
f9a379fa3c
Rrdcached SNMP: Add poller feature for RRDCached SNMP to query remote agent. (#12430)
* Add poller feature for RRDCached queries via SNMP

* Docs Update

* Update Documentation to include localhost RRDCached monitor.

* update doc.

* update/fix

* Update Applications.md

as requested, remove RRDCached Security ref for local polling.

* Update Applications.md

* Update Applications.md

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-14 10:00:56 -06:00
Tony Murray
b86dbcf693
Fix truenas temps (#12532) 2021-02-12 23:31:21 -06:00