Rev 6 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
---
datapath: /home/rodolico/temp/sysinfo_reports
unprocessed_path: unprocessed
outpath: /home/rodolico/temp/sysinfo_reports/unprocessed
logFile: /home/rodolico/temp/sysinfo_reports/errors.log
getMailScript: getSysinfoMail.php
processMailScript: parse_sysinfo.php
sendReport:
emailScript: /opt/sendEmail/sendEmail.pl
mailTo: rodo@dailydata.net
mailServer: smtp.dailydata.net:587
mailSubject: Sysinfo Report
mailFrom: sysinfo@dailydata.net
logFile: /tmp/mail.log
tls: 'auto'
smtpUser: stats@dailydata.net
smtpPass: UrLnuCp@G85
servers:
- servername: smtp.dailydata.net
port: 143
ssl: false
mailbox: INBOX.sysinfo-client
username: stats@dailydata.net
password: UrLnuCp@G85
deleteProcessed: false
enabled: true
- servername: book.dailydata.net
port: 143
ssl: false
mailbox: .Processed
username: serverstats
password: sachemic
deleteProcessed: false
enabled: false
- servername: smtp.dailydata.net
port: 143
ssl: false
mailbox: INBOX
username: stats@dailydata.net
password: los,vce
deleteProcessed: false
enabled: false
- servername: smtp.dailydata.net
port: 143
ssl: false
mailbox: INBOX
username: test@dailydata.net
password: los,vce
deleteProcessed: true
enabled: true
bodyContents:
xml:
startTag: \<sysinfo
endTag: \<\/sysinfo[^>]*\>
eval: return ( json_decode(json_encode((array)simplexml_load_string($body)),1) );
yaml:
startTag: \-\-\-
endTag: \.\.\.
eval: return( yaml_parse( $body, 0 ) );
ini:
startTag: \[sysinfo version\]
endTag: ""
eval: |
$data = array();
preg_match( '/\[report date\](.*)[\r\n]/', $body, $_date );
preg_match( '/\[client name\](.*)[\r\n]/', $body, $_client );
preg_match( '/\[hostname\](.*)[\r\n]/', $body, $_host );
$data['report']['date'] = str_replace(array("\n", "\r"), '', $_date[1]);
$data['report']['client'] = str_replace(array("\n", "\r"), '', $_client[1]);
$data['system']['hostname'] = str_replace(array("\n", "\r"), '', $_host[1]);
return $data;
database:
databaseServer: localhost
databaseUsername: camp
databasePassword: camp
database: camp
...