* Update Rancid.md
The current installation manual suggests running php-fpm as user librenms. adding user www-data to group rancid won't help in making the rancid config files available for librenms.
* Update Rancid.md
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Update Documentation
Most work in Graylog and SNMP
Fixed many code tags, spelling and wording.
Added SNMP PowerShell example.
* Update SNMP-Configuration-Examples.md
Fix TOC brackets
* Update Distributed-Poller.md
Clarify discovery when using dispatcher service. The limitation of running one discovery per server is only for cron based polling.
* Update Distributed-Poller.md
Co-authored-by: Neil Lathwood <gh+n@laf.io>
When using the original docs for the raspberry.sh script all I got in the SNMP output was `nsExtendOutLine."raspberry".1 = sudo: No such file or directory`
this can be fixed by using the complete path to the sudo command.
* Update Services.md
I updated the services page for a few of the following reasons:
* Fix placement of certain info that was better placed elsewhere.
* Adjust the documentation to inculde how to install during setup step.
* Fixed a few lines for a better feel to the wording.
* Update Services.md
Dispatcher Service notice.
* Update Services.md
dispatcher -> dispatch
* Update Syslog.md
Added instructions for rsyslog version 8
* Update Syslog.md
Not familiar with the markup, but looking at the source file for the page Jellyfrog linked it looks correct for tabs. Does the Git preview not render them?
* Update Syslog.md
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* 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
* 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
* 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>
* 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
* 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
Better validation when config.php does not exist
Update docs and quote password
only populate legacy vars in config_to_json
drop .travis.yml config copy
remove credentials from config.php.default
Check for existance of .env instead of config.php in python scripts
legacy credential cleanup
tiny cleanups
consistent env for artisan server and artisan dusk
* Update Proxmox Process
On latest version of Debian (9.1 and later) snmpd run ad Debian-snmp user.
In visudo change snmp to Debian-snmp
* fix typo
Co-authored-by: SourceDoctor <sourcehhdoctor@gmail.com>
* Allow agent to run against windows os
* Display processes from windows check_mk agent
* Replace tabs with spaces
* Fix indent
* Add documentation for windows agent