Commit Graph

1819 Commits

Author SHA1 Message Date
Jellyfrog
782db09bd4
Add docs for Supermicro Superdoctor (#12200) 2020-10-08 12:55:06 +02:00
Tony Murray
1e4702fa4f
Support multiple daily process locking backends with distributed polling (#11896)
* Implement locks in the file cache

* Replace custom locks

* implement restore lock
Used when re-hydrating

* remove legacy use statements

* Add class descriptions

* Fix style

* Default to database cache driver

* missed cache_locks table
prevent chicken-egg issue

* style fixes

* Remove custom file lock implementation

* missed items from file cache

* Update schema definition
hmm, other schema noise must be from manual modification as this is generated from a freshly migrated db.

* require predis, it is pure python, so no harm in adding

* and set predis as the default client
2020-10-07 07:36:35 -05:00
Tony Murray
0d47a74cd2
Updated linux snmpd.conf example (#12195)
remove hard-coded oids an use the defaults
The Unix.php code detects both
2020-10-06 07:37:46 -05:00
Tony Murray
210be6266e
Yaml support to translate sysObjectID to get hardware (#12187)
* Yaml support to translate sysObjectID to get hardware

* restore ironware behavior

* ...
2020-10-05 13:50:28 +02:00
Hans Erasmus
2bd4f146b5
Accommodate upcoming php 7.3 change (#12180)
* Accommodate upcoming php 7.3 change

An announcement on Twitter as well as [this](https://github.com/librenms/librenms/pull/12118) says future release will depend on PHP7.3 minimum. CentOS 8 ships with 7.2 by default. Also, the composer package's availability via `dnf` was dropped somewhere by CentOS project, so one needs to install it "manually" nowadays. I have yet to find a different solution than the one showed here. Any inputs welcome.

* Removed the dnf list command

* Made manual composer install the fallback method

* Fixed minimum PHP version.
2020-10-04 23:46:29 +02:00
Tony Murray
4f4ebacef9
Suggest Fast Ping before 1 Minute Polling (#12179)
* Update 1-Minute-Polling.md

* Update 1-Minute-Polling.md
2020-10-03 18:33:59 +02:00
Avinash Kumar
ff4dcd5678
icecast doc correction (#12183) 2020-10-03 18:26:41 +02:00
Dan Baker
f2746f526c
Corrected information about mib_dir (#12174)
Corrected information about mib_dir. An array is not handled by discovery.php -- only one directory may be specified.
2020-10-01 00:30:44 +02:00
Dag Bakke
7bd0ee4260
Update Example-Hardware-Setup.md (#12170)
Additional example hw.
2020-09-30 10:12:41 +02:00
Tony Murray
551e95a2e0
Docs: don't index changelogs (#12166)
* Docs: don't index changelogs

* Exclude 2019 changelog
2020-09-30 10:11:32 +02:00
Adam Bishop
41ed0537b4
Fix midnight poller data loss (#11582)
* Handle more signals

* Flush buffers before exiting process
This ensures log messages aren't lost

* Restart process before jobs have finished
If there is a very log running job it can cause service restart to
take over 5 minutes.

We tweak the order of things to make sure that running processes
continue, but nothing more is scheduled.

The worst case impact is that a pollling/discovery job gets
scheduled twice, but this should not be a big issue - this should
only occur at most once per day.

* Remove python 3.8 feature

* Ensure that processes from the previous invocation are reaped

* Correct typo's

* Attach subprocess descriptors to /dev/null

Occasionally, PHP would throw a fit and crash when its stdout went
away. To avoid this, we attach stdout to devnull.

This means we lost output of daily.sh - but this is already recorded
in $LOGDIR/daily.log

* Don't immediately schedule long running jobs

To avoid the situation where the maintenance reload happens or a sighup,
then a second long running job is immediately started, we wait
(`last_[poll/discovery]_timetaken` * 1.25) seconds before scheduling
any jobs.

* Add `psutil` to requirements

* Add support for "systemctl reload" to the unit files

* Add a fallback for systems that don't have psutil

* Reduce CPU load when psutil is not installed

* Don't avoid double polling by extending the timeout

This shouldn't happen due to locks

* Remove fallback option

* Remove extra variable

* Fix issue introduced during rebase

* Fix issue introduced when fixing issue introduced during rebase

* Make psutil optional
2020-09-29 23:50:40 -05:00
Tony Murray
a3c7426a32 Changelog for 1.68 2020-09-29 22:16:04 -05:00
Tony Murray
e944456943
Use lnms dev:check instead of pre-commit.php (#12149)
* Remove pre-commit.php references WIP

* remove pre-commit.php references
2020-09-24 12:32:03 +02:00
SourceDoctor
9ade71d20c
API Calls to list Device Outages, calculated Availability (#12103)
* API Calls to list Device Outages, calculated Availability

* switch to eloquent

* style correction
2020-09-24 00:21:08 +02:00
SourceDoctor
f3f67e834f
Update Application Docs for Unbound (#12151) 2020-09-23 23:18:06 +02:00
PipoCanaja
0e0e80c827
More eventlogs for snmptraps (#12112)
* Allow detailed trap display and inform user about snmptrapd misconfiguration

* Documentation update

* Documentation update

* Documentation update

* CodeClimate

* CodeClimate

* ChangeRequest PR

* Fix tests

* config_definitions

translation

doc

* styleci

* lnms translation generate after npm-install
2020-09-23 17:00:02 +02:00
Tony Murray
c207f1dbcf
Docs: ARP endpoint can search by MAC (#12129) 2020-09-21 19:22:04 -05:00
Hans Erasmus
9559b09f5e
Update Oxidized docs (#12116) 2020-09-21 23:07:23 +02:00
Shao Yu-Lung (Allen)
8ec9183df5
Doc - Begins with / Ends with, SQL example is reversed (#12113) 2020-09-21 08:11:22 +02:00
Avinash Kumar
78fa539628
Icecast, Opensips and Voip monitor Application (#12070)
* Icecast added

* Opensips added

* Voip Monitor added

* Icecast documentation

Icecast corrections

* Opensips documentation added

Opensips corrections

* Voip monitor documentation added

Voip monitor corrections

* Icecast corrections

* Opensips corrections

* Voip monitor corrections

* test data added for icecast

* test data added for opensips
2020-09-18 16:49:20 +02:00
Tony Murray
941037e44e
Convert OS discovery to new style (#12099)
* terra

* airos

* port cisco os polling
old wwan polling was broken and deprecated anyway

* enterasys

* Brother, a few changes

* AW Plus

* Fabos

* set expected test data

* 3com

* Adva FSP150

* advantech

* airos-af

* aix

* akcp

* allied

* allworx and missed mibs

* anyos

* fixup some zyxel shared stuffs
zywall graph polling

* aos

* apc

* apex

* apsoluteos

* fix copyrights

* arris

* arris

* aruba-instant

* ArubaOS

* Ascom

* asuswrt-merlin, ats

* audiocodes

* avocent

* avtech

* barracuda

* binox

* boss

* canonprinter

* cdata

* ceraos

* ciena-waveserver

* fix 3com

* fix airos

* fix brother yaml?

* fix aos more

* fix and improve apc

* fix arista test data

* yaml discovery (basic)

* cimc

* mib not used

* remove old discovery file

* ciscosat

* ciscosb fixes + improvements

* comware

* ctm

* cumulus

* cxr-ts

* cyberoam-utm

* cyberpower

* dahua-nvr

* dasan-nos

* datadomain

* dcn-software and fallback oids

* dd-wrt

* dell-laser

* d*

* e* and location

* forti, post processing, oid coalescing

* Freebsd array of sysDescr regex

* finish f*

* g*

* h*

* i* WIP

* i*

* Junos

* j*

* k*

* unix refactor previous to yaml more
inject $device

* fixes

* fixes

* l*

* m*

* n* ability to set other fields in regex
tnmsne polling to eloquent

* o*

* p*

* q* + bonus calix

* r*

* s* WIP

* s*

* t*

* u*

* v*
rework vrp to yaml (hybrid)

* w*

* x*

* z*

* a* easy no-data

* fixes

* style fixes

* missed ApexPlus

* fix signature

* Add missing location data

* rename getDevice functions

* add new cisco ftd data

* update docs

* revert sill snmp format

* fix snmp options

* update for new smartax test data

* rebase dsm

* fix voss
2020-09-18 15:12:07 +02:00
Adam Bishop
bbdb1a2a5d
Rewrite smokeping script to be an lnms command (#11585)
* Rewrite smokeping script to be an lnms command

* Add a default number of probes for smokeping

* Formatting fixes

* Refactor to simplify a couple of methods

* Fix a name collision when using more than 60 threads

* Simplify

* First pass at documentation

A few climate fixes too.

I'm a little dubious about the + LibreNMS fix - it could be included
in /etc/smokeping/config if it is really needed, but it sounds like
(looking at git blame) it's needed for if the script generates a broken
configuration file.

I'm thinking we should just not generate broken config.

* Improve testability and add some tests

* Load laravel to make translations available

* Second pass at documentation

* Fix brace

* Extend the device factory to include the type

Also adds a device group fake I created before I realised I didn't need it

* Mimic gen_smokeping.php a little more closely

* Update tests to properly verify old and new behaviour against each other

* Replace gen_smokeping with a wrapper

* Don't double whitespace

Render does this automatically.
Explicitly order by hostname too.

* Make faker less likely to generate duplicates

I tried adding a unique constraint here, but it didn't have the
intended effect.

Extending the hostname like this seems to work fine - I tried
generating 10 million hosts and got no duplicates, compared to
duplicates appearing with as few as 100 hosts without this
 change.

A true fix would be to add an 'fqdn' fake upstream.

* Make the tests more robust

* Assorted bug fixes

* Style corrections

* Handle 'generic' devices

* Fix an issue that came up during rebase

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-18 00:04:54 -05:00
Tony Murray
fde6ef5f3f
fix skip_value_lt plurality confusion (#12056)
* fix skip_value_lt plurality confusion

* Update atenpdu.yaml
2020-09-12 23:26:20 +02:00
SourceDoctor
dbd2b06b80
MySQL Documentation Update (#12085) 2020-09-11 13:09:29 +02:00
Nathan Lam
7f0b483580
rrdcache OPTS > BASE_OPTIONS (#12074)
Not sure if it's `OPTS` in older versions of `rrdcached`, but it's 100% `BASE_OPTIONS` for 1.7.0. `OPTS` was broken for me for a while.
2020-09-09 10:21:31 +02:00
Teun Vink
19cb90439c
remove broken link (#12059)
the entire https://blog.librenms.org site seems to be broken, can't find a new location for this blog post, given the age I assume it has been removed.
2020-09-04 11:42:47 +02:00
Jellyfrog
5f0bbd08dc Changelog for 1.67 2020-09-03 13:17:53 +02:00
TheGreatDoc
6495a9284b
Update Smokeping.md (#12048) 2020-09-02 15:21:40 +02:00
Jellyfrog
a06bf05192
Rewrite the docs for OS discovery (#12047)
To reflect it's now part of discovery instead of polling
2020-09-02 15:18:08 +02:00
Jellyfrog
2a795c069b
Rewrite the test data capture section (#12046) 2020-09-01 13:00:44 +02:00
Hans Erasmus
94fae616a4
Update Fast Ping Check docs (#12024) 2020-08-25 08:14:44 -05:00
Raphael Dannecker
73b7636c9f
Matrix alert transport (#12018)
* Added Matrix as alert-channel (Feature request #4927)

* formatting

* Dokumentation of matrix-transport

* Matrix Server-URL

* Formatting
2020-08-20 12:04:17 +02:00
Hans Erasmus
ca9dee9df2
Update Applications Docs for Apache Agent (#12009)
* Update Applications.md

Updated docs to resemble updated apache snmp extend script which is now compatible with python3.

* Updated document as requested

* Updated to reflect newest library deps 

Changed the agent code to use newer libraries as suggested by SourceDoctor. Docs now reflects the same change.

* Fixed typo

* Small update to trigger stuck tests
2020-08-18 20:37:04 +02:00
sprich96
70ab23de9d
Correct API route for multiport graph (#12015)
Removed incorrectly placed 'devices' in multiport bits graph API route
2020-08-18 10:54:45 +02:00
Hans Erasmus
22026eb11e
Fixed header anchors (#12002)
Fixed header anchors not working. Fixed according to suggestions made [here](https://gist.github.com/asabaylus/3071099)
2020-08-06 18:10:56 +02:00
Jarod2801
2c90169156
Update Install-LibreNMS.md (#12001)
Composer missing in Centos 7 and 8 docs
2020-08-06 18:09:25 +02:00
arrmo
752b3e7db3
Updated documentation and Discovery, to match recent findings (#11999)
from review of Asuswrt-Merlin PR.
2020-08-06 13:45:33 +02:00
arrmo
54e5dc3df7
Wireless support for Asuswrt-Merlin (the same as Openwrt) (#11964) 2020-08-05 21:24:55 +02:00
Jellyfrog
f992b7dc9f Remove duplicate changelog entries 2020-08-04 14:40:10 +02:00
Jellyfrog
3b60c48431 Update changelog to reflect changes 2020-08-04 14:40:10 +02:00
Tony Murray
573b9e7d4b Changelog for 1.66 2020-07-30 00:27:37 -05:00
Hans Erasmus
fe79029494
Update RRDCached.md (#11967)
Tested the steps for CentOS 7 on CentOS8 today, worked for me?
2020-07-28 23:09:55 +02:00
Tony Murray
020c5fd7e1
Remove legacy code and fix missing device graphs (#11950)
* removing $graphs global

* remove unused things

* fix some additional graphs

* Fix graphs persisting too soon

* correct name for poller module performance graph

* only one type of graph is used here
2020-07-23 09:57:22 -05:00
Anael Mobilia
0b5a9106d8
Update Smokeping.md (#11956)
* Update Smokeping.md

Add smokeping URL path on the config example

* fix quote
2020-07-22 16:01:14 +02:00
arrmo
8899ad6d5a
Initial Release, wireless sensor support for Openwrt (#11768)
* Initial Release, wireless sensor support for Openwrt

* Extend Openwrt support, add more sensors

* Add documentation for Openwrt Wireless Sensor support

* Moved location of Openwrt.md

* Update openwrt.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-09 16:13:58 -05:00
Tony Murray
be2d4a2e75 Changelog for 1.65 2020-07-03 00:50:44 -05:00
Tony Murray
d38ce9dbf3
Update FAQ.md 2020-06-30 18:28:11 -05:00
Tony Murray
71d5d29dbb Automatically change all tabs in install docs
Reduced the likelihood of a user viewing info for the wrong os.
2020-06-29 16:17:07 -05:00
Tony Murray
db5524dc09
Merge pull request #11762 from murrant/consolidate-install-doc
Update and Consolidate Install docs Ubuntu 20.04 and CentOS 8
2020-06-29 01:10:28 -05:00
Tony Murray
19402c5f66 acl is needed 2020-06-29 00:35:53 -05:00