aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic/daily
Commit message (Collapse)AuthorAgeFilesLines
* - Change the threshold from 'running next scrub the <value+1>th day after theAlexander Leidinger2010-08-251-3/+3
| | | | | | | | | | | last one' to 'running next scrub the <value>th day after the last one'. - Improve wording. Requested by: jhell <jhell@DataIX.net> MFC after: 1 week Notes: svn path=/head/; revision=211800
* Connect the new script 490.status-pkg-changes (see r210863)Oliver Fromme2010-08-101-0/+4
| | | | | | | | | | to the build, so it gets actually installed. Approved by: des (mentor) MFC after: 17 days Notes: svn path=/head/; revision=211142
* Add a daily script to the periodic framework that reportsOliver Fromme2010-08-051-0/+43
| | | | | | | | | | | | | | | | | | | | | changes to the package database, i.e. any packages that have been added, updated or deleted in the past 24 hours. The format is intentionally simple and concise. That information is particularly useful on servers that are maintained by multiple administrators. When someone adds, updates or deletes a package, the others will see it in the daily periodic output. This script is disabled by default. PR: conf/113913 Submitted by: olli Approved by: des (mentor) MFC after: 3 weeks Notes: svn path=/head/; revision=210863
* - add the zfs scrub scriptAlexander Leidinger2010-06-171-1/+5
| | | | | | | | | | - move the zfs status script into the MK_ZFS conditional to respect WITHOUT_ZFS Noticed by: Andrzej Tobola <ato@iem.pw.edu.pl> Notes: svn path=/head/; revision=209250
* Add a periodic zfs scrub script.Alexander Leidinger2010-06-151-0/+86
| | | | | | | | | | | | | | | | | | | | Features: - configurable amount of days between scrubs (default value or per pool) - do not scrub directly after pool creation (respects the configured number of days between scrubs) - do not scrub if a scrub is in progress - tells how to see the status of the scrub - tells how many days since the last scrub if it skips the scrubbing - warns if a non-existent pool is specified explicitely (default: no pools specified -> all currently imported pools are handled) - runs late in the periodic run to not slow down the other periodic daily scripts Discussed on: fs@ Notes: svn path=/head/; revision=209195
* Remove trailing white space. No functional changes.Doug Barton2010-05-142-2/+2
| | | | Notes: svn path=/head/; revision=208060
* Silence warning printed by getfsspec(3) when /etc/fstab does not existColin Percival2009-09-281-0/+3
| | | | | | | | | | | | | | fstab: /etc/fstab:0: No such file or directory and from dump(8) when setfsent(3) fails due to /etc/fstab not existing: DUMP: Can't open /etc/fstab for dump table information: No such... This makes daily and security periodic runs somewhat cleaner in jails which lack /etc/fstab files. MFC after: 1 month Notes: svn path=/head/; revision=197552
* Rather than using both -prune (which requires directory-first tree traversal)Brian Somers2009-06-021-4/+4
| | | | | | | | | | | | | | | and -delete (which implies depth-first traversal), avoid using -delete in favour of -execdir. This has a side-effect of not removing directories that contain files, even if we delete all of those files, but IMHO that's a better option than specifying all possible local filesystem types in this script. PR: 122811 MFC after: 3 weeks Notes: svn path=/head/; revision=193302
* Update this script so that it handles different ruleset failuresBrian Somers2009-05-281-8/+12
| | | | | | | | | | | | | differently. The output now shows the ruleset and shortens to slightly different text (using $daily_status_mail_rejects_shorten), but it should be more descriptive. PR: 35018 Inspired by: Mikhail Teterin - mi at aldan dot algebra dot com MFC after: 3 weeks Notes: svn path=/head/; revision=192970
* add new build knobs and jigger some existing controls to improveSam Leffler2008-09-211-12/+37
| | | | | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month Notes: svn path=/head/; revision=183242
* A new configuration variable, daily_status_mail_rejects_shorten, allowsDiomidis Spinellis2008-01-081-1/+8
| | | | | | | | | | | the rejected mail reports to tally the rejects per blacklist without providing details about individual sender hosts. The default configuration keeps the reports in their original form. MFC after: 1 week Notes: svn path=/head/; revision=175153
* o Install 480.status-ntpd.Maxim Konovalov2007-05-141-0/+1
| | | | | | | Pointed out by: Henrik Brix Anders Notes: svn path=/head/; revision=169556
* o Add a script to check ntpd(8) state. Default is off.Maxim Konovalov2007-05-131-0/+28
| | | | | | | | | PR: conf/112604 Submitted by: Oliver Fromme MFC after: 1 month Notes: svn path=/head/; revision=169517
* Add ZFS periodic scripts that monitors status of ZFS pools.Pawel Jakub Dawidek2007-04-062-0/+37
| | | | | | | Submitted by: des Notes: svn path=/head/; revision=168412
* o Add missed $start variable in the grep statement back.Maxim Konovalov2006-06-111-1/+1
| | | | | | | | | PR: conf/96658 Submitted by: James Snow MFC after: 1 week Notes: svn path=/head/; revision=159525
* Fix output and exit status when daily_mailq_shorten is set to YESMatteo Riondato2006-03-081-6/+8
| | | | | | | | PR: conf/93472 MFC after: 3 Notes: svn path=/head/; revision=156435
* Add periodic scripts that check the status of graid3(8), gstripe(8)Christian Brueffer2006-03-024-0/+105
| | | | | | | | | and gconcat(8) devices, respectively. Approved by: rwatson (mentor) Notes: svn path=/head/; revision=156215
* When there are no interesting information in output, exit with 0.Matteo Riondato2006-02-071-3/+3
| | | | | | | | | | PR: conf/92299 Submitted by: Petr Rehor <prehor@gmail.com> Approved by: philip (mentor) MFC after: 3 days Notes: svn path=/head/; revision=155422
* o Add 406.status-gmirror, sort.Maxim Konovalov2006-01-211-1/+2
| | | | | | | Submitted by: brueffer Notes: svn path=/head/; revision=154652
* Add a daily script to show the status of gmirror(8) devices.Garrett Wollman2006-01-131-0/+34
| | | | Notes: svn path=/head/; revision=154304
* Update the test for failed zone transfers to reflect BIND 9.3.1 semanticsDoug Barton2005-11-221-10/+8
| | | | | | | | | | | | | Simplify the shell scripting a bit, and remove a useless grep | sed The problem was pointed out by the PR, and I used part of the solution suggested there, but the semantics changed again for 9.2.x -> 9.3.x. PR: conf/74228 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> Notes: svn path=/head/; revision=152697
* Sed doesn't grok '[ \t]' -- it doesn't expand the \t :(Brian Somers2005-01-121-1/+1
| | | | | | | | | | As there are no tabs in maillog, reduce the expression so that only spaces are used. Problem raised by: Leif Neland root at internet dot dk Notes: svn path=/head/; revision=140096
* Oops, the < in arg1=< is optional - treat it as such!Brian Somers2005-01-111-1/+1
| | | | Notes: svn path=/head/; revision=140059
* Adjust the mail reject output so that it gives an abreviated reason for theBrian Somers2005-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reject. For example: Checking for rejected mail hosts: 48 getherbalnow.info (451... resolve) 46 absorb.com (451... resolve) 4 tgmart01.codns.com (553... exist) 3 kali.com.cn (451... resolve) 2 genie.com (451... resolve) 1 zv.qy (553... exist) 1 zd.hinet.hr (553... exist) .... The bit in parenthesis is the reject code and the last word on the line - enough to give the admin a better chance of seeing real problems (hopefully!). While I'm here, remove the "<" at the start of rejects coming from "from" addresses without a name@ part. I had to rewrite the patch given by the submitter as this script has been sed'ified (used to be perl) and I think the reject code is useful.... PR: 17377 Idea from: root at ns dot internet dot dk MFC after: 7 days Notes: svn path=/head/; revision=140029
* Collapse "fgrep | egrep | sed" down to a single sed.Brian Somers2005-01-111-3/+1
| | | | | | | | | This also trims extraneous commas from domain names. MFC after: 7 days Notes: svn path=/head/; revision=140028
* Don't remove empty dirs if their names are in $daily_clean_tmps_ignoreAndrey A. Chernov2004-02-281-3/+6
| | | | Notes: svn path=/head/; revision=126342
* Use hoststat/purgestat instead of sendmail -bh/-bH so the calls canGregory Neil Shapiro2004-01-021-3/+3
| | | | | | | | | | | be properly mailwrapper'ed. PR: conf/60676 Submitted by: Colin Percival <cperciva@daemonology.net>, maxim MFC after: 4 days Notes: svn path=/head/; revision=124080
* Use %e in the date(1) format string to eliminate the sed(1) command.Ruslan Ermilov2003-11-072-2/+2
| | | | Notes: svn path=/head/; revision=122257
* Add status checking of ATA raid to the daily periodic scripts.Jesper Skriver2003-10-272-0/+34
| | | | Notes: svn path=/head/; revision=121620
* Remove 220.backup-distfile since it has been deleted.John Baldwin2003-04-011-1/+0
| | | | | | | | Reported by: mdodd Pointy hat to: jhb Notes: svn path=/head/; revision=112956
* Complete removal of 320.rdist by removing its entry from periodic.conf andJohn Baldwin2003-04-011-39/+0
| | | | | | | | | | removing the related 220.backup-distfile script and associatd periodic.conf entry. Discussed with: obrien Notes: svn path=/head/; revision=112949
* 320.rdist is OBE as we don't have rdist in the base system any more.David E. O'Brien2003-03-291-1/+0
| | | | Notes: svn path=/head/; revision=112771
* This is OBE as we don't have rdist in the base system any longer.David E. O'Brien2003-03-291-31/+0
| | | | Notes: svn path=/head/; revision=112770
* Do not do manually what sendmail(8) can do better automatically.Garrett Wollman2003-01-081-25/+4
| | | | | | | | Tell sendmail to clean up its own host status cache. The error condition handling could probably be done better. Notes: svn path=/head/; revision=108958
* Add support for bzip2ed log files.Stefan Eßer2003-01-051-1/+7
| | | | Notes: svn path=/head/; revision=108727
* Avoid using perl in the periodic & security scripts. This brings theGiorgos Keramidas2002-12-073-28/+29
| | | | | | | | | base system one step closer to being totally perl-free. Approved by: re (jhb) Notes: svn path=/head/; revision=107674
* When considering temporary files for deletion, don't examine the mtimeJoerg Wunsch2002-10-061-0/+1
| | | | | | | | | | | | and atime only, but also the ctime. Otherwise, files extracted from tar or zip archives will immediately be declared stale since they've got their mtime reset to the original mtime. Reviewed by: brian MFC after: 1 week Notes: svn path=/head/; revision=104574
* Make it work with POSIX sort (POS arg).Andrey A. Chernov2002-09-241-1/+1
| | | | | | | All old sorts understand -k too. Notes: svn path=/head/; revision=103903
* o Test and change to the correct directory, /var/spool/.hoststatJens Schweikhardt2002-08-121-8/+5
| | | | | | | | | | | o Bring if/then style in sync with /etc/rc scripts PR: conf/41570 Submitted by: Konstantin M Volevatch <cox@rosnet.ru> MFC after: 1 week Notes: svn path=/head/; revision=101723
* Install scripts via FILES (purposedly not via SCRIPTS that wouldRuslan Ermilov2002-07-181-1/+1
| | | | | | | strip the suffixes). Notes: svn path=/head/; revision=100316
* Return 3 unless $daily_status_security_enable != YES.Brian Somers2002-05-171-1/+1
| | | | | | | | | Returning $? masks security output when ``periodic security'' is successful ! MFC after: 3 days Notes: svn path=/head/; revision=96804
* Fix the output when daily_status_mailq_shorten is set to YESBrian Somers2002-05-071-4/+4
| | | | | | | | | PR: 23766 Mostly submitted by: lambert@ssabsd.csw.net MFC after: 3 days Notes: svn path=/head/; revision=96160
* Handle .bz2 files created by newsyslogBrian Somers2002-04-301-0/+3
| | | | | | | | | PR: 37529 Partially submitted by: Peter Hollaubek <fifteen@inext.hu> MFC after: 1 week Notes: svn path=/head/; revision=95808
* Update mail queue related periodic scripts to account for sendmail 8.12'sGregory Neil Shapiro2002-04-102-11/+30
| | | | | | | | | | | | | | | | | | | | | | | clientmqueue (submit mail queue). The new mailq display is only active if both the old daily_status_mailq_enable is set to "YES" and the new daily_status_include_submit_mailq is set to "YES" so people who disabled 440.status-mailq won't have any surprises. Likewise, the new queue run is only active if both the old daily_queuerun_enable is set to "YES" and the new daily_submit_queuerun is set to "YES" so people who disabled 500.queuerun won't have any surprises. While I am here, remove the [ ! -d /var/spool/mqueue ] checks from both scripts as the queue directory isn't always /var/spool/mqueue for the main daemon -- it can be set to anything in the sendmail.cf file. MFC after: 1 week Notes: svn path=/head/; revision=94342
* Set rc=1 rather than 0 so that setting daily_show_success=YES masksBrian Somers2002-02-131-1/+1
| | | | | | | | | | | the output of all goes well. PR: 34825 Submitted by: Valentin Nechayev <netch@netch.kiev.ua> MFC after: 3 weeks Notes: svn path=/head/; revision=90630
* Long ago, there was just /etc/daily. Then /etc/security was split outCrist J. Clark2001-12-071-18/+11
| | | | | | | | | | | | | of /etc/daily. Some time later, /etc/daily became a set of periodic(8) scripts. Now, this evolution continues, and /etc/security has been broken into periodic(8) scripts to make local customization easier and more maintainable. Reviewed by: ru Approved by: ru Notes: svn path=/head/; revision=87514
* Make sure the security check output includes a To: line in theMike Silbersack2001-11-281-1/+1
| | | | | | | same way the daily run output does. Notes: svn path=/head/; revision=87030
* After further discussion on -CURRENT, some people (jhb) do not likeCrist J. Clark2001-11-141-2/+2
| | | | | | | | | | | | the idea of not masking passwords on comments in case the administrator comments out an entry without clearing the password. Instead completely ignore comments (since they have no security impact) when doing the diff of the old and new passwd file. Suggested by: rwatson Notes: svn path=/head/; revision=86344
* No need to hide stuff in the $FreeBSD$ tag or in other comments like,Crist J. Clark2001-11-111-1/+1
| | | | | | | | | | | | | Backup passwd and group files: 1c1 < # $FreeBSD:(password):09:07 peter Exp $ --- > # $FreeBSD:(password):27:16 ache Exp $ MFC after: 1 week Notes: svn path=/head/; revision=86257
* UUCP removal Phase III.Kris Kennaway2001-10-013-79/+0
| | | | Notes: svn path=/head/; revision=84253