Subversion Repositories computer_asset_manager_v1

Rev

Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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