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