* add timeout for widget in widget settings
* forgot get saved timeout and added default value for all widgets
* code correction
* move refresh to json
* forgot remove old code
* added refresh validate rule
* fix empty refresh for exist widgets
* fix empty settings for new widgets
* Set refresh in base
Update refresh at runtime (doesn't interrupt previous timeout)
* Update WidgetSettingsController.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* add freshtomato snmprec file
add freshtomato snmprec , generated from latest freshtomato release
* add freshtomato test data
add freshtomato test data, generated from latest freshtomato release
* add freshtomato os definition
add freshtomato os definition
* freshtomato discovery for version, hardware model
freshtomato discovery for version, hardware model
* update freshtomato.snmprec, extra oid
update freshtomato.snmprec, extra oid now showing since going to 1.68, from over night update.
LibreNMS can now show version and hardware (router model) correctly.
* update freshtomato.json, hardware is now populated
update freshtomato.json, hardware is now populated, since going to 1.68, definition discovery is working correctly it seems.
* Regenerate without lo ignored.
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add simple tag-parsing of colors and highlights in alerts
* Fixing a few CodeClimate-issues
* Fixing a missing ;
* Fixing some more typography
* Whitespace...
* Deduplicate code
* Missing ; - too much python lately...
* Fix end of function name
* Simplifying sendAlert a bit
* Keeping up with PR#12141
* ; again...
* this->sendAlert...
We force the strings returned from the "unbound-control stats" command to "lower case", avoiding problems with future changes to the unbound output in other variables.
All code must contain lower case letters in the $ unbound [] variable
* Do not remove users with API tokens
* Use eloquent
* Fix missing namespace and convert fully to Eloquent
* fix bug in purge
Co-authored-by: Tony Murray <murraytony@gmail.com>
* 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
* new index in alert_log table
* codefix1
* codefix2
* added second index
* codefix
* Apply suggestions from code review
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
* Drop redundant sensors from eaton-mgeups. Prefer RFC1628-sensors. Keep stuff unique to the mge MIB.
Add snmprecs for two new variants.
* Rewrote these jsons files after the previous change. All tests passing.
* Mistake in ddmDiagnosisRXPower OID
Mistake in ddmDiagnosisRXPower OID (its same as ddmDiagnosisBias)
Right OID is .1.3.6.1.4.1.40418.7.100.30.1.1.17
* Update snr.json
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Make sure 1st admin user creation does not fail with error 500
* Update MakeUserController.php
just init it to the default fail message
* Update MakeUserController.php
* just struggling with the github editor :P
Co-authored-by: Tony Murray <murraytony@gmail.com>