Page 1 of 1

System Reporter Scheduled Reports

Posted: Tue Aug 19, 2014 2:53 pm
by zeal0t
Hi all,

I'm having problems to send scheduled reports via email.

I've configured the sampleloop.conf as shown in manual.

set Sysdb::smtpserver "mail.mydomain.com"

set Sysdb::smtporig "3PARSystemReporter@mydomain.com"


But this errors appear on schedrptlog_<name-of-report>.log

2014-08-19 15:15:26: Sending email to <destination@mydomain.com> with subject Report Diario created (Mail from System Reporter Scheduled Report system)
2014-08-19 15:15:26: send_email failed: couldn't open socket: host is unreachable (Name or service not known)
2014-08-19 15:15:26: Sent email to <destination@mydomain.com> with subject Report Diario created (Mail from System Reporter Scheduled Report system)
2014-08-19 15:15:26: Exiting process after completion


If I send the email manually with telnet no problem

[root@3parsr ~]# telnet mail.mydomain.com 25
Trying mail.mydomain.com...
Connected to mail.mydomain.com.
Escape character is '^]'.


Software is 3PAR System Reporter 3.1 MU1.

I hope somebody can help me...

Thanks in advice.

Best Regards.

Re: System Reporter Scheduled Reports

Posted: Tue Aug 19, 2014 9:15 pm
by Richard Siemers
This all looks good, and should work. Did you restart the services after editing the config file?

Also check to see if SElinux is enforcing, and if it is, it might be blocking apache from talking to a smtp port.

Re: System Reporter Scheduled Reports

Posted: Wed Aug 20, 2014 5:36 am
by hdtvguy
As a side note if I recall it does not actually email you the report, I thought it just emails a link?

Re: System Reporter Scheduled Reports

Posted: Wed Aug 20, 2014 9:01 am
by zeal0t
hdtvguy wrote:As a side note if I recall it does not actually email you the report, I thought it just emails a link?

Yes, only send a link to view the report.


Yes Richard, i've restarted the sampleloop service, even restarted the server. But no luck.

Before installation of product, i've disabled SELinux.

[root@3parsr ~]# setsebool --h
setsebool: SELinux is disabled.


Thanks for your help.

Best Regards.

Re: System Reporter Scheduled Reports

Posted: Wed Aug 20, 2014 1:10 pm
by zeal0t
I've fixed the problem.

The SMTP configuration also must be placed in the file "config.tcl" located at "/var/www/cgi-bin/3par-rpts"

After that, reports are sent by email without problem.

Hoping this might be useful.

Best Regards.