Commit Graph

18758 Commits

Author SHA1 Message Date
Tony Murray
66dddbaa66 SNMP Capabilities (#13289)
* SNMP Capabilities
Allow all available auth algorithms to be set in global settings
cleanup other usages

* fix style
2021-09-28 18:35:59 -05:00
Tony Murray
add06be809 Fix poller wrapper error (#13290)
* Fix poller wrapper error
trying to reference value from try block in catch block

* remove redundant item
2021-09-28 17:47:04 -05:00
SourceDoctor
708d1ebb87 API Call to set instant Maintenance mode (#13237)
* API Call to set instance Maintenance mode

* .

* remove unused code

* update query

* Use recent code

* remove accidental line return

* fix duration in success string

* style fix

* Try to fix bad code merge

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-28 21:54:52 +02:00
Tony Murray
b2ac547abb Quick fix for route discovery on PHP8 (#13284) 2021-09-28 16:22:17 +02:00
Tony Murray
5a0ed57514 Linkable graph component (#13263)
* Linkable graph component

* indentation change
2021-09-28 08:29:38 -05:00
Orsiris de Jong
bfa200f3f7 Full Python code fusion / refactor and hardening 2nd edition (#13188)
* New service/discovery/poller wrapper

* Convert old wrapper scripts to bootstrap loaders for wrapper.py

* Move wrapper.py to LibreNMS module directory

* Reformat files

* File reformatting

* bootstrap files reformatting

* Fusion service and wrapper database connections and get_config_data functions

* Moved subprocess calls to command_runner

* LibreNMS library and __init__ fusion

* Reformat files

* Normalize logging use

* Reformatting code

* Fix missing argument for error log

* Fix refactor typo in DBConfig class

* Add default timeout for config.php data fetching

* distributed discovery should finish with a timestamp instead of an epoch

* Fix docstring inside dict prevents service key to work

* Fix poller insert statement

* Fix service wrapper typo

* Update docstring since we changed function behavior

* Normalize SQL statements

* Convert optparse to argparse

* Revert discovery thread number

* Handle debug logging

* Fix file option typo

* Reformat code

* Add credits to source package

* Rename logs depending on the wrapper type

* Cap max logfile size to 10MB

* Reformat code

* Add exception for Redis < 5.0

* Make sure we always log something from service

* Fix bogus description

* Add an error message on missing config file

* Improve error message when .env file cannot be loaded

* Improve wrapper logging

* Fix cron run may fail when environment path is not set

* Add missing -wrapper suffix for logs

* Conform to prior naming scheme

* Linter fix

* Add inline copy of command_runner

* Another linter fix

* Raise exception after logging

* Updated inline command_runner

* Add command_runner to requirements

* I guess I love linter fixes ;)

* Don't spawn more threads than devices

* Fix typo in log call

* Add exit codes to log on error, add command line to debug log

* Add thread name to error message

* Log errors in end message for easier debugging

* Typo fix

* In love of linting
2021-09-27 14:24:25 -05:00
Tony Murray
9b5684da4e Missing config seeder docs (#13279) 2021-09-27 12:49:52 -05:00
Tony Murray
d11a6c6ebb Feature config seeder (#13259)
* Feature config seeder
Place yaml key value files in database/seeders/config to pre-populate the config database
This feature is primarily for docker images and other automation

example snmp.yaml
```yaml
snmp.community:
    - public
    - private
snmp.max_repeaters 30
```

* fix style

* include /data/config as used in docker

* respect --force option

* Confirm if re-import
Defaults to yes for --no-interaction
Don't confirm if there is nothing to do

* default to false

* typehints
2021-09-27 12:17:15 -05:00
Tony Murray
b934d0c927 cleanup device type override code (#13256) 2021-09-27 14:24:32 +02:00
Nick Peelman
dda46447c3 Add ORDER BY to the ports query when showing the ports list on device overview (#13276) 2021-09-27 10:34:55 +02:00
ottorei
8ceebe7102 Fix outages table timezone (#13274) 2021-09-26 16:08:11 +02:00
Muhammad Lutfi Santoso
7857dab98e Add Ericsson IPOS router support (#12625)
* Add Ericsson IPOS router support

* Create ipos.snmprec

* Update ericsson-ipos.yaml

* Rename ipos.snmprec to ericsson-ipos.snmprec

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-24 16:17:07 -05:00
Tony Murray
f4f7b7c2ed Remove device dark mode detection (#13273) 2021-09-24 23:14:43 +02:00
Tony Murray
d6fa206aa8 Fix html.device.links validation (#13269) 2021-09-23 21:28:54 +02:00
Jellyfrog
be3d3d171d Lint: Disallow usage of deprecated functions (#13267) 2021-09-23 21:27:14 +02:00
Cupid@zul
9eecca51c7 Teldat: Wireless and GSM Basic Monitoring (#13255)
* 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>
2021-09-23 11:55:14 -05:00
Tony Murray
2687fc509e Improve tailwind dark theme colors (#13262)
* Improve tailwind dark theme colors
Import the dark theme colors into the Tailwind color palette
update components to use those new colors

* remove colors import, it isn't used right now
2021-09-23 15:38:41 +02:00
Tony Murray
c579de7ea7 Fix lnms some commands throwing errors (#13265)
ones that don't have custom validation messages
2021-09-23 15:29:45 +02:00
Cupid@zul
ba84acc1db Fix graphs showing bps instead of pps (#13266)
* fix issue #13119

try to detect if total_units exists (variable comes from errors.inc.php and nupkts.inc.php ) as 'pps' and define graph units as such.

* standardize units_descr for both ucastpackets and errors
2021-09-23 07:43:23 -05:00
Kevin Zink
f796396e0b HP Fault Traps (#13254)
* HP Fault Trap

* Add typehints

* Fix style

* Fix style

* Try to fix wrong test

* Next try
2021-09-21 16:20:49 -05:00
Max Narvaez
296edba28a Support HP Procurve models that have an E at the beginning of the model number (e.g. E2910) (#13261) 2021-09-21 15:13:41 -05:00
Max Narvaez
a3c9e32cc3 Fix axis cam discovery (#13258)
* Fix axis cam discovery

* Remove sensor data from test data

* Include all data again

* Remove sensor data again, this time also from json file
2021-09-21 14:18:15 -05:00
Tony Murray
8a883140cb Infer character encoding for ifAlias and sysLocation (#13248)
* 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>
2021-09-21 08:47:44 -05:00
SourceDoctor
11dfbc02b7 API Call to assign/remove a Portgroup to Ports (#13245)
* API Call to assign/remove a Portgroup to Ports

* .

* .
2021-09-21 08:41:01 -05:00
SourceDoctor
0d499b538b API port search by arbitrary field (#13231)
* DB Field specific Port Search

* .

* seperate function for API Call

* second parameter now optional

* code adjustments

* Update api_functions.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-19 19:28:42 -05:00
SourceDoctor
a8ca79152c API add_device: respond with more device information (#13251)
* Advanced Response Information API add_device

* .
2021-09-19 18:47:50 -05:00
Kevin Zink
c984cdbebc MegaRaid controller in Linux (Broadcom/LSI) (#12999)
* 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
2021-09-19 18:31:23 -05:00
Tony Murray
1084bd6d1a Convert all ports backend to Laravel style ajax table (#13184)
* port ports to Laravel style ajax table

* fix style

* cleanups+fixes

* correct column name

* correct port formatter

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* always filter deleted

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-09-19 18:26:33 -05:00
Kevin Zink
59859c2ea3 Veeam backup SNMP Traps (#13170)
* SNMP Trap Veeam backupjob status

* Add  onVmBackupJobCompleted

* add mib

* fix style

* fix style

* Split backupjob and vm backup

* Add Traptest

* Fix style

* Fit style

* typehint on tests

* Fix handling empty string

* Fix wrong check

* Fix styl

* Fix style

* Update VeeamBackupJobCompleted.php

* Update VeeamVmBackupJobCompleted.php

* Update VeeamTrapTest.php

* Update VeeamTrapTest.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-19 08:21:31 -05:00
Max Narvaez
c1dce44947 Arubaos cx hardware (#13045)
* 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>
2021-09-18 15:39:34 -05:00
Tony Murray
c41c25cab6 reorganize release categories a bit (#13249) 2021-09-18 13:22:54 -05:00
Noah Roufus
eff9c134cd Added SAF Integra-X OS Support (#13236)
* 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.
2021-09-17 09:13:10 -05:00
Tony Murray
b4b4820cba Bump version to 21.9.0 21.9.0 2021-09-16 22:45:07 -05:00
Tony Murray
e8ba3af4d5 Changelog for 21.9.0 2021-09-16 22:45:06 -05:00
Negatifff
962e05ea6b Add sysobjectid and hardware fields into oxidized maps (#13221)
* add sysobjectid and hostname field into oxidized maps

* add app.js
2021-09-16 19:00:06 -05:00
Tony Murray
117036bf29 Fix Dell server sensors (#13247)
missing mib directory
2021-09-16 21:05:31 +02:00
Galileo77
d9b54469f2 Add Mouseover Mini Graphs that makes sense for PDU (#13246) 2021-09-16 11:07:25 -05:00
Pim van Pelt
7e26331ab6 Add VPP logo (#13230) 2021-09-15 17:50:44 +02:00
Tony Murray
a6fcbba10a Fix mempool unit display (#13241)
MiiB to MiB
2021-09-15 17:45:57 +02:00
paulierco
2e8f629758 osag: add ifName (#13243) 2021-09-15 17:44:36 +02:00
paulierco
8fcd13f821 mcafeewebgateway: add ifName (#13242) 2021-09-15 17:44:16 +02:00
Martin
a357224465 Update to fix table row color and hover color (#13244)
The last update changed row color for all rows except the first instead of changing color for every 2nd row.
2021-09-15 17:43:36 +02:00
Tony Murray
f3fa2ce1e2 Fix port minigraph (#13240)
missing div close
2021-09-14 11:36:21 -05:00
ottorei
34de9dd77d Sort in SQL (#13238) 2021-09-13 19:12:55 -05:00
Tony Murray
9715fe0e8d another non-integer fix (#13239) 2021-09-13 19:11:49 -05:00
ottorei
b2d34cac4a Fix PagerDuty transport's group field (#13235)
* Do not poll passive interfaces

* Bug

* Update payload
2021-09-13 21:14:11 +02:00
Tony Murray
1452ad9889 Fix graph row columns (#13232)
* Fix static alert rule creation failing in api

* fix spacing
2021-09-12 19:48:57 -05:00
Tony Murray
055895e4a5 Fix static alert rule creation failing in api (#13222) 2021-09-11 21:35:11 +02:00
Orsiris de Jong
b561ebbc3f Increase RestartSec time to a reasonable value (#13217) 2021-09-11 21:27:02 +02:00
Fehler12
c1846c2f69 Added Cisco CBS 250 Support (#13228)
1003 is for 1G uplink
1005 is for 10G uplink models
2021-09-11 21:25:49 +02:00