PIFIA is a collection of files and conventions to get your servers look at themselves and act if they see something wrong (trying to fix it, telling you, or both). To make this easy to handle, there is a file to be included in your objects.conf file (with #include <pifia.conf>, yes). A pifia.conf file looks like this (yes, usual disclaimers about content updating apply):
###############################################
# PIFIA (PICA Framework for Integrated Alarms #
###############################################
group pifia {
# Scheduler executable
file scheduler {
path = '<#$picabin#>/scheduler';
source = 'alarms/scheduler';
perms = '755';
vars {
# Where to send mail notifications
notifymail = 'kuko@ulpgc.es,zoso@ulpgc.es';
# How to send mail notifications
mailcmd = '/usr/sbin/sendmail $notifymail';
# Where to send pager (or sms) notifications
notifypager = 'kukom@airtel.net';
# How to send pager notifications
pagercmd = '/usr/sbin/sendmail $notifypager';
#pagercmd = 'cat';
}
}
# Cron file
file pifia.cron {
path = '/etc/cron.d/pifia.cron';
source = 'alarms/pifia.cron';
perms = '644';
}
# PIFIA lib (Perl package)
file pifia.pm {
path = '/usr/local/lib/site_perl/pifia.pm';
source = 'alarms/pifia.pm';
perms = '644';
}
# README file (forces the creation of the persitence files dir, so leave it
# here)
file README {
path = '<#$picaalarms#>/persistence/README';
source = 'alarms/README';
perms = '644';
}
}