scheduled reporting not emailing
Re: scheduled reporting not emailing
Do you have notifications working on this system? It seems like this could be an issue with mail configuration.
-
mobiledataforce
- Posts: 68
- Joined: Fri Mar 15, 2013 1:35 pm
Re: scheduled reporting not emailing
Yes, I am receiving email notifications.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
Re: scheduled reporting not emailing
Was there more log output from /var/log/httpd/error_log? It seems like there would be more information there...
-
mobiledataforce
- Posts: 68
- Joined: Fri Mar 15, 2013 1:35 pm
Re: scheduled reporting not emailing
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
[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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: scheduled reporting not emailing
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
http://unix.stackexchange.com/questions ... d-warnings
-
mobiledataforce
- Posts: 68
- Joined: Fri Mar 15, 2013 1:35 pm
Re: scheduled reporting not emailing
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.
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
Have you tried looking for a solution on the postfix forum?
http://postfix.1071664.n5.nabble.com/Po ... rs-f2.html
http://postfix.1071664.n5.nabble.com/Po ... rs-f2.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
mobiledataforce
- Posts: 68
- Joined: Fri Mar 15, 2013 1:35 pm
Re: scheduled reporting not emailing
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..
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: scheduled reporting not emailing
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.
Just letting you know we are still looking into this.
-
mobiledataforce
- Posts: 68
- Joined: Fri Mar 15, 2013 1:35 pm
Re: scheduled reporting not emailing
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.
Thanks.