Subversion Repositories computer_asset_manager_v1

Rev

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

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