36 Commits

Author SHA1 Message Date
Tony Murray
d2193f76ca feature: allow scripts to be run from any working directory (#4437)
* feature: allow validate.php to be run from any working directory

* remove redundant realpath() call

* re-add realpath() to remove symbolic links

* realpath() isn't needed...

* chdir() in all php scripts in ./ and ./scripts/

* update-sql.php clearly is not used, as it was broken.

* Change some scripts to executable
Remove extra chdir() call in snmp-scan.php

* Missed console-ui.php
Kind of fixed console-ui.php help output

* Re-add newline
2016-09-14 16:53:04 +01:00
Tony Murray
abc6a5b799 PSR-2 Final cleanup (#4247)
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
Tony Murray
218c4e6b52 Do not delete directories, only files. 2016-08-01 13:24:25 -05:00
laf
b0d05ad149 Added -print to find + description of why we have deleted files 2016-08-01 18:31:19 +01:00
laf
f73385999e Updated rrd_purge to echo removed files/folders 2016-08-01 15:08:57 +01:00
laf
5a7a606abd Updated as per pr comments 2016-07-31 23:39:45 +01:00
laf
318c9cd2b0 Added cleanup for old RRD files 2016-07-30 16:57:09 +01:00
laf
c14577db34 Added alert log purge setting - defaults to 365 2016-05-02 19:06:51 +00:00
Neil Lathwood
5566163eeb Merge pull request #3156 from richardlawley/billing-perf-2 2016-03-15 21:00:44 +00:00
Richard
dc0f695796 Add optional cleanup task for old bill_data 2016-03-07 18:31:12 +00:00
laf
d85a9f688f Removed innodb check from daily and updated validate to warn 2016-03-03 20:52:23 +00:00
Christopher Smith
73c409dcdc check if auto-updates are enabled before checking innodb settings (if they are disabled, this would still throw an alert to say innodb needs adjusting even though they arent wanted) 2016-02-23 09:10:56 +11:00
Daniel Preussker
c11cf53658 Merge pull request #2815 from laf/notifications-update
Added local rss file + tidied up locations of notifications and callback
2016-01-20 20:01:07 +00:00
laf
a45259377b Added local rss file + tidied up locations of notifications and callback 2016-01-19 21:50:00 +00:00
laf
57c802cd4e Updated active directory auth to support dashboards 2016-01-17 15:26:35 +00:00
Eldon Koyle
ceb3c2264c Fix daily.php not deleting device_perf entries
Add -d option to daily.php to show SQL and fix bug where daily.php does
not delete device_perf entries because a unix timestamp (integer) can't
be cast to a datetime.

MariaDB [librenms]> select * from device_perf where timestamp < UNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL '7' DAY));
Empty set, 1 warning (1.20 sec)

MariaDB [librenms]> show warnings;
+---------+------+----------------------------------------+
| Level   | Code | Message                                |
+---------+------+----------------------------------------+
| Warning | 1292 | Incorrect datetime value: '1451944875' |
+---------+------+----------------------------------------+
1 row in set (0.00 sec)

MariaDB [librenms]>
2016-01-11 14:58:40 -07: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
b2034cb329 Added master and release update-channels 2015-11-22 17:06:21 +00:00
Neil Lathwood
47e035d4fd Merge pull request #2004 from QuxLabs/qux-issue-5
Added notification system
2015-11-21 14:24:42 +00:00
Daniel Preussker
0ff693bd0e Added notifications poller,page,schema,display 2015-11-21 11:22:59 +00:00
laf
2e791308f1 Centralised innodb buffer check and added to validate 2015-11-19 10:20:56 +00:00
Rosiak
3065781118 Add innodb config example to daily
Fix issue-2400
2015-11-06 17:48:50 +01:00
f0o
c83b9a374e Fix and reformat daily.{sh,php} 2015-08-03 17:14:33 +00:00
laf
36f0ca84c1 And G 2015-07-29 22:08:52 +00:00
laf
ee22c6606a Added missing 1024! 2015-07-29 22:08:09 +00:00
laf
03f0de5d76 Added ability to detect if innodb buffers are overused 2015-07-29 22:03:25 +00:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +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
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
70bb420fe7 Use consistent spacing 2014-10-25 08:40:42 +10:00
Neil Lathwood
6ccc951480 Update daily.php 2014-10-11 09:32:37 +01:00
Neil Lathwood
cdf199a2dd Updated the syslog loop to break when no more data can be deleted 2014-10-07 19:28:18 +00:00
laf
8e00599d2a Added authlog purge + improved efficiency of clearing out large syslog tables 2014-10-02 01:37:43 +01: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