1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
|
########################################################
#
# Configuration file for objects definition in PICA
#
# $Id: objects.conf.sample,v 1.1.2.3 2002/03/28 18:06:40 cvs Exp $
#
# Miguel Armas <kuko@ulpgc.es>
# Esteban Machado <zoso@demiurgo.org>
#
########################################################
## Should accept entries like the following
defaults {
uid = 0;
gid = 0;
perms = 644;
verbatim = 0;
vars {
## MANDATORY - Remind period (in seconds) for alarm notification
remind = "60*60*6";
}
}
file motd {
path = '/etc/motd';
source = 'services/Info/motd';
}
##############
# NTP Config #
##############
group NTP {
file ntp.conf {
path = '/etc/ntp.conf';
source = 'services/NTP/ntp_conf.cfg';
}
file step-tickers {
path = '/etc/ntp/step-tickers';
source = 'services/NTP/step-tickers.cfg';
}
##
## Documentation for this Service
##
#if (ingroup('doc'))
file README.ntp {
path = '<#$docdir#>/services/NTP/README';
source = 'services/NTP/README';
}
file Estructura_NTP.txt {
path = '<#$docdir#>/services/NTP/Estructura_NTP.txt';
source = 'services/NTP/Estructura_NTP.txt';
}
file ntp.conf.sample {
path = '<#$docdir#>/services/NTP/ntp.conf.sample';
source = 'services/NTP/ntp_conf.cfg';
}
#fi
}
##############
# DNS Config #
##############
#if (ingroup('dnsservers'))
group DNS {
# In all hosts
file named.conf {
path = '/etc/named.conf';
source = "services/DNS/named_conf.cfg";
}
##
## Documentation for this Service
##
# if (ingroup('doc'))
file README.dns {
path = '<#$docdir#>/services/DNS/README';
source = 'services/DNS/README';
}
file Estructura_DNS.txt {
path = '<#$docdir#>/services/DNS/Estructura_DNS.txt';
source = 'services/DNS/Estructura_DNS.txt';
}
file named.conf.sample {
path = '<#$docdir#>/services/DNS/named.conf.sample';
source = 'services/DNS/named_conf.cfg';
}
# fi
}
#fi
#################################
# Mail servers config (PostFix) #
#################################
group Correo {
## Main config file
file main.cf {
path = '/etc/postfix/main.cf';
source = 'services/Correo/main_cf.cfg';
}
### Postfix tables
## Transport table
file transport {
path = '/etc/postfix/transport';
source = 'services/Correo/transport.cfg';
}
## Aliases
file aliases {
path = '/etc/postfix/aliases';
source = 'services/Correo/aliases.cfg';
}
## Relaydomains
file relaydomains {
path = '/etc/postfix/relaydomains';
source = 'services/Correo/relaydomains.cfg';
}
## Localdomains
file localdomains {
path = '/etc/postfix/localdomains';
source = 'services/Correo/localdomains.cfg';
}
## Headerchecks
file headerchecks {
path = '/etc/postfix/headerchecks';
source = 'services/Correo/headerchecks.cfg';
}
## Virtual
file virtual {
path = '/etc/postfix/virtual';
source = 'services/Correo/virtual.cfg';
}
## Script postupdate
## After every modification of any postfix script, execute this
file postupdate {
perms = '755';
path = '/root/bin/postupdate';
source = 'services/Correo/postupdate.cfg';
}
##
## Statistics only in the main servers
##
#if (ingroup('mailmaster'))
file pflogsumm {
verbatim = 1;
perms = '755';
path = '/root/bin/pflogsumm.pl';
source = 'services/Correo/pflogsumm.pl';
}
#fi
##
## Documentation for this Service
##
#if (ingroup('doc'))
file README.correo {
path = '<#$docdir#>/services/Correo/README';
source = 'services/Correo/README';
}
file README.postfix {
path = '<#$docdir#>/services/Correo/README.postfix';
source = 'services/Correo/README.postfix';
}
file Estructura_Mail.txt {
path = '<#$docdir#>/services/Correo/Estructura_Mail.txt';
source = 'services/Correo/Estructura_Mail.txt';
}
## Postfix main config file sample
file main.cf.sample {
path = '<#$docdir#>/services/Correo/main.cf';
source = 'services/Correo/main_cf.cfg';
}
#fi
}
#include <pifia.conf>
## Check sync between DNS servers
alarm DNSChkUrgent {
priority = 'Urgent';
source = 'DNSChk';
perms = '755';
}
## Check Important Processes
alarm ProcChk {
priority = 'Emergency';
source = 'ProcChk';
perms = '755';
uses {
file Procs.obj {
path = '<#$picaobj#>/Procs.obj';
source = 'alarms/Procs.obj';
perms = '644';
}
}
}
## Check Important File Permissions
alarm PermsChk {
priority = 'Emergency';
source = 'PermsChk';
perms = '755';
uses {
file Perms.obj {
path = '<#$picaobj#>/Perms.obj';
source = 'alarms/Perms.obj';
perms = '644';
}
}
}
## Check disk usage
alarm DfChk {
priority = 'Emergency';
source = 'DfChk';
perms = '755';
vars {
threshold = '85'; # Filesystem Usage threshold
}
}
# alarm test
alarm testalarm {
priority = 'Warning';
source = 'test';
# Parameters for alarm actual call
calling-convention = '-m $checkvar';
# Variable to interpolate in calling-convention
vars {
checkvar = "checkvar's value";
}
}
|