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