Subversion Repositories computer_asset_manager_v1

Rev

Rev 12 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 rodolico 1
---
12 rodolico 2
outpath: /path/to/unprocessed/email
3
logFile: /path/to/log/file/errors.log
4
datapath: /path/to/root/of/reports
6 rodolico 5
unprocessed_path: unprocessed
6
getMailScript: getSysinfoMail.php
7
processMailScript: parse_sysinfo.php
12 rodolico 8
reportScript: sendReport.pl
5 rodolico 9
servers:
12 rodolico 10
- servername: smtp.server.or.ip
5 rodolico 11
  port: 143
12
  ssl: false
12 rodolico 13
  mailbox: mailbox.name
14
  username: username
15
  password: password
5 rodolico 16
  deleteProcessed: false
17
  enabled: false
12 rodolico 18
- servername: smtp.server.or.ip
5 rodolico 19
  port: 143
20
  ssl: false
12 rodolico 21
  mailbox: mailbox.name
22
  username: username
23
  password: password
5 rodolico 24
  deleteProcessed: false
25
  enabled: false
13 rodolico 26
database:
12 rodolico 27
  databaseServer: localhost
28
  databaseUsername: dbuser
29
  databasePassword: dbpass
30
  database: dbname
31
sendReport:
32
  emailScript: /opt/sendEmail/sendEmail.pl
33
  mailTo: who@gets.mail
34
  mailServer: smtp.server.com:587
35
  mailSubject: Sysinfo Report
36
  mailFrom: sysinfo@mydomain.org
37
  logFile: /tmp/mail.log
38
  tls: '''auto'''
39
  smtpUser: smtp@user.com
40
  smtpPass: password
5 rodolico 41
bodyContents:
42
  xml:
43
    startTag: \<sysinfo
44
    endTag: \<\/sysinfo[^>]*\>
12 rodolico 45
    eval: return(json_decode(json_encode((array)simplexml_load_string($body)),1));
5 rodolico 46
  yaml:
47
    startTag: \-\-\-
48
    endTag: \.\.\.
49
    eval: return( yaml_parse( $body, 0 ) );
50
  ini:
51
    startTag: \[sysinfo version\]
52
    endTag: ""
12 rodolico 53
    eval: |-
54
      $data = array();
55
      preg_match( '/\[report date\](.*)[\r\n]/', $body, $_date );
56
      preg_match( '/\[client name\](.*)[\r\n]/', $body, $_client );
57
      preg_match( '/\[hostname\](.*)[\r\n]/', $body, $_host );
58
      $data['report']['date'] = str_replace(array("\n", "\r"), '', $_date[1]);
59
      $data['report']['client'] = str_replace(array("\n", "\r"), '', $_client[1]);
60
      $data['system']['hostname'] = str_replace(array("\n", "\r"), '', $_host[1]);
61
      return $data;
5 rodolico 62
...