Commit Graph

19212 Commits

Author SHA1 Message Date
Santiago Z
712ba23657 [DOC] Fix Code blocks Step 2 Installing Network-WeatherMap (#13905) 2022-04-11 09:40:25 +02:00
Tony Murray
c8606aab6b Fix install icons (#13904) 2022-04-09 15:05:09 -05:00
Tony Murray
acdf51deca Print full error message in poller/discovery output (#13903)
It was previously missing the file and line number the error occurred on.  Only showing the error message and stack trace before.
2022-04-09 14:21:10 -05:00
William Irvine
5672d10a79 Add ISIS discovery and polling for iosxe devices (#13880)
* Add ISIS discovery and polling for iosxe devices

* remove ModuleModelObserver

* add php stan exclusions as they are already present for the base module

* change port_id to cached lookup

* Create model object instead of using arrays and set properties directly

* remove unneeded space...

* remove null from non nullable field

* revert to extending from ciscowlc rather than os

* remove OS module

* remove phpstan exclusions and fix errors

* add spacing...

* add spacing....

* add spacing

* again...

* Add tests

* Update Iosxe.php

* Update IsisAdjacency.php

* Create 2022_04_08_085504_isis_adjacencies_table_add_index.php

* Update db_schema.yaml

* Update iosxe_asr920.json

* Update Iosxe.php

* Update Iosxe.php

* Update junos_mx5t_isis.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-08 16:33:41 -05:00
Cliff Albert
4910761c25 Add MRV OptiDriver support in gen_rancid (#13900) 2022-04-08 13:37:20 +02:00
Dan Kerse
b33bbd472e Add support for PrimeKey Hardware Appliance (#13806)
* Add support for PrimeKey Hardware Appliance

https://doc.primekey.com/ejbca-appliance
https://doc.primekey.com/signserver-appliance

https://doc.primekey.com/ejbca-appliance/operations/webconf-configurator-of-hardware-appliance/monitoring

* Correct off-by-one error for Galera states

* Add load multiplier

* Don't poll transaction ID, it's too messy

* Tabs -> spaces

* Don't modify system load. (Is this a %age or not?)

* CUP moves Load -> Count

* CPU moves Load -> Count

* Now I have MiBs. Attempts to use them are to date unsuccessful

* Removed numeric oids entirely

I'm not sure how easy it will be to conver this to YAML.

* Formatting

* More formatting

* Numeric it is

* Fix States

* Numeric oids

* Shorten Descriptions

* Add DB threshold

* Percent -> Yaml

* Temperature -> Yaml. Relaxed num_oid validation

* Fanspeed -> Yaml

* Volgate -> Yaml

* Count -> Yaml

* State -> Yaml

* Tweak snmp_flags

* minimize icon

* Check if first_word function is required

* Incorporate feedback

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-04-08 06:23:00 -05:00
Tony Murray
686a27f680 Fix custom error messages (#13898)
* Fix custom error messages
Laravel apparently wraps things in ViewException now and so does ignition.  Ideally, we would plug in the same way as ignition, but just fix the old code for now.

* Don't break the ViewException handling if we can't upgrade
2022-04-07 21:08:43 -05:00
James
b3019f7944 Enhancements for Zyxel OS (#13897)
* Add DBm and State Sensors

Added extra MIB files
Added Dbm levels on ports
Added Stacking State Sensors

* Added include for zynos.inc.php

File patch - includes/discovery/ports/zynos.inc.php

* Create ZYXEL-STACKING-MIB

Official Zyxel MIB

* Create ZYXEL-TRANSCEIVER-MIB

Official Zyxel MIB

* Added test file zynos_xgs4600.json

* Create zynos snmprec test file

* CENSORED zynos_xgs4600.json

* Created new polling file for Zynos ports

Converts zynos SWP port style to be 1/1 style

* Created new discovery for Zynos ports

Changes zynos SWP ports to be 1/1 style during discovery

* Fixing ci complaints in discovery/ports/zynos.inc.php

* Fixing ci complaints in polling/ports/os/zynos.inc.php

* fixing more ci complaints in discovery

* Updated Zynos.snmprec

* Updated zynos.json

* Updated zynos.json

* Removed ifDescr pre-cache

* Removed pre-cache from zynos.yaml

* Reverted zynos.snmprec

* Restored zynos.json

* Updated zynos polling to use zeropad

* Updated zynos discovery to use zeropad

* Updated zynos.yaml

Updated zynos.yaml to include ifname: true to change port names and added '/^ZyXEL/' to sysDescr_regex

* Update zynos.inc.php

* Update zynos.inc.php

* Update zynos_xgs4600.json

* Update zynos_xgs4600.snmprec

* Re-Generated Zynos.json

* Fixed ifOperStatus in Zynos.json

* Delete zynos.inc.php

* Update ports.inc.php

* Added new test data

* Updated zyxel test data and discovery

* Update ports.inc.php

* Update zynos.snmprec

* Updated zynos.json

* Update Zynos.json

* Fix StyleCI issues

* Update zynos.json

* Update zynos.json

* Update zynos.json

* Updated zynos mgs3712.json

* Update zynos_mgs3712.json

* Added back old SFP discovery

-SFP Temperature
-SFP Voltage
2022-04-07 20:49:03 -05:00
Tony Murray
75ba74fe5b Migrate addhost.php to lnms device:add (#13870)
* Migrate addhost.php to lnms device:add
Have snmp-scan.py call lnms device:add (make exit codes line up so this works)
Fix issue with ping only devices trying to detect os via snmp
Reorder options in device:add help and improve formatting
Update docs to remove references to addhost.php
Fix a bit of code that was in functional code

* fixes

* fix snmp version message
2022-04-04 10:41:18 -05:00
Pierfrancesco Passerini
96b708a10e Few more language (ITA) updates (#13890)
* Update it.json

Removed all  \'/  single quote, very common in italian , to avoid problem on page loading

* Update it.json

small fix

* Update it.json

Small updates

* Update it.json

* Add files via upload

* Delete modules.php

* Delete syslog.php

* Delete install.php

* Add files via upload

* Update plugins.php

* Update validation.php
2022-04-04 12:38:13 +02:00
Mark Westerterp
971404f416 Added "Ping Response" graph to "Ping Only" Device Overview page (#13886)
* Add Ping performance to Device Overview page

Only if device type is "Ping Only"

* Re-use $perf_url
2022-04-03 14:15:23 +01:00
James French
7e5641d4fe Replaced OpenWRT icon with new logo (#13891)
* Added new OpenWRT icon to replace old logo

* New logo has an icon usable without text per look & feel of LibreNMS
* Compatible with OpenWRT usage guidelines refer:
    https://openwrt.org/docs/guide-graphic-designer/openwrt-logo

* Update openwrt.svg

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-04-03 14:10:27 +01:00
Claude Brown
958556dc18 Ensure 'add_device' API returns indexed-array (as per documented behaviour) (#13887) 2022-04-03 14:03:03 +01:00
Santiago Z
bd1b0d1929 Stylize the word .env in documentation (#13889) 2022-04-03 14:01:41 +01:00
Andy Norwood
5c53f2984f Added Cisco Err-Disable interface event trap handler (#13855)
* Add Cisco Err Disable Mib

* Add new trap handler class

* Add ErrDisabled event handler

* Add ErrDisalbed event test

* remove unused line

* no ifindex message change

* Update unknown ifIndex message

* Add bad IfIndex test

* update description text

* style fixes

* change param to True for toString

* Add return type to test function

* style fix

* remove toString() and explode()

* remove unused line
2022-04-01 21:02:51 +01:00
geg347
ef12e5f980 Added Basic authentication capability to Alertmanager Transport (#13867)
* Adding Basic authentication capability to Alertmanager's Transport

* Fix PHPStan linting error

* Fix StyleCI error

* Fix StyleCI error part 2
2022-03-31 21:45:44 +01:00
Mark Jeffery
ac11177beb Fix for PFSense state table removals field (#13863) 2022-03-31 15:50:14 +02:00
Lucas Dousse
427438a08f remove fixed size for vendor column (#13881)
* remove fix size for column mac adresse

* remove fix size for column mac adresse in port arp tab
2022-03-31 15:43:29 +02:00
Neil Lathwood
d2ef957fa8 Added support for Dell PowerVault ME4024 (#13883) 2022-03-31 15:41:52 +02:00
Tony Murray
6214157e9b Docs, fix Linux SNMP example only listening on ::1 (#13882) 2022-03-30 22:24:21 +01:00
dependabot[bot]
1dde13a9aa Bump guzzlehttp/psr7 from 2.1.0 to 2.2.1 (#13879)
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.1.0...2.2.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 09:55:12 +02:00
lucalo72
43232f30e2 Add support for Riello NetMan 204 (#13878)
Added support to Riello device oid .1.3.6.1.4.1.5491.314 NetMan 204
2022-03-29 18:31:40 +02:00
Fehler12
cc7345d54a Fix usw flex switch hardware detection (#13877)
* Fixeed Hardware and Versiondetection for US-8 and USW-Switches with Version 5

It seems that the same model and same firmware version respond with different SNMP-records, depending on Hardware revision. This should be more general

* removed "linux" from version string in some cases

Changed regex for better version isolation and updated test data

* Update edgeswitch.yaml

Corrected the edgeswitch Test-Version detection. It seems that there are 4 cases :(:

USW GigaBit Ethernet Switch, firmware 5.76.7.13442
US-8, 5.76.7.13442, Linux 3.6.5
USW-Flex 5.76.7.13442
EdgeSwitch 24-Port 250W, 1.0.1.4720839, Linux 3.6.5-f4a26ed5

* Removed false change. Changed 8XP test data

Removed false change. Changed 8XP test data

* ' -> "

' -> "
2022-03-27 22:50:20 +02:00
ottorei
51a8646825 Bump jpgraph version to 4 (#13875)
* Bump jpgraph version to 4

* Update composer lock-file
2022-03-26 11:48:02 +01:00
Fehler12
9785522d13 Added Polycom Lens SNMP support. (#13876)
Added Polycom Lens SNMP support.
2022-03-25 23:54:06 +01:00
Stefano Sasso
e7205b4527 Add support for VyOS on Rancid conf (#13874) 2022-03-24 23:14:48 +01:00
Jellyfrog
4df7968d81 Fix SQL injection in get-host-dependencies (#13868)
Thanks to raf at TNP Consultants for reporting it
2022-03-23 21:39:24 -05:00
dependabot[bot]
09f3e9a1bc Bump minimist from 1.2.5 to 1.2.6 (#13872)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 22:37:03 +01:00
dependabot[bot]
280c66ab0d Bump node-forge from 1.2.1 to 1.3.0 (#13869)
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 10:47:36 -05:00
Neil Lathwood
9c127bfd4f Fixed the top port errors widget returning bits graphs instead (#13860) 2022-03-20 20:26:08 -05:00
manonfgoo
8ad389f161 Script that describes how to migrate traffic bills from observium. (#13757)
* Add  Traffic_bills.md

This script describes how to migrate traffic bills from observium to librenms.

* pretty print mysql and some cosmetics 

uppercase SQL Keywords
remove double spaces
2022-03-19 09:30:29 -05:00
PipoCanaja
69c1fde4c9 McAfee Proxy Sensor name update (#13853)
* fix RRD descriptions

* more

* FixTests
2022-03-18 14:19:48 +01:00
Tony Murray
22209732dd Bump version to 22.3.0 22.3.0 2022-03-17 23:00:10 -05:00
Tony Murray
3de9df54bd Changelog for 22.3.0 2022-03-17 23:00:09 -05:00
Santiago Z
9a71f6d02e Position the buttons in the center on user preferences page (#13802)
* [WebUI] Position the buttons in the center

* Update preferences.blade.php

* Position the buttons in the center on user preferences page

* Position the buttons in the center on user preferences page

* Aligning with the form

* It is not necessary
2022-03-17 22:58:01 -05:00
ospfbgp
a8025240d3 Update voss.yaml (#13857)
Extreme changed the name on universal hardware(5520, 5420, 5320) when running VOSS 8.6 software or greater to FabricEngine for universal hardware only.  This change removed VOSS in system description and added the word FabricEngine.  So previous a switch with sysDescr of 5520-24X-VOSS became  5520-24X-FabricEngine.

General Info :

        SysDescr     : 5520-24X-FabricEngine (8.6.0.0)
        SysName      : 5520X-Traffic-VSP
        SysUpTime    : 0 day(s), 15:59:25
        SysContact   : http://www.extremenetworks.com/contact/
        SysLocation  : some location
2022-03-17 15:18:52 +01:00
MrXermon
40ff020433 Fixed #13851. (#13852) 2022-03-15 22:36:48 +01:00
Tony Murray
8df92a5f2b API: device_add support display field (#13846)
* API: device_add support display field
remove legacy code path
update docs
A few improvements to the new code too

* some fixes, port_association_mode was not available

* hand version -> snmpver translation
2022-03-15 06:54:02 -05:00
Neil Lathwood
369617ffa1 Fixed displaying hostname in create bill when port is passed (#13830) 2022-03-14 23:38:59 +00:00
geg347
9036fd53b4 Added extra dynamic values alerttransport alertmanager (#13828)
* Add extra dynamic values to Alert transport for Alertmanager

* Add description to explain how extra dynamic values for Alertmanager works in the WebUI

* Add _ in dynamic label name + fix continuous-itegration error

* Fix continuous-itegration error part 2

* Updating AlertManager docs with explanation of how dynamic variables works
2022-03-14 21:39:00 +00:00
PipoCanaja
c28cb759aa Added WLD version 2 device support (#13849) 2022-03-14 21:33:10 +00:00
eskyuu
c13975524c Fix an issue with the APC current discovery (#13837)
* Fix an issue with the APC current discovery

* Formatting fixes

* Formatting fixes

* Added test data for APC PDU sensors
2022-03-13 22:55:08 +01:00
Gene Dela Rosa
85b19ce99e Add configuration support for IPMIv2 Kg key (#13845)
* Add support for IPMIv2 Kg Key in device settings

Some devices require that the Kg key be specified. An example would be a server of mine, a Cisco C220 M3. 

Otherwise, it would error out with `Error: Unable to establish IPMI v2 / RMCP+ session`. 

With verbose output enabled, the connection attempt would stop at `RAKP 4 message has invalid integrity check value`.

* Add Kg key support in Poller

* Sanitize Kg key from debug output

* Added Kg key support for discovery process

And it seems to work like a charm. New fields, such as fan tachometers, were added in automatically.

* Applying StyleCI changes
2022-03-13 22:51:55 +01:00
geg347
a7019bf8f1 Add generic PSU status failed alert rule template (#13821)
* Add Juniper PSU status failed alert rule template

* Converting Juniper PSU failed default alert into a more generic one (Thanks ottorei)
2022-03-13 11:23:04 -05:00
Tony Murray
379627243a Remove addHost from ModuleTestHelper (#13847) 2022-03-12 21:53:40 -06:00
Tony Murray
1bfd411995 New device:add code (#13842)
* New device:add code
pre-requisite for updating other code paths
includes option to set display name
separate validation code from device creation

* remove duplicate community and v3 creds

* style fixes

* some lint fixes

* fix phpstan

* Exception cleanup
improved messages and translations

* port association mode to enum
well, pseudo enum

* defaults and cleanups

* fixed/improved validation messages

* fix tests

* fix stupid ide refactor mistake

* lint fixes
2022-03-12 16:14:32 -06:00
Tony Murray
6d3bf03074 Display Name in availability map (#13841)
* Display Name option in availability map widget

* fix availability map page and shortDisplayName
2022-03-12 16:14:09 -06:00
Tony Murray
964cdfbbc3 Rewrite agent packages parsing code (#13840)
* Rewrite agent packages parsing code
but less crazy

* fixes

* remove commented code

* alphabetical

* Less code duplication

* fix style
2022-03-12 14:39:58 -06:00
Tony Murray
19e0ad604a PHP8 phpstan fix (#13843) 2022-03-11 10:38:31 -06:00
Charly Forot
e280ea1c8d [new OS] Alpine OptoElectronics TDCM-EDFA support (#13825)
* add alpine optoelectronics mibs for tcdm-edfa

* add alpine optoelectronics logo

* add alpine optoelectronics icon

* add inital detection

* add yaml discovery file

* improve yaml discovery for webUI

* rename os to alpineoe

* rename files

* replace svg logos by png

* add success tests

* Revert "replace svg logos by png"

This reverts commit 71f3dacef6.

* Revert "Revert "replace svg logos by png""

This reverts commit cd4f4cf5e0.

* Revert "add success tests"

This reverts commit 27bb3a96e4.

* add success tests with right icon

* Remove sysDecr not necessary for discovery
2022-03-11 09:48:30 +01:00