Subversion Repositories camp_sysinfo_client_3

Rev

Rev 194 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

---
#########################################################################################
#        YOU MUST FILL OUT THESE VALUES
# You must manually fill out the owners name. This is used by process_sysinfo.pl to allow
# computers with the same name in two locations. The key to uniquely identify a machine is the 
# client name (see $client_name below) and the computer name (taken from the hostname command)
# A serial number may also be included. Otherwise, it is calculated in sub getSerialNumber in 
# sysinfo
#########################################################################################
# if non-zero, turns on debugging.
TESTING: 0
# Recommended. If defined, gives unique identifier to machine
UUID: ''
# Required. If used with CAMP, this must be the same name as appears in there.
clientName: ''
# $hostname, if left blank, will default to hostname -f on Unix systems
hostname: ''
# Recommended. If defined, will be used to locate server by CAMP
serialNumber: ''
#########################################################################################
#        END OF REQUIRED VALUES
#########################################################################################
#########################################################################################
# Following are optional depending on your installation
#########################################################################################
# if postRunScript is set, the script will be run AFTER a successful sysinfo run.
# script name is the only required parameter. All other parameters are available to the
# postRunScript if it reads the configuration file.
postRunScript:
  'script name': postrunscript.pl
  URL: https://example.com/seedFiles
  'update script': sysinfo_update
  'checksum': sysinfo_update.cksum
   
   
# Log Actions. The default is to keep all the logs internally, then throw them away
# set this to 'log type' of syslog for the Unix system log
# can also be set to log type of file, with an additional parameter of the full path
# to the file used for logging. Be careful, it will grow
# log level varies from 0 (nothing) to 4 (way too much information for anything but
# debugging).
logging:
  'log level': 1
  'log type': syslog
#  'log type': file
#  'log path' : /tmp/sysinfo-client.log
# location of modules to be used for gathering data
moduleDirs:
  - /usr/local/opt/camp/sysinfo-client/modules
  - /usr/local/etc/camp/sysinfo-client/modules
# location of scripts used to get the results to the server that processes them
scriptDirs:
  - /usr/local/opt/camp/sysinfo-client/scripts
  - /usr/local/etc/camp/sysinfo-client/scripts
# transprots assumed to be in one of the ScriptDirs. The keys are dependant on what the
# transport requires
transports:
  '0':
    name: 'HTTP Upload'
    URL: http://campserver.example.com/modules/sysinfo/upload_sysinfo_report.php
    'key for client': client
    'key for date': report_date
    'key for hostname': hostname
    'key for report': report
    'key for serial number': serialnumber
    sendScript: upload_http
  '1':
    name: SendEmail
    logFile: /tmp/mail.log
    mailBCC: ''
    mailCC: ''
    mailFrom: sysinfo@example.com
    mailServer: smtp.example.com:587
    mailSubject: 'sysinfo-client: $hostname $reportDate'
    mailTo: stats@dailydata.net
    otherCLParams: -q
    sendEmailScriptLocation: sendEmail
    sendScript: sendEmailScript
    smtpPass: 'password for smtpUser'
    smtpUser: authenticatedUser
    tls: auto