Subversion Repositories computer_asset_manager_v1

Rev

Rev 6 | Rev 12 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 rodolico 1
---
6 rodolico 2
datapath: /home/rodolico/temp/sysinfo_reports
3
unprocessed_path: unprocessed
5 rodolico 4
outpath: /home/rodolico/temp/sysinfo_reports/unprocessed
5
logFile: /home/rodolico/temp/sysinfo_reports/errors.log
6 rodolico 6
getMailScript: getSysinfoMail.php
7
processMailScript: parse_sysinfo.php
8
sendReport:
9
  emailScript: /opt/sendEmail/sendEmail.pl
10
  mailTo: rodo@dailydata.net
11
  mailServer: smtp.dailydata.net:587
12
  mailSubject: Sysinfo Report
13
  mailFrom: sysinfo@dailydata.net
14
  logFile: /tmp/mail.log
15
  tls: 'auto'
16
  smtpUser: stats@dailydata.net
17
  smtpPass: UrLnuCp@G85
5 rodolico 18
servers:
19
- servername: smtp.dailydata.net
20
  port: 143
21
  ssl: false
22
  mailbox: INBOX.sysinfo-client
23
  username: stats@dailydata.net
24
  password: UrLnuCp@G85
25
  deleteProcessed: false
26
  enabled: true
27
- servername: book.dailydata.net
28
  port: 143
29
  ssl: false
30
  mailbox: .Processed
31
  username: serverstats
32
  password: sachemic
33
  deleteProcessed: false
34
  enabled: false
35
- servername: smtp.dailydata.net
36
  port: 143
37
  ssl: false
38
  mailbox: INBOX
39
  username: stats@dailydata.net
40
  password: los,vce
41
  deleteProcessed: false
42
  enabled: false
43
- servername: smtp.dailydata.net
44
  port: 143
45
  ssl: false
46
  mailbox: INBOX
47
  username: test@dailydata.net
48
  password: los,vce
49
  deleteProcessed: true
6 rodolico 50
  enabled: true
5 rodolico 51
bodyContents:
52
  xml:
53
    startTag: \<sysinfo
54
    endTag: \<\/sysinfo[^>]*\>
55
    eval: return ( json_decode(json_encode((array)simplexml_load_string($body)),1) );
56
  yaml:
57
    startTag: \-\-\-
58
    endTag: \.\.\.
59
    eval: return( yaml_parse( $body, 0 ) );
60
  ini:
61
    startTag: \[sysinfo version\]
62
    endTag: ""
63
    eval: |
64
            $data = array();
65
            preg_match( '/\[report date\](.*)[\r\n]/', $body, $_date );
66
            preg_match( '/\[client name\](.*)[\r\n]/', $body, $_client );
67
            preg_match( '/\[hostname\](.*)[\r\n]/', $body, $_host );
68
            $data['report']['date'] = str_replace(array("\n", "\r"), '', $_date[1]);
69
            $data['report']['client'] = str_replace(array("\n", "\r"), '', $_client[1]);
70
            $data['system']['hostname'] = str_replace(array("\n", "\r"), '', $_host[1]);
71
            return $data;
72
database:
73
  databaseServer: localhost
74
  databaseUsername: camp
75
  databasePassword: camp
76
  database: camp
77
...