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