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