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