Commit Graph

18488 Commits

Author SHA1 Message Date
Jellyfrog
f9b25ccdbc Lint with shellcheck (#12666) 2021-03-28 10:47:21 -05:00
Jellyfrog
f06e81b357 Switch to utf8mb4 (#12580)
* Switch to utf8mb4

This allows emojis to function correctly

* Update URLs
2021-03-28 16:23:08 +02:00
Tony Murray
896386d2c7 Add lint Github Action (#12655)
* Add lint ghaction

* test full codebase for fun

* run only desired linters

* Set to regular values

* oops, remove bash exec

* Run on master too

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-27 19:18:49 +01:00
Tony Murray
646ec4d471 Fix service template discovery (#12662) 2021-03-27 17:39:40 +01:00
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
Filippo Giunchedi
c8c8bc3a81 Support multiple Alertmanager URLs (#12346) 2021-03-27 10:01:48 -05:00
Tony Murray
6a602794c6 Update Welcome-to-Observium-users.md 2021-03-27 09:43:12 -05:00
Tony Murray
3e4a07c97b Update welcome migration link 2021-03-27 09:42:39 -05:00
Jellyfrog
ede486ea95 Fix regression from 3cfffb9912 (#12661) 2021-03-27 15:39:24 +01:00
Tony Murray
c10c630708 Don't fail on rrd close (#12659)
if process already left
2021-03-26 22:33:50 -05:00
Dan Langille
5ceba5cdb7 Filter some validation when installed from a package (#12647)
* Filter some validation when installed from a package

Also, tell the user that fping FAILURES can be ignored if running LibreNMS in a
jail without ::1

* Filter some validation when installed from a package

Also, tell the user that fping FAILURES can be ignored if running LibreNMS in a
jail without ::1

* change this back to info

* apply styleci diff
2021-03-26 22:07:33 -05:00
Erik Lamers
ebc146e0a9 Add poller_group docs on auto-discovered devices (#12646)
* Add poller_group docs on auto-discovered devices

I needed to check the source code to figure to which poller_group auto-discovered devices were assigned. So to avoid people having to figure that out again, let's add it to the docs.

* Add notice about global setting

Using `lnms config:set`
2021-03-26 22:07:03 -05:00
TheGracens
24e98ecad2 Update menu.blade.php (#12656)
make Dashboard Menu scrollable
2021-03-26 21:55:32 -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
c23e273fe9 fix snmp mock issue with MAC addresses and invalid snmprec data (#12657) 2021-03-26 16:27:19 -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
aac57e60a7 VRP - Fix SSID Client count (#12629)
* Fix Client count

* style

* no caching

* style

* snmpwalk_cache_oid

* Include total of all STA connected

* style

* Update Vrp.php

* fix GHz casing

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-03-26 07:47:12 -05:00
Jellyfrog
77d21c1d05 Change cache table to mediumtext (#12649)
Fixes #12620
2021-03-26 11:09:42 +01:00
Simon Smith
6aa7717403 fix progress-bar 0% (#12648) 2021-03-25 14:30:35 -05:00
PipoCanaja
cac7bfc59c fix VRF name change not updated in DB (#12644) 2021-03-24 17:17:53 +01:00
Jellyfrog
3cfffb9912 Cleanups (#12642)
Should only be cosmetic
2021-03-24 09:13:43 -05: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
Jellyfrog
58a154d894 Fix a bunch of bugs (#12643) 2021-03-23 23:08:42 +01: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
Lee Spottiswood
283dafda1c add UKFast PSS transport (#12624)
* add UKFast PSS transport

* rename var

* use correct class signature

* fix styleci

* styleci

* styleci
2021-03-22 10:39:58 -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
Anthony F. McInerney
a625faaa1b service watchdog - add systemd watchdog for resiliency (#12188)
* Add systemd watchdog service

* Add systemd watchdog service

* Add systemd watchdog service - add try

* Add systemd watchdog service - add try

* Add systemd watchdog service - add try

* Add systemd watchdog service - add try

* Add systemd watchdog service - add try

* Add systemd watchdog service - update docs for python3-systemd

* systemd-watchdog - move to 10 second alert frequency

* systemd-watchdog - move to 10 second alert frequency

* systemd-watchdog - move to 30 second restart, 10 second delay between restarts

* systemd-watchdog - safely integrate changes

* systemd-watchdog - safely integrate changes

* systemd-watchdog - revert old doc changes

* systemd-watchdog -  doc typo fix
2021-03-22 10:34:45 -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
Jellyfrog
d24730818f Bump version to 21.3.0 21.3.0 2021-03-21 00:58:30 +01:00
Jellyfrog
91f4967860 Changelog for 21.3.0 2021-03-21 00:58:09 +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
c09158dad0 Fix serverchecks tests (#12636) 2021-03-19 16:07:50 +01:00
Jellyfrog
7f75f18f84 Fix serverchecks tests (#12635) 2021-03-19 15:22:51 +01:00
Jellyfrog
44d1985c23 Add more printer data (#12617) 2021-03-19 14:57:48 +01:00
Richard Kojedzinszky
e3a1a239f9 Simplify process reaping (#12593)
Fixes #12427
2021-03-18 16:39:53 -05:00
Jellyfrog
1af4a49d76 Fix status badge url (#12631) 2021-03-18 16:28:39 -05: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
Tony Murray
ac7b4539ce Fix Service Templates Dynamic (#12626)
* Fix Service Templates Dynamic
Remove dynamic groups type, it did not work.
Rename and simplify field names.  (fixing an issue with the builder where the rules field should be named rules)

* update schema def

* wrong method name in migration

* fix rules builder

* corerct call to apply

* sqlite can't drop columns

* correct column rename order on down.

* fix sqlite again

* fix whitespace
2021-03-18 08:14:45 -05: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
SourceDoctor
1e3cc4788a Sort Type List in Eventlog Pages (#12572)
* Sort Type List in Eventlog Pages

* update code
2021-03-12 10:29:19 +01:00
Tony Murray
bf0f11df96 Psuedowire test data guess (#12604) 2021-03-12 00:18:48 -06:00