Subversion Repositories camp_sysinfo_client_3

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
92 rodolico 1
---
2
#########################################################################################
3
#        YOU MUST FILL OUT THESE VALUES
4
# You must manually fill out the owners name. This is used by process_sysinfo.pl to allow
5
# computers with the same name in two locations. The key to uniquely identify a machine is the 
6
# client name (see $client_name below) and the computer name (taken from the hostname command)
7
# A serial number may also be included. Otherwise, it is calculated in sub getSerialNumber in 
8
# sysinfo
9
#########################################################################################
10
# if non-zero, turns on debugging.
11
TESTING: 0
12
# Recommended. If defined, gives unique identifier to machine
13
UUID: ''
14
# Required. If used with CAMP, this must be the same name as appears in there.
15
clientName: ''
16
# $hostname, if left blank, will default to hostname -f on Unix systems
17
hostname: ''
18
# Recommended. If defined, will be used to locate server by CAMP
19
serialNumber: ''
20
#########################################################################################
21
#        END OF REQUIRED VALUES
22
#########################################################################################
23
#########################################################################################
24
# Following are optional depending on your installation
25
#########################################################################################
191 rodolico 26
# if postRunScript is set, the script will be run AFTER a successful sysinfo run.
27
postRunScript:
144 rodolico 28
# Log Actions. The default is to keep all the logs internally, then throw them away
29
# set this to 'log type' of syslog for the Unix system log
30
# can also be set to log type of file, with an additional parameter of the full path
31
# to the file used for logging. Be careful, it will grow
32
# log level varies from 0 (nothing) to 4 (way too much information for anything but
33
# debugging).
34
logging:
35
  'log level': 1
36
  'log type': syslog
37
#  'log type': file
38
#  'log path' : /tmp/sysinfo-client.log
92 rodolico 39
# location of modules to be used for gathering data
40
moduleDirs:
41
  - /usr/local/opt/camp/sysinfo-client/modules
42
  - /usr/local/etc/camp/sysinfo-client/modules
43
# location of scripts used to get the results to the server that processes them
44
scriptDirs:
45
  - /usr/local/opt/camp/sysinfo-client/scripts
46
  - /usr/local/etc/camp/sysinfo-client/scripts
47
# transprots assumed to be in one of the ScriptDirs. The keys are dependant on what the
48
# transport requires
49
transports:
50
  '0':
129 rodolico 51
    name: 'HTTP Upload'
92 rodolico 52
    URL: http://campserver.example.com/modules/sysinfo/upload_sysinfo_report.php
53
    'key for client': client
54
    'key for date': report_date
55
    'key for hostname': hostname
56
    'key for report': report
57
    'key for serial number': serialnumber
58
    sendScript: upload_http
59
  '1':
129 rodolico 60
    name: SendEmail
92 rodolico 61
    logFile: /tmp/mail.log
62
    mailBCC: ''
63
    mailCC: ''
64
    mailFrom: sysinfo@example.com
65
    mailServer: smtp.example.com:587
66
    mailSubject: 'sysinfo-client: $hostname $reportDate'
67
    mailTo: stats@dailydata.net
68
    otherCLParams: -q
69
    sendEmailScriptLocation: sendEmail
70
    sendScript: sendEmailScript
71
    smtpPass: 'password for smtpUser'
72
    smtpUser: authenticatedUser
73
    tls: auto