| 1 | rodolico | 1 | # Configuration file for process_sysinfo system
 | 
        
           |  |  | 2 | #
 | 
        
           |  |  | 3 | #
 | 
        
           |  |  | 4 | #
 | 
        
           |  |  | 5 |   | 
        
           |  |  | 6 | # where are our libraries?
 | 
        
           |  |  | 7 |   | 
        
           |  |  | 8 | $LIBRARIES = '/home/rodolico/wip/dd_tools/web/computer_asset_manager/modules/sysinfo/cli_tools';
 | 
        
           |  |  | 9 | $DSN = 'DBI:mysql:camp';
 | 
        
           |  |  | 10 | $DB_USER = 'test';
 | 
        
           |  |  | 11 | $DB_PASS = 'test';
 | 
        
           |  |  | 12 |   | 
        
           |  |  | 13 | # only required if reports are sent from process_sysinfo. Not the norm.
 | 
        
           |  |  | 14 | $iMailResults = 0; # if 0 (false), ignore following variables
 | 
        
           |  |  | 15 | $mailTo = 'rod@dailydata.net';
 | 
        
           |  |  | 16 | $mailCC = '';
 | 
        
           |  |  | 17 | $mailBCC = '';
 | 
        
           |  |  | 18 | $mailServer = 'mail.dailydata.net';
 | 
        
           |  |  | 19 | $mailServerPort = 25;
 | 
        
           |  |  | 20 | $mailFrom = 'sysinfo@dailydata.net';
 | 
        
           |  |  | 21 | $SENDMAIL = '/usr/sbin/sendmail -tU';
 | 
        
           |  |  | 22 |   | 
        
           |  |  | 23 | # where postProcess puts processed reports by default
 | 
        
           |  |  | 24 | $saveDir='/home/rodolico/wip/dd_tools/web/computer_asset_manager/modules/backup/cli_tools/save';
 | 
        
           |  |  | 25 | # Tagets to search for incoming messages, if not passed on the command line
 | 
        
           |  |  | 26 | $sourceDir='/home/rodolico/wip/dd_tools/web/computer_asset_manager/modules/backup/cli_tools/testdata';
 | 
        
           |  |  | 27 | # a temporary location
 | 
        
           |  |  | 28 | $tempDir = '/home/rodolico/wip/dd_tools/web/computer_asset_manager/modules/backup/cli_tools/tmp';
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 | # this sub is placed in the configuration file as it is the most likely piece of code
 | 
        
           |  |  | 31 | # the sysadmin will want to modify.
 | 
        
           |  |  | 32 | # after a report has been modified, this routine will "post process" it.
 | 
        
           |  |  | 33 | # The default action is to move it to the directory defined in $saveDir above, however
 | 
        
           |  |  | 34 | # feel free to modify this to your needs. You might add it to a tgz, move it to a separate
 | 
        
           |  |  | 35 | # directory or, if you're feeling brave, just delete it.
 | 
        
           |  |  | 36 | sub postProcess {
 | 
        
           |  |  | 37 |    my $filename = shift;
 | 
        
           |  |  | 38 |    `mv '$filename' '$saveDir'`;
 | 
        
           |  |  | 39 | }
 | 
        
           |  |  | 40 |   | 
        
           |  |  | 41 | $MISSING_BACKUP_MAILTO='root';
 | 
        
           |  |  | 42 |   | 
        
           |  |  | 43 | # name of each server we assume we will be backing up. A report will be 
 | 
        
           |  |  | 44 | # created at the end of processing showing which ones were not backed up
 | 
        
           |  |  | 45 | %backupDomains = (
 | 
        
           |  |  | 46 | 	'server1.example.com'             => 0,
 | 
        
           |  |  | 47 | 	'server2.example.com'             => 0,
 | 
        
           |  |  | 48 | 	'server3.example.com'             => 0,
 | 
        
           |  |  | 49 | 	'server4.example.com'             => 0,
 | 
        
           |  |  | 50 | 	);
 |