]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
Ignore /etc/apache2/conf.d/ressource-limits
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70
71 [Attributes]
72 ##
73 ## for these files, only changes in permissions and ownership are checked
74 ##
75 file=/etc/mtab
76 file=/etc/ssh_random_seed
77 file=/etc/asound.conf
78 file=/etc/resolv.conf
79 file=/etc/localtime
80 file=/etc/ioctl.save
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
84 file=/etc/adjtime
85 file=/etc/lvm/.cache
86 file=/etc/lvm/cache
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
91 file=/etc/exim4/bsmtp
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
93 file=/etc/bind
94 file=/etc/bind/named.conf.acl
95 file=/etc/bind/named.conf.options
96 file=/etc/bind/named.conf.local
97 file=/etc/bind/geodns/named.conf.geo
98 file=/etc/bind/geodns/recvconf.files
99 file=/etc/bind/geodns/db.www.debian.org.SA
100 file=/etc/bind/geodns/db.www.debian.org.OC
101 file=/etc/bind/geodns/db.www.debian.org.NA
102 file=/etc/bind/geodns/db.www.debian.org.EU
103 file=/etc/bind/geodns/db.www.debian.org.AS
104 file=/etc/bind/geodns/db.www.debian.org.AN
105 file=/etc/bind/geodns/db.www.debian.org.AF
106 file=/etc/bind/geodns/db.www.debian.org
107 file=/etc/bind/geodns/db.security.debian.org.SA
108 file=/etc/bind/geodns/db.security.debian.org.OC
109 file=/etc/bind/geodns/db.security.debian.org.NA
110 file=/etc/bind/geodns/db.security.debian.org.EU
111 file=/etc/bind/geodns/db.security.debian.org.AS
112 file=/etc/bind/geodns/db.security.debian.org.AN
113 file=/etc/bind/geodns/db.security.debian.org.AF
114 file=/etc/bind/geodns/db.security.debian.org
115 file=/etc/bind/geodns/db.video.debconf.debian.org.EU
116 file=/etc/bind/geodns/db.video.debconf.debian.org.AF
117 file=/etc/bind/geodns/db.video.debconf.debian.org.OC
118 file=/etc/bind/geodns/db.video.debconf.debian.org.SA
119 file=/etc/bind/geodns/db.video.debconf.debian.org.AS
120 file=/etc/bind/geodns/db.video.debconf.debian.org.NA
121 file=/etc/bind/geodns/db.video.debconf.debian.org.AN
122 file=/etc/bind/geodns/db.video.debconf.debian.org
123 <% end -%>
124
125
126 #
127 # There are files in /etc that might change, thus changing the directory
128 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
129 #
130 file=/etc
131 file=/etc/ssh
132 file=/etc/network/run
133 file=/etc/bind/zones
134 file=/etc/spamassassin/sa-update-keys
135
136 # These are the directories for the files we handle with puppet
137 file=/etc/apache2/conf.d
138 file=/etc/samhain
139 file=/etc/munin
140 file=/etc/exim4
141 file=/etc/exim4/ssl
142 file=/etc/apt
143 file=/etc/apt/apt.conf.d
144 file=/etc/apt/sources.list.d
145 file=/etc/default
146 file=/etc/logrotate.d
147 file=/etc/nagios
148 file=/etc/nagios/nrpe.d
149 file=/etc/nagios/obsolete-packages-ignore.d
150 file=/etc/bind/geodns
151 <%= extradir=""
152 case fqdn 
153 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
154 file=/etc/puppet"
155 else extradir="file=/etc/puppet"
156 end
157 extradir
158 %>
159 file=/etc/cron.d
160 file=/usr/lib/nagios/plugins
161 file=/usr/sbin
162 file=/etc/monit
163 file=/etc/monit/monit.d
164 file=/etc/pam.d
165 file=/etc/sysctl.d
166 file=/etc/syslog-ng
167
168
169 [LogFiles]
170 ##
171 ## for these files, changes in signature, timestamps, and size are ignored 
172 ##
173 file=/var/run/utmp
174 file=/etc/motd
175
176
177
178 #####################################################################
179 #
180 # This would be the proper syntax for parts that should only be
181 #    included for certain hosts.
182 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
183 #    result still has the proper syntax for the config file.
184 # You may have any number of @HOSTNAME/@end brackets.
185 # HOSTNAME should be the fully qualified 'official' name 
186 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
187 #    No IP number - except if samhain cannot determine the 
188 #    fully qualified hostname.
189 #
190 # @HOSTNAME
191 # file=/foo/bar
192 # @end
193 #
194 # These are two examples for conditional inclusion/exclusion
195 # of a machine based on the output from 'uname -srm'
196 #
197 # $Linux:2.*.7:i666
198 # file=/foo/bar3
199 # $end
200 #
201 # !$Linux:2.*.7:i686
202 # file=/foo/bar2
203 # $end
204 #
205 #####################################################################
206
207 [GrowingLogFiles]
208 ##
209 ## for these files, changes in signature, timestamps, and increase in size
210 ##                  are ignored 
211 ##
212 file=/var/log/warn
213 file=/var/log/messages
214 file=/var/log/wtmp
215 file=/var/log/faillog
216 file=/var/log/auth.log
217 file=/var/log/daemon.log
218 file=/var/log/user.log
219 file=/var/log/kern.log
220 file=/var/log/syslog
221
222
223 [IgnoreAll]
224 ##
225 ## for these files, no modifications are reported
226 ##
227 ## This file might be created or removed by the system sometimes.
228 ##
229 file=/etc/resolv.conf.pcmcia.save
230 file=/etc/nologin
231 file=/etc/postfix/debian.db
232 file=/etc/postfix/debian
233 file=/etc/ssh/ssh_known_hosts
234 file=/etc/ssh/ssh-rsa-shadow
235 file=/var/lib/misc/ssh-rsa-shadow
236 file=/etc/.da-backup.trace
237 file=/etc/postfix/debianhosts
238 file=/etc/postfix/debianhosts.db
239 file=/etc/blkid.tab
240 file=/etc/blkid.tab.old
241 file=/etc/resolv.conf.dhclient-new
242
243 # We handle these files with puppet - please to not be bothering us
244 file=/etc/timezone
245 file=/etc/motd.tail
246 file=/etc/samhain/samhainrc
247 file=/etc/munin/munin-node.conf
248 file=/etc/userdir-ldap.confc
249 file=/etc/exim4/blacklist
250 file=/etc/exim4/host_blacklist
251 file=/etc/exim4/callout_users
252 file=/etc/exim4/exim4.conf
253 file=/etc/exim4/grey_users
254 file=/etc/exim4/helo-check
255 file=/etc/exim4/locals
256 file=/etc/exim4/localusers
257 file=/etc/exim4/manualroute
258 file=/etc/exim4/rbllist
259 file=/etc/exim4/rcpthosts
260 file=/etc/exim4/rhsbllist
261 file=/etc/exim4/virtualdomains
262 file=/etc/exim4/whitelist
263 file=/etc/exim4/local-auto.conf
264 file=/etc/exim4/local-settings.conf
265 file=/etc/exim4/ssl/ca.crt
266 file=/etc/exim4/ssl/ca.crl
267 file=/etc/exim4/ssl/thishost.crt
268 file=/etc/exim4/ssl/thishost.key
269 file=/etc/ssh/ssh_config
270 file=/etc/ssh/sshd_config
271 <%=
272 out=""
273 if not nodeinfo['heavy_exim'].empty?
274   out = '
275 file=/etc/exim4/surbl_whitelist.txt
276 file=/etc/exim4/exim_surbl.pl
277 file=/etc/exim4/ccTLD.txt
278 file=/etc/clamav-unofficial-sigs.conf
279 file=/etc/clamav-unofficial-sigs.dsa.conf
280 '
281 end
282 out
283 %>
284 file=/etc/apache2/conf.d/ressource-limits
285 file=/etc/apt/preferences
286 file=/etc/apt/sources.list.d/volatile.list
287 file=/etc/apt/sources.list.d/security.list
288 file=/etc/apt/sources.list.d/buildd.list
289 file=/etc/apt/sources.list.d/debian.org.list
290 file=/etc/apt/sources.list.d/debian.restricted.list
291 file=/etc/apt/sources.list.d/debian.list
292 file=/etc/apt/sources.list.d/backports.org.list
293 file=/etc/apt/apt.conf.d/local-recommends
294 file=/etc/apt/apt.conf.d/local-pdiffs
295 file=/etc/puppet/puppet.conf
296 file=/etc/default/puppet
297 file=/etc/default/postgrey
298 file=/etc/logrotate.d/exim4-paniclog
299 file=/etc/logrotate.d/exim4-base
300 file=/etc/logrotate.d/syslog-ng
301 file=/etc/syslog-ng/syslog-ng.conf
302 file=/usr/sbin/dsa-update-apt-status
303 file=/usr/sbin/dsa-update-samhain-status
304 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
305 file=/etc/nagios/nrpe.d/debianorg.cfg
306 file=/etc/nagios/obsolete-packages-ignore
307 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
308 file=/usr/lib/nagios/plugins/dsa-check-packages
309 file=/usr/lib/nagios/plugins/dsa-check-soas
310 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
311 file=/usr/lib/nagios/plugins/dsa-check-samhain
312 file=/usr/lib/nagios/plugins/dsa-check-statusfile
313 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
314 file=/usr/lib/nagios/plugins/dsa-check-config
315 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
316 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
317 file=/usr/lib/nagios/plugins/dsa-check-puppet
318 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
319 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
320 file=/usr/lib/nagios/plugins/dsa-check-dabackup
321 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
322 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
323 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
324 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
325 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
326 file=/etc/sudoers
327 file=/etc/sysctl.d/mmap_min_addr.conf
328 file=/etc/pam.d/sudo
329 file=/etc/monit/monitrc
330 file=/etc/monit/monit.d/01puppet
331 file=/etc/monit/monit.d/00debian.org
332 file=/etc/cron.d/dsa-puppet-stuff
333 <%= extrafiles=""
334 case fqdn 
335 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
336 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
337 file=/etc/nagios3/puppetconf.d/auto-services.cfg
338 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
339 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
340 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
341 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
342 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
343 end
344 extrafiles
345 %>
346
347 [IgnoreNone]
348 ##
349 ## for these files, all modifications (even access time) are reported
350 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
351 ##      just to watch whether someone will access it ...
352 ##
353
354 [Prelink]
355 ##
356 ## Use for prelinked files or directories holding them
357 ##
358
359
360 [ReadOnly]
361 ##
362 ## for these files, only access time is ignored
363 ##
364 dir=/usr/bin
365 dir=/bin
366 dir=/boot
367 #
368 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
369 # so we go 3 levels deep
370 #
371 dir=3/sbin
372 dir=/usr/sbin
373 dir=/lib
374 dir=3/usr/lib
375 #
376 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
377 #        so we go 3 levels deep there too
378 #
379 dir=3/etc
380
381 # Various directories / files that may include / be SUID/SGID binaries
382 #
383 #
384 file=/usr/lib/pt_chown
385 # X11, in Debian X7 this is now a symlink
386 #dir=/usr/X11R6/bin
387 #dir=/usr/X11R6/lib/X11/xmcd/bin
388 # Apache:
389 #file=/usr/lib/apache/suexec
390 #file=/usr/lib/apache/suexec.disabled
391 # Extra directories:
392 #dir=/opt/gnome/bin
393 #dir=/opt/kde/bin
394
395 [User0]
396 [User1]
397 ## User0 and User1 are sections for files/dirs with user-definable checking
398 ## (see the manual) 
399
400
401 [EventSeverity]
402 ##
403 ## Here you can assign severities to policy violations.
404 ## If this severity exceeds the treshold of a log facility (see below),
405 ## a policy violation will be logged to that facility.
406 ##
407 ## Severity for verification failures.
408 ##
409 # SeverityReadOnly=crit
410 # SeverityLogFiles=crit
411 # SeverityGrowingLogs=crit
412 # SeverityIgnoreNone=crit
413 # SeverityAttributes=crit
414 # SeverityUser0=crit
415 # SeverityUser1=crit
416
417 # Default behaviour
418 SeverityReadOnly=crit
419 SeverityLogFiles=crit
420 SeverityGrowingLogs=warn
421 SeverityIgnoreNone=crit
422 SeverityAttributes=crit
423
424
425 ##
426 ## We have a file in IgnoreAll that might or might not be present.
427 ## Setting the severity to 'info' prevents messages about deleted/new file.
428 ##
429 # SeverityIgnoreAll=crit
430 SeverityIgnoreAll=info
431
432 ## Files : file access problems
433 # SeverityFiles=crit
434
435 ## Dirs  : directory access problems
436 # SeverityDirs=crit
437
438 ## Names : suspect (non-printable) characters in a pathname
439 # SeverityNames=crit
440
441 # Default behaviour
442 SeverityFiles=crit
443 SeverityDirs=crit
444 SeverityNames=warn
445
446
447 [Log]
448 ##
449 ## Switch on/OFF log facilities and set their threshold severity
450 ##
451 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
452 ## 'mark' is used for timestamps.
453 ##
454 ##
455 ## Use 'none' to SWITCH OFF a log facility
456 ## 
457 ## By default, everything equal to and above the threshold is logged.
458 ## The specifiers '*', '!', and '=' are interpreted as  
459 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
460 ## at least on Linux). Examples:
461 ## MailSeverity=*
462 ## MailSeverity=!warn
463 ## MailSeverity==crit
464
465 ## E-mail
466 ##
467 # MailSeverity=none
468
469 ## Console
470 ##
471 # PrintSeverity=info
472
473 ## Logfile
474 ##
475 # LogSeverity=mark
476
477 ## Syslog
478 ##
479 # SyslogSeverity=none
480
481 ## Remote server (yule)
482 ##
483 # ExportSeverity=none
484
485 ## External script or program
486 ##
487 # ExternalSeverity = none
488
489 ## Logging to a database
490 ##
491 # DatabaseSeverity = none
492
493 # Default behaviour
494 MailSeverity=crit
495 PrintSeverity=none
496 LogSeverity=info
497 SyslogSeverity=alert
498 ExportSeverity=none
499
500
501
502
503
504 #####################################################
505 #
506 # Optional modules
507 #
508 #####################################################
509
510 # [SuidCheck]
511 ##
512 ## --- Check the filesystem for SUID/SGID binaries
513 ## 
514
515 ## Switch on
516 #
517 # SuidCheckActive = yes
518
519 ## Interval for check (seconds)
520 #
521 # SuidCheckInterval = 7200
522
523 ## Alternative: crontab-like schedule
524 #
525 # SuidCheckSchedule = NULL
526  
527 ## Directory to exclude 
528 #
529 # SuidCheckExclude = NULL
530
531 ## Limit on files per second (0 == no limit)
532 #
533 # SuidCheckFps = 0
534
535 ## Alternative: yield after every file
536 #
537 # SuidCheckYield = no
538
539 ## Severity of a detection
540 #
541 # SeveritySuidCheck = crit
542
543 ## Quarantine SUID/SGID files if found
544 #
545 # SuidCheckQuarantineFiles = yes
546
547 ## Method for Quarantining files:
548 #  0 - Delete or truncate the file.
549 #  1 - Remove SUID/SGID permissions from file.
550 #  2 - Move SUID/SGID file to quarantine dir.
551 #
552 # SuidCheckQuarantineMethod = 0
553
554 ## For method 1 and 3, really delete instead of truncating
555
556 # SuidCheckQuarantineDelete = yes
557
558 # [Kernel]
559 ##
560 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
561 ##
562
563 ## Switch on/off
564 #
565 KernelCheckActive = True
566
567 ## Check interval (seconds); btw., the check is VERY fast
568 #
569 # KernelCheckInterval = 300
570
571 ## Severity
572 #
573 # SeverityKernel = crit
574
575
576 # [Utmp]
577 ##
578 ## --- Logging of login/logout events
579 ##
580
581 ## Switch on/off
582 #
583 LoginCheckActive = True
584
585 ## Severity for logins, multiple logins, logouts
586
587 # SeverityLogin=info
588 # SeverityLoginMulti=warn
589 # SeverityLogout=info
590
591 ## Interval for login/logout checks
592 #
593 # LoginCheckInterval = 300
594
595
596 # [Database]
597 ##
598 ## --- Logging to a relational database
599 ##
600
601 ## Database name
602 #
603 # SetDBName = samhain
604
605 ## Database table
606 #
607 # SetDBTable = log
608
609 ## Database user
610 #
611 # SetDBUser = samhain
612
613 ## Database password
614 #
615 # SetDBPassword = (default: none)
616
617 ## Database host
618 #
619 # SetDBHost = localhost
620
621 ## Log the server timestamp for received messages
622 #
623 # SetDBServerTstamp = True
624
625 ## Use a persistent connection
626 #
627 # UsePersistent = True
628
629 # [External]
630 ##
631 ## Interface to call external scripts/programs for logging
632 ##
633
634 ## The absolute path to the command
635 ## - Each invocation of this directive will end the definition of the
636 ##   preceding command, and start the definition of 
637 ##   an additional, new command
638 #
639 # OpenCommand = (no default)
640
641 ## Type (log or rv)
642 ## - log for log messages, srv for messages received by the server
643 #
644 # SetType = log
645
646 ## The command (full command line) to execute
647 #
648 # SetCommandLine = (no default)
649
650 ## The environment (KEY=value; repeat for more)
651 #
652 # SetEnviron = TZ=(your timezone)
653
654 ## The TIGER192 checksum (optional)
655 #
656 # SetChecksum = (no default)
657
658 ## User who runs the command
659 #
660 # SetCredentials = (default: samhain process uid)
661
662 ## Words not allowed in message
663 #
664 # SetFilterNot = (none)
665
666 ## Words required (ALL of them)
667 #
668 # SetFilterAnd = (none)
669
670 ## Words required (at least one)
671 #
672 # SetFilterOr = (none)
673
674 ## Deadtime between consecutive calls
675 #
676 # SetDeadtime = 0
677
678 ## Add default environment (HOME, PATH, SHELL)
679 #
680 # SetDefault = no
681
682
683 #####################################################
684 #
685 # Miscellaneous configuration options
686 #
687 #####################################################
688
689 [Misc]
690
691 ## whether to become a daemon process
692 ## (this is not honoured on database initialisation)
693 #
694 # Daemon = no
695 Daemon = yes
696
697 ## whether to test signature of files (init/check/none)
698 ## - if 'none', then we have to decide this on the command line -
699 #
700 # ChecksumTest = none
701 ChecksumTest=check
702
703 ## whether to drop linux capabilities that are not required
704 ## - will make a root process a 'mere mortal' in many respects
705 #
706 # UseCaps = yes
707
708 ## Set nice level (-19 to 19, see 'man nice'),
709 ## and I/O limit (kilobytes per second; 0 == off)
710 ## to reduce load on host.
711 #
712 # SetNiceLevel = 0
713 # SetIOLimit = 0
714
715 ## The version string to embed in file signature databases
716 #
717 # VersionString = NULL
718
719 ## Interval between time stamp messages
720 #
721 # SetLoopTime = 60
722 SetLoopTime = 600
723
724 ## Interval between file checks 
725 #
726 # SetFileCheckTime = 600
727 SetFileCheckTime = 7200
728
729 ## Alternative: crontab-like schedule
730 #
731 # FileCheckScheduleOne = NULL
732
733 ## Alternative: crontab-like schedule(2)
734 #
735 # FileCheckScheduleTwo = NULL
736
737 ## Report only once on modified fles 
738 ## Setting this to 'FALSE' will generate a report for any policy 
739 ## violation (old and new ones) each time the daemon checks the file system.
740 #
741 # ReportOnlyOnce = True
742
743 ## Report in full detail
744 #
745 # ReportFullDetail = False
746
747 ## Report file timestamps in local time rather than GMT
748 #
749 # UseLocalTime = No
750
751 ## The console device (can also be a file or named pipe)
752 ## - There are two console devices. Accordingly, you can use
753 ##   this directive a second time to set the second console device.
754 ##   If you have not defined the second device at compile time,
755 ##   and you don't want to use it, then:
756 ##   setting it to /dev/null is less effective than just leaving
757 ##   it alone (setting to /dev/null will waste time by opening
758 ##   /dev/null and writing to it)
759 #
760 # SetConsole = /dev/console
761
762 ## Activate the SysV IPC message queue
763 #
764 # MessageQueueActive = False
765
766
767 ## If false, skip reverse lookup when connecting to a host known 
768 ## by name rather than IP address (i.e. trust the DNS)
769 #
770 # SetReverseLookup = True
771
772 ## --- E-Mail ---
773
774 # Only highest-level (alert) reports will be mailed immediately,
775 # others will be queued. Here you can define, when the queue will
776 # be flushed (Note: the queue is automatically flushed after
777 # completing a file check).
778 #
779 SetMailTime = 86400
780
781 ## Maximum number of mails to queue
782 #
783 SetMailNum = 10
784
785 ## Recipient (max. 8)
786 #
787 SetMailAddress=samhain-reports@debian.org
788
789 ## Mail relay (IP address)
790 <%=
791 out=""
792 if not nodeinfo['smarthost'].empty?
793   out = '
794 SetMailRelay = localhost
795 '
796 else
797 out = '
798 SetMailRelay = master.debian.org
799 '
800 end
801 out
802 %>
803 ## Custom subject format
804 #
805 MailSubject = [Samhain at %H] %T: %S
806
807 ## --- end E-Mail ---
808
809 ## Path to the prelink executable
810 #
811 # SetPrelinkPath = /usr/sbin/prelink
812
813 ## TIGER192 checksum of the prelink executable
814 #
815 # SetPrelinkChecksum = (no default)
816
817
818 ## Path to the executable. If set, will be checksummed after startup
819 ## and before exit.
820 #
821 # SamhainPath = (no default)
822
823
824 ## The IP address of the log server
825 #
826 # SetLogServer = (default: compiled-in)
827
828 ## The IP address of the time server
829 #
830 # SetTimeServer = (default: compiled-in)
831
832 ## Trusted Users (comma delimited list of user names) 
833 #
834 # TrustedUser = (no default; this adds to the compiled-in list)
835
836 ## Path to the file signature database
837 #
838 # SetDatabasePath = (default: compiled-in)
839
840 ## Path to the log file
841 #
842 # SetLogfilePath = (default: compiled-in)
843
844 ## Path to the PID file
845 #
846 # SetLockPath = (default: compiled-in)
847
848
849 ## The digest/checksum/hash algorithm
850 #
851 # DigestAlgo = TIGER192
852
853
854 ## Custom format for message header. 
855 ## CAREFUL if you use XML logfile format.
856 ##
857 ## %S severity
858 ## %T timestamp
859 ## %C class
860 ##
861 ## %F source file
862 ## %L source line
863 #
864 # MessageHeader="%S %T "
865
866
867 ## Don't log path to config/database file on startup
868 #
869 # HideSetup = False
870
871 ## The syslog facility, if you log to syslog
872 #
873 # SyslogFacility = LOG_AUTHPRIV
874 SyslogFacility=LOG_LOCAL2
875
876 ## The message authentication method
877 ## - If you change this, you *must* change it
878 ##   on client *and* server
879 #
880 # MACType = HMAC-TIGER
881
882
883 ## everything below is ignored
884 [EOF]
885
886 #####################################################################
887 # This would be the proper syntax for parts that should only be
888 #    included for certain hosts.
889 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
890 #    result still has the proper syntax for the config file.
891 # You may have any number of @HOSTNAME/@end brackets.
892 # HOSTNAME should be the fully qualified 'official' name 
893 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
894 #    No IP number - except if samhain cannot determine the 
895 #    fully qualified hostname.
896 #
897 # @HOSTNAME
898 # file=/foo/bar
899 # @end
900 #
901 # These are two examples for conditional inclusion/exclusion
902 # of a machine based on the output from 'uname -srm'
903 # $Linux:2.*.7:i666
904 # file=/foo/bar3
905 # $end
906 #
907 # !$Linux:2.*.7:i686
908 # file=/foo/bar2
909 # $end
910 #
911 #####################################################################