| Line 24... | Line 24... | 
          
            | 24 | # Following are optional depending on your installation
 | 24 | # Following are optional depending on your installation
 | 
          
            | 25 | #########################################################################################
 | 25 | #########################################################################################
 | 
          
            | 26 | # if postRunScript is set, the script will be run AFTER a successful sysinfo run.
 | 26 | # if postRunScript is set, the script will be run AFTER a successful sysinfo run.
 | 
          
            | 27 | # script name is the only required parameter. All other parameters are available to the
 | 27 | # script name is the only required parameter. All other parameters are available to the
 | 
          
            | 28 | # postRunScript if it reads the configuration file.
 | 28 | # postRunScript if it reads the configuration file.
 | 
          
            | 29 | postRunScript:
 | 29 | #postRunScript:
 | 
          
            | 30 |   'script name': postrunscript.pl
 | 30 | #  'script name': postrunscript.pl
 | 
          
            | 31 |   URL: https://example.com/seedFiles
 | 31 | #  URL: https://example.com/seedFiles
 | 
          
            | 32 |   'update script': sysinfo_update
 | 32 | #  'update script': sysinfo_update
 | 
          
            | 33 |   'checksum': sysinfo_update.cksum
 | 33 | #  'checksum': sysinfo_update.cksum
 | 
          
            | 34 |    
 | 34 |    
 | 
          
            | 35 |    
 | 35 |    
 | 
          
            | 36 | # Log Actions. The default is to keep all the logs internally, then throw them away
 | 36 | # Log Actions. The default is to keep all the logs internally, then throw them away
 | 
          
            | 37 | # set this to 'log type' of syslog for the Unix system log
 | 37 | # set this to 'log type' of syslog for the Unix system log
 | 
          
            | 38 | # can also be set to log type of file, with an additional parameter of the full path
 | 38 | # can also be set to log type of file, with an additional parameter of the full path
 | 
          
            | Line 43... | Line 43... | 
          
            | 43 |   'log level': 1
 | 43 |   'log level': 1
 | 
          
            | 44 |   'log type': syslog
 | 44 |   'log type': syslog
 | 
          
            | 45 | #  'log type': file
 | 45 | #  'log type': file
 | 
          
            | 46 | #  'log path' : /tmp/sysinfo-client.log
 | 46 | #  'log path' : /tmp/sysinfo-client.log
 | 
          
            | 47 | # location of modules to be used for gathering data
 | 47 | # location of modules to be used for gathering data
 | 
          
            | 48 | moduleDirs:
 | 48 | #moduleDirs:
 | 
          
            | 49 |   - /usr/local/opt/camp/sysinfo-client/modules
 | 49 | #  - /usr/local/opt/camp/sysinfo-client/modules
 | 
          
            | 50 |   - /usr/local/etc/camp/sysinfo-client/modules
 | 50 | #  - /usr/local/etc/camp/sysinfo-client/modules
 | 
          
            | 51 | # location of scripts used to get the results to the server that processes them
 | 51 | # location of scripts used to get the results to the server that processes them
 | 
          
            | 52 | scriptDirs:
 | 52 | #scriptDirs:
 | 
          
            | 53 |   - /usr/local/opt/camp/sysinfo-client/scripts
 | 53 | #  - /usr/local/opt/camp/sysinfo-client/scripts
 | 
          
            | 54 |   - /usr/local/etc/camp/sysinfo-client/scripts
 | 54 | #  - /usr/local/etc/camp/sysinfo-client/scripts
 | 
          
            | 55 | # transprots assumed to be in one of the ScriptDirs. The keys are dependant on what the
 | 55 | # transprots assumed to be in one of the ScriptDirs. The keys are dependant on what the
 | 
          
            | 56 | # transport requires
 | 56 | # transport requires
 | 
          
            | 57 | transports:
 | 57 | #transports:
 | 
          
            | 58 |   '0':
 | 58 | #  '0':
 | 
          
            | 59 |     name: 'HTTP Upload'
 | 59 | #    name: 'HTTP Upload'
 | 
          
            | 60 |     URL: http://campserver.example.com/modules/sysinfo/upload_sysinfo_report.php
 | 60 | #    URL: http://campserver.example.com/modules/sysinfo/upload_sysinfo_report.php
 | 
          
            | 61 |     'key for client': client
 | 61 | #    'key for client': client
 | 
          
            | 62 |     'key for date': report_date
 | 62 | #    'key for date': report_date
 | 
          
            | 63 |     'key for hostname': hostname
 | 63 | #    'key for hostname': hostname
 | 
          
            | 64 |     'key for report': report
 | 64 | #    'key for report': report
 | 
          
            | 65 |     'key for serial number': serialnumber
 | 65 | #    'key for serial number': serialnumber
 | 
          
            | 66 |     sendScript: upload_http
 | 66 | #    sendScript: upload_http
 | 
          
            | 67 |   '1':
 | 67 | #  '1':
 | 
          
            | 68 |     name: SendEmail
 | 68 | #    name: SendEmail
 | 
          
            | 69 |     logFile: /tmp/mail.log
 | 69 | #    logFile: /tmp/mail.log
 | 
          
            | 70 |     mailBCC: ''
 | 70 | #    mailBCC: ''
 | 
          
            | 71 |     mailCC: ''
 | 71 | #    mailCC: ''
 | 
          
            | 72 |     mailFrom: sysinfo@example.com
 | 72 | #    mailFrom: sysinfo@example.com
 | 
          
            | 73 |     mailServer: smtp.example.com:587
 | 73 | #    mailServer: smtp.example.com:587
 | 
          
            | 74 |     mailSubject: 'sysinfo-client: $hostname $reportDate'
 | 74 | #    mailSubject: 'sysinfo-client: $hostname $reportDate'
 | 
          
            | 75 |     mailTo: stats@dailydata.net
 | 75 | #    mailTo: stats@dailydata.net
 | 
          
            | 76 |     otherCLParams: -q
 | 76 | #    otherCLParams: -q
 | 
          
            | 77 |     sendEmailScriptLocation: sendEmail
 | 77 | #    sendEmailScriptLocation: sendEmail
 | 
          
            | 78 |     sendScript: sendEmailScript
 | 78 | #    sendScript: sendEmailScript
 | 
          
            | 79 |     smtpPass: 'password for smtpUser'
 | 79 | #    smtpPass: 'password for smtpUser'
 | 
          
            | 80 |     smtpUser: authenticatedUser
 | 80 | #    smtpUser: authenticatedUser
 | 
          
            | 81 |     tls: auto
 | 81 | #    tls: auto
 | 
          
            | - |   | 82 | #  '2':
 | 
          
            | - |   | 83 | #    name: SaveLocal
 | 
          
            | - |   | 84 | #    'output directory': /tmp
 | 
          
            | - |   | 85 | #    sendScript: save_local
 | 
          
            | - |   | 86 | #
 | 
          
            | 82 |  
 | 87 |  
 |