pjd
ba5bb48e56
Add ZFS periodic scripts that monitors status of ZFS pools.
...
Submitted by: des
2007-04-06 02:33:06 +00:00
maxim
0fee9bcf8f
o Add missed $start variable in the grep statement back.
...
PR: conf/96658
Submitted by: James Snow
MFC after: 1 week
2006-06-11 20:39:12 +00:00
matteo
b19c8d2fcc
Fix output and exit status when daily_mailq_shorten is set to YES
...
PR: conf/93472
MFC after: 3
2006-03-08 17:26:53 +00:00
brueffer
04a5ecea57
Add periodic scripts that check the status of graid3(8), gstripe(8)
...
and gconcat(8) devices, respectively.
Approved by: rwatson (mentor)
2006-03-02 14:44:19 +00:00
matteo
603c4fe5f3
When there are no interesting information in output, exit with 0.
...
PR: conf/92299
Submitted by: Petr Rehor <prehor@gmail.com>
Approved by: philip (mentor)
MFC after: 3 days
2006-02-07 08:21:06 +00:00
maxim
96735772f3
o Add 406.status-gmirror, sort.
...
Submitted by: brueffer
2006-01-21 20:16:30 +00:00
wollman
c637bc1255
Add a daily script to show the status of gmirror(8) devices.
2006-01-13 18:07:52 +00:00
dougb
3066b17d9e
Update the test for failed zone transfers to reflect BIND 9.3.1 semantics
...
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>
2005-11-22 22:24:27 +00:00
brian
274b15afc6
Sed doesn't grok '[ \t]' -- it doesn't expand the \t :(
...
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
2005-01-12 01:31:21 +00:00
brian
0df4d3761b
Oops, the < in arg1=< is optional - treat it as such!
2005-01-11 10:54:38 +00:00
brian
845566c7e8
Adjust the mail reject output so that it gives an abreviated reason for the
...
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
2005-01-11 02:08:53 +00:00
brian
db72d98ac1
Collapse "fgrep | egrep | sed" down to a single sed.
...
This also trims extraneous commas from domain names.
MFC after: 7 days
2005-01-11 01:47:44 +00:00
ache
3821a70e28
Don't remove empty dirs if their names are in $daily_clean_tmps_ignore
2004-02-28 04:58:40 +00:00
gshapiro
88f59471ab
Use hoststat/purgestat instead of sendmail -bh/-bH so the calls can
...
be properly mailwrapper'ed.
PR: conf/60676
Submitted by: Colin Percival <cperciva@daemonology.net>, maxim
MFC after: 4 days
2004-01-02 18:50:22 +00:00
ru
cb67907c73
Use %e in the date(1) format string to eliminate the sed(1) command.
2003-11-07 21:55:35 +00:00
jesper
41ec55c865
Add status checking of ATA raid to the daily periodic scripts.
2003-10-27 20:14:53 +00:00
jhb
699d82d7fc
Remove 220.backup-distfile since it has been deleted.
...
Reported by: mdodd
Pointy hat to: jhb
2003-04-01 20:32:01 +00:00
jhb
4f51bb11c1
Complete removal of 320.rdist by removing its entry from periodic.conf and
...
removing the related 220.backup-distfile script and associatd periodic.conf
entry.
Discussed with: obrien
2003-04-01 17:45:27 +00:00
obrien
0c8ca48d87
320.rdist is OBE as we don't have rdist in the base system any more.
2003-03-29 03:28:28 +00:00
obrien
1a1209f873
This is OBE as we don't have rdist in the base system any longer.
2003-03-29 03:27:49 +00:00
wollman
62de1738a4
Do not do manually what sendmail(8) can do better automatically.
...
Tell sendmail to clean up its own host status cache.
The error condition handling could probably be done better.
2003-01-08 18:51:45 +00:00
se
6f580108ee
Add support for bzip2ed log files.
2003-01-05 21:32:50 +00:00
keramida
f973c892f0
Avoid using perl in the periodic & security scripts. This brings the
...
base system one step closer to being totally perl-free.
Approved by: re (jhb)
2002-12-07 23:37:44 +00:00
joerg
c654638cb1
When considering temporary files for deletion, don't examine the mtime
...
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
2002-10-06 18:48:20 +00:00
ache
ac09299ab9
Make it work with POSIX sort (POS arg).
...
All old sorts understand -k too.
2002-09-24 18:53:46 +00:00
schweikh
859c765d64
o Test and change to the correct directory, /var/spool/.hoststat
...
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
2002-08-12 11:09:01 +00:00
ru
ed13465e59
Install scripts via FILES (purposedly not via SCRIPTS that would
...
strip the suffixes).
2002-07-18 12:33:01 +00:00
brian
4068215add
Return 3 unless $daily_status_security_enable != YES.
...
Returning $? masks security output when ``periodic security'' is successful !
MFC after: 3 days
2002-05-17 11:31:45 +00:00
brian
79d9fd6c13
Fix the output when daily_status_mailq_shorten is set to YES
...
PR: 23766
Mostly submitted by: lambert@ssabsd.csw.net
MFC after: 3 days
2002-05-07 13:11:05 +00:00
brian
0e37ad70ef
Handle .bz2 files created by newsyslog
...
PR: 37529
Partially submitted by: Peter Hollaubek <fifteen@inext.hu>
MFC after: 1 week
2002-04-30 17:07:32 +00:00
gshapiro
cb7ff33241
Update mail queue related periodic scripts to account for sendmail 8.12's
...
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
2002-04-10 03:58:40 +00:00
brian
1e17be1181
Set rc=1 rather than 0 so that setting daily_show_success=YES masks
...
the output of all goes well.
PR: 34825
Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
MFC after: 3 weeks
2002-02-13 19:10:07 +00:00
cjc
ba1e7b8577
Long ago, there was just /etc/daily. Then /etc/security was split out
...
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
2001-12-07 23:57:39 +00:00
silby
d03f718884
Make sure the security check output includes a To: line in the
...
same way the daily run output does.
2001-11-28 04:07:03 +00:00
cjc
05f295d22b
After further discussion on -CURRENT, some people (jhb) do not like
...
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
2001-11-14 09:30:01 +00:00
cjc
bfc3513ef7
No need to hide stuff in the $FreeBSD$ tag or in other comments like,
...
Backup passwd and group files:
1c1
< # $FreeBSD:(password):09:07 peter Exp $
---
> # $FreeBSD:(password):27:16 ache Exp $
MFC after: 1 week
2001-11-11 07:15:19 +00:00
kris
5b604460fa
UUCP removal Phase III.
2001-10-01 06:27:44 +00:00
kris
ef052bd8a5
Run the uustat command as the uucp user, not as root.
2001-09-09 05:53:01 +00:00
brian
f3c04d92b8
Remove $daily_status_named_logs and figure out which /var/log/messages*
...
files to look an (in the same way that /etc/security does).
Don't single-quote $start, reducing it to an empty string.
MFC after: 3 days
2001-07-26 02:37:12 +00:00
brian
7fee5bd138
Don't try to remove directories unless we've emptied them first
...
Submitted by: NIIMI Satoshi <sa2c@and.or.jp>
PR: 28355
MFC after: 1 week
2001-07-19 12:08:24 +00:00
dougb
05769a88e2
Small adjustment to whitespace in output
2001-06-01 16:40:57 +00:00
ru
e7a85be33f
Remove vestiges of MFS.
2001-06-01 10:07:28 +00:00
brian
3322ac2963
Default daily_accounting_flags to -q. I thought this was a typo in the
...
originally submitted patch (oops!).
Also check for an empty $daily_accounting_save.
Submitted by: Udo Schweigert <Udo.Schweigert@cert.siemens.de>
2001-05-30 20:23:43 +00:00
brian
4358d0941f
Add $daily_accounting_save and $daily_accounting_flags
...
Submitted by: Udo Schweigert <Udo.Schweigert@cert.siemens.de>
MFC after: 2 weeks
2001-05-30 16:46:53 +00:00
dirk
0da4be9c47
Add 470.status-named.
...
Reminded by: gshapiro
2001-05-11 09:32:48 +00:00
ru
3cbad34d06
Fixed typo.
...
PR: bin/26836
Submitted by: Matthew Seaman <matthew.seaman@tornadogroup.com>
2001-04-25 12:11:54 +00:00
dirk
9af3a3e675
Check for denied zone transfers (AXFR and IXFR).
2001-04-21 22:36:30 +00:00
ache
e4a32d7040
Add 500.queuerun
2001-02-19 07:12:37 +00:00
peter
336d5fa6f8
Move the sendmail -q from cron to periodic, as suggested by a few people.
...
This has the benefit of adding a random start time element as daily
processing takes a different amount of time on different machines.
2001-02-19 02:47:42 +00:00
brian
9233b23065
Allow the output of /etc/security to be logged or mailed to different
...
users in line with ${daily,weekly,monthly}_output using a new
$daily_status_security_output variable.
PR: 24643
2001-01-30 10:24:18 +00:00