Commit Graph

45 Commits

Author SHA1 Message Date
Tony Murray
8a051aa295 fix: Fix a couple of OS cache invalidation issues (#7567)
* fix: fix a couple of OS cache invalidation issues
Fixes issues where we might be using outdated os definitions.

* use Config and fix style issue

* only pull in settings from config.php (otherwise will possibly contain populated os config)
2017-10-27 21:03:58 +01:00
Tony Murray
1cd4fcb8b1 feature: issue warning notification if php version is less than 5.6.4 (#7418)
* feature: issue warning notification if php version is less than 5.6.4
rename set_notification function in daily.sh to set_notifiable_result
print output when a daily.sh process fails

* further notifiable clarification

* Update the notification message.

* make sure to remove the notification when updates are disabled
move the notification code into the php check
2017-10-22 19:30:31 +01:00
Tony Murray
de8bcf3a6c fix: update notification for users with updates disabled (#7253)
Don't show the toast when the notification is marked as read
2017-08-29 09:32:24 -05:00
Tony Murray
0def643e09 feature: Notify about failed updates, block detectable bad updates (#7188)
* Feature: Notify about failed updates, block detectable bad updates
Ability to post notifications when the update fails.
Detect and roll back updates that will cause broken installs. (Needs testing)
Add severity to notifications, critical (2) notifications will display a toast.

This will be used for removing in-tree dependencies and raising the minimum php version.

* Improve naming a bit add phpdoc to new_notification
In case multiple notifications are created, remove them all.

* Remove notifications when update is disabled.

* update travis to use db testing

* added missing index
2017-08-26 21:35:39 +01:00
Tony Murray
3a89820646 prepare for upcoming composer changes by cleaning the vendor directory (#6986) 2017-07-21 23:21:42 +01:00
Tony Murray
41882dfd8b fix: perf_times cleanup (#6908)
* fix: perf_times cleanup

* Truncate perf_times to save some headaches
2017-06-28 21:43:19 +01:00
Jonathan Price
2186e3b79a fix: Update Shebangs and daily.sh for FreeBSD compatibility (#6413)
* Where shebangs had no flags, updated them to use /usr/bin/env for cross-platform compatibility
Updated daily.sh to support FreeBSD (su has different args, replaced with sudo when not on linux)

* Added myself to AUTHORD.md as per contributor guidelines

* Set all platforms to use sudo rather than su
Re-added missing arguments to sudo
2017-04-17 20:14:23 -05:00
Neil Lathwood
097f4ebe99 moved pdb caching (#6233) 2017-03-22 11:36:32 +00:00
Neil Lathwood
5f5dc2a854 feature: Peeringdb integration to show the Exchanges and peers for your AS' (#6178) 2017-03-22 10:17:13 +00:00
Neil Lathwood
fd93d7ef7f fix: daily.sh install path (#5152) 2016-12-12 15:00:09 +00:00
Neil Lathwood
63fc4679db feature: Added support for sending email notifications to default_contact if updating fails (#5026) 2016-12-12 14:26:17 +00:00
Tony Murray
287449510e Run daily.sh as the user set by $config['user'] (#5036) 2016-12-01 19:45:53 +00:00
Tony Murray
a0e33786fa fix: daily.sh log_dir failed when install_dir and log_dir were not set 2016-11-14 16:03:51 -06:00
Layne
768158062f refactor: daily.sh updated (#4920) 2016-11-11 07:14:57 +00:00
Neil Lathwood
126f82843e fix: Updated check to use != in daily.sh (#4916) 2016-11-01 17:57:18 +00:00
Neil Lathwood
635bc7036f Revert "Refactored and added support for $config['log_dir']" (#4911) 2016-11-01 08:53:57 +00:00
Layne
9f50559f58 refactor: Refactored and added support for $config['log_dir'] to daily.sh 2016-11-01 00:25:08 +00:00
Neil Lathwood
e1fac851f9 refactor: Update alert rules to generate sql query and store in db (#4748) 2016-10-15 00:29:55 +01:00
deutor
3691928455 fix: support for Bash version 3 in daily.sh (#4347) 2016-09-06 17:31:16 +01:00
laf
318c9cd2b0 Added cleanup for old RRD files 2016-07-30 16:57:09 +01:00
laf
b8d9ab3292 Added the logging of which version upgrading from -> to 2016-07-09 00:11:45 +01:00
laf
c14577db34 Added alert log purge setting - defaults to 365 2016-05-02 19:06:51 +00:00
Richard
dc0f695796 Add optional cleanup task for old bill_data 2016-03-07 18:31:12 +00:00
Christopher Smith
d9098d3c3c if no code is updated, do a schema update check and also a cleanup. move to a separate script call to make it easier to add more tasks if required in the future. 2016-02-23 13:38:29 +11:00
Christopher Smith
731c2eb443 check if daily.php returns 0 and only do the db clean up if it does (dont update submodules or do a schema upgrade etc) 2016-02-23 09:20:14 +11:00
Daniel Preussker
ddfdbfac4d Typo in Daily 2016-01-25 14:14:08 +00:00
laf
58d585e6fe Updated daily.sh/daily.php to support removing users that have not logged in for X days - Radius only for now 2015-12-13 16:16:39 +00:00
Daniel Preussker
10ca173f1b Don't abort logfile error
Q&A Missed this, Apologies
2015-12-10 10:04:56 +00:00
Daniel Preussker
45b6a4c558 Restructured daily.sh
Added staged update and check for distributed poller setups
2015-11-22 16:27:04 +00:00
Daniel Preussker
0ff693bd0e Added notifications poller,page,schema,display 2015-11-21 11:22:59 +00:00
Daniel Preussker
982121bb6e fixup 2015-08-03 17:19:16 +00:00
f0o
c83b9a374e Fix and reformat daily.{sh,php} 2015-08-03 17:14:33 +00:00
Job Snijders
0e473d2538 Improve daily.sh robustness 2015-07-26 09:58:19 +02:00
laf
eee2ae5be1 Added support for logging packet loss and min/max/avg response times on fping 2015-06-22 21:55:31 +01:00
Alexander Sosna
4e1c91d08e chmod 0755 to scripts 2015-04-28 23:04:08 +02:00
laf
7a302c2763 Some last minute changes 2015-04-06 20:47:28 +01:00
Toni Cunyat
5b6ae9f988 Add option to clean old perf_times table entries #341 2014-11-03 18:25:45 +01:00
Paul Gear
2d4217995e Merge pull request #309 from laf/issue-laf-55
Removed --no-edit for git pull, not a valid command before git 1.7.10
2014-10-28 08:44:13 +10:00
Paul Gear
1a5544116f Use $() consistently; fail if dirname or cd fails 2014-10-25 08:41:53 +10:00
laf
aa5d7f488c Fixes the fact daily.sh does not run outside of the install directory 2014-10-23 21:39:16 +01:00
Neil Lathwood
f67a47c91a Removed --no-edit for git pull, not a valid command 2014-10-07 23:34:22 +00:00
laf
8e00599d2a Added authlog purge + improved efficiency of clearing out large syslog tables 2014-10-02 01:37:43 +01:00
laf
20beb5ec34 Added updating of sql database when daily updates are run. Also added a small doc showing how to manually update 2014-03-29 20:06:26 +00:00
laf
630023aef3 Updated dail schedule to remove old syslog and eventlog entries 2014-03-18 14:13:27 +00:00
Tyler Christiansen
ab5feaee2f add framework for new cron features; add ability to update librenms daily 2013-11-03 22:16:01 -08:00