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