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