Page 2 of 5

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 10:04 am
by mguthrie
Do you have notifications working on this system? It seems like this could be an issue with mail configuration.

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 11:07 am
by mobiledataforce
mobiledataforce wrote:I am able to manually export reports but can't seem to get them to send via email. If I click the Send Now button for a scheduled report I do not receive it by email. I am receiving notifications by email.
Any ideas?
Thanks
Yes, I am receiving email notifications.

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 11:49 am
by mguthrie
Was there more log output from /var/log/httpd/error_log? It seems like there would be more information there...

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 2:01 pm
by mobiledataforce
That's all I see there. It is acting like it is still running and I have to manually (ctrl+c) stop it to get back to the command line. I ran it a few times, sorry for the redundancy, maybe you'll see something I don't. Here is the output:

[root@localhost httpd]# tail -f /var/log/httpd/error_log

Code: Select all

2013-04-10 13:21:43 (94.0 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf' saved [25404/25404]

sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
sendmail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only
[Wed Apr 10 14:34:49 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Apr 10 14:34:49 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 10 14:34:49 2013] [notice] Digest: done
[Wed Apr 10 14:34:53 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
--2013-04-11 12:53:18--  http://localhost/nagiosxi/reports/availability.php?&host=FieldSync+Health&service=&reportperiod=thisquarter&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=&servicegroup=&username=nagiosadmin&ticket=f8kn5l8i&mode=pdf
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26761 (26K) [application/pdf]
Saving to: `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf'

     0K .......... .......... ......                          100% 75.2M=0s

2013-04-11 12:53:31 (75.2 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf' saved [26761/26761]

sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
sendmail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only



--2013-04-11 12:55:20--  http://localhost/nagiosxi/reports/availability.php?&host=FieldSync+Health&service=&reportperiod=thisquarter&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=&servicegroup=&username=nagiosadmin&ticket=f8kn5l8i&mode=pdf
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26761 (26K) [application/pdf]
Saving to: `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf'

     0K .......... .......... ......                          100% 23.6M=0.001s

2013-04-11 12:55:23 (23.6 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf' saved [26761/26761]

sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
sendmail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only
--2013-04-11 12:56:47--  http://localhost/nagiosxi/reports/availability.php?&host=FieldSync+Health&service=&reportperiod=thisquarter&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=&servicegroup=&username=nagiosadmin&ticket=f8kn5l8i&mode=pdf
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26760 (26K) [application/pdf]
Saving to: `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf'

     0K .......... .......... ......                          100% 24.8M=0.001s

2013-04-11 12:56:53 (24.8 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availability_Report.pdf' saved [26760/26760]

sendmail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
sendmail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only
^C

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 5:01 pm
by slansing
It looks like your mail system may be configured for IPV6, I would give this a quick read through:

http://unix.stackexchange.com/questions ... d-warnings

Re: scheduled reporting not emailing

Posted: Thu Apr 11, 2013 5:23 pm
by mobiledataforce
I did this and rebooted the Nagios server:
go to /etc/postfix/main.cf and change from:
inet_protocols = all
to:
inet_protocols = ipv4

Now here is my output:
[root@localhost ~]# tail -f /var/log/httpd/error_log

0K .......... .......... ...... 100% 57.6M=0s

2013-04-11 16:12:00 (57.6 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagio sadmin-485mf7-Availability_Report.pdf' saved [26740/26740]

[Thu Apr 11 16:13:04 2013] [notice] caught SIGTERM, shutting down
[Thu Apr 11 16:14:39 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin /suexec)
[Thu Apr 11 16:14:39 2013] [notice] Digest: generating secret for digest authent ication ...
[Thu Apr 11 16:14:39 2013] [notice] Digest: done
[Thu Apr 11 16:14:44 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl /2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations
--2013-04-11 16:16:21-- http://localhost/nagiosxi/reports/availability.php?&hos t=FieldSync+Health&service=&reportperiod=thisquarter&startdate=&enddate=&reportt imesubmitbutton=Go&hostgroup=&servicegroup=&username=nagiosadmin&ticket=f8kn5l8i &mode=pdf
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26740 (26K) [application/pdf]
Saving to: `/usr/local/nagiosxi/tmp/scheduledreport-nagiosadmin-485mf7-Availabil ity_Report.pdf'

0K .......... .......... ...... 100% 5.38M=0.005s

2013-04-11 16:16:29 (5.38 MB/s) - `/usr/local/nagiosxi/tmp/scheduledreport-nagio sadmin-485mf7-Availability_Report.pdf' saved [26740/26740]

Still not receiving reports via email.

Re: scheduled reporting not emailing

Posted: Fri Apr 12, 2013 3:18 pm
by lmiltchev
Have you tried looking for a solution on the postfix forum?

http://postfix.1071664.n5.nabble.com/Po ... rs-f2.html

Re: scheduled reporting not emailing

Posted: Mon Apr 15, 2013 12:49 pm
by mobiledataforce
I browsed the forum a bit. All mail related which has potential to be helpful if I had hours to sift through it. I am receiving NAGIOS notifications via email. I am not receiving NAGIOS reports via email. Please help me resolve my NAGIOS issue..

Re: scheduled reporting not emailing

Posted: Mon Apr 15, 2013 1:05 pm
by slansing
This is more of a postfix problem as we do not support postfix. Though we try to help everyone there are some things which we can not spend much time diving into. Have you tried using one of our SUPPORTED transfer agents and see if you receive reports via email with them? We have received a few mail related reports since the 1.7 release, however they all seem to point to postfix which again is not supported, while we are looking into it, we recommend you use a SUPPORTED Mail Transfer Agent while we bug-hunt.

Just letting you know we are still looking into this.

Re: scheduled reporting not emailing

Posted: Tue Apr 16, 2013 4:21 pm
by mobiledataforce
Sendmail is not supported? I don't understand why that is the first option when configuring via the web then? I only see Sendmail and SMTP; what other options do I have?
Thanks.