Scheduled Reporting stopped

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Scheduled Reporting stopped

Post by sgiworks »

Code: Select all

[root@IWKSEUWPSSNXI01 /]# chage -l apache
Last password change                                    : Jan 13, 2016
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : -1
Maximum number of days between password change          : -1
Number of days of warning before password expires       : -1
[root@IWKSEUWPSSNXI01 /]# ls -lR /var/spool/cron
/var/spool/cron:
total 4
-rw------- 1 apache apache 825 Apr 13 20:09 apache
[root@IWKSEUWPSSNXI01 /]# grep apache /var/log/cron
Apr  9 08:00:01 IWKSEUWPSSNXI01 CROND[9420]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr  9 08:00:01 IWKSEUWPSSNXI01 CROND[9426]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr  9 08:00:01 IWKSEUWPSSNXI01 CROND[9425]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
Apr  9 08:00:01 IWKSEUWPSSNXI01 CROND[9428]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 10 08:00:01 IWKSEUWPSSNXI01 CROND[28703]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr 10 08:00:01 IWKSEUWPSSNXI01 CROND[28706]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 10 08:00:01 IWKSEUWPSSNXI01 CROND[28711]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr 10 08:00:01 IWKSEUWPSSNXI01 CROND[28714]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
Apr 11 08:00:01 IWKSEUWPSSNXI01 CROND[8673]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr 11 08:00:01 IWKSEUWPSSNXI01 CROND[8675]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 11 08:00:01 IWKSEUWPSSNXI01 CROND[8684]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
Apr 11 08:00:01 IWKSEUWPSSNXI01 CROND[8685]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr 12 08:00:01 IWKSEUWPSSNXI01 CROND[25006]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr 12 08:00:01 IWKSEUWPSSNXI01 CROND[25010]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr 12 08:00:01 IWKSEUWPSSNXI01 CROND[25015]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 12 08:00:01 IWKSEUWPSSNXI01 CROND[25016]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
Apr 12 18:16:37 IWKSEUWPSSNXI01 crontab[29345]: (apache) LIST (apache)
Apr 12 18:16:37 IWKSEUWPSSNXI01 crontab[29347]: (apache) REPLACE (apache)
Apr 12 18:17:01 IWKSEUWPSSNXI01 crond[1241]: (apache) RELOAD (/var/spool/cron/apache)
Apr 12 18:40:46 IWKSEUWPSSNXI01 crontab[11813]: (apache) LIST (apache)
Apr 12 18:40:46 IWKSEUWPSSNXI01 crontab[11816]: (apache) REPLACE (apache)
Apr 12 18:41:01 IWKSEUWPSSNXI01 crond[1241]: (apache) RELOAD (/var/spool/cron/apache)
Apr 12 18:43:47 IWKSEUWPSSNXI01 crontab[13592]: (apache) LIST (apache)
Apr 12 18:43:47 IWKSEUWPSSNXI01 crontab[13595]: (apache) REPLACE (apache)
Apr 12 18:43:50 IWKSEUWPSSNXI01 crontab[13610]: (apache) LIST (apache)
Apr 12 18:43:50 IWKSEUWPSSNXI01 crontab[13613]: (apache) REPLACE (apache)
Apr 12 18:43:53 IWKSEUWPSSNXI01 crontab[13637]: (apache) LIST (apache)
Apr 12 18:43:53 IWKSEUWPSSNXI01 crontab[13640]: (apache) REPLACE (apache)
Apr 12 18:43:57 IWKSEUWPSSNXI01 crontab[13661]: (apache) LIST (apache)
Apr 12 18:43:57 IWKSEUWPSSNXI01 crontab[13664]: (apache) REPLACE (apache)
Apr 12 18:44:01 IWKSEUWPSSNXI01 crond[1241]: (apache) RELOAD (/var/spool/cron/apache)
Apr 13 08:00:01 IWKSEUWPSSNXI01 CROND[14909]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 13 08:00:01 IWKSEUWPSSNXI01 CROND[14919]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
Apr 13 08:00:01 IWKSEUWPSSNXI01 CROND[14921]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr 13 08:00:01 IWKSEUWPSSNXI01 CROND[14923]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr 13 19:08:36 IWKSEUWPSSNXI01 crontab[19134]: (apache) LIST (apache)
Apr 13 19:08:36 IWKSEUWPSSNXI01 crontab[19136]: (apache) REPLACE (apache)
Apr 13 19:08:42 IWKSEUWPSSNXI01 crontab[19184]: (apache) LIST (apache)
Apr 13 19:08:42 IWKSEUWPSSNXI01 crontab[19186]: (apache) REPLACE (apache)
Apr 13 19:08:53 IWKSEUWPSSNXI01 crontab[19312]: (apache) LIST (apache)
Apr 13 19:08:53 IWKSEUWPSSNXI01 crontab[19314]: (apache) REPLACE (apache)
Apr 13 19:09:01 IWKSEUWPSSNXI01 crond[1241]: (apache) RELOAD (/var/spool/cron/apache)
Apr 13 19:09:12 IWKSEUWPSSNXI01 crontab[19578]: (apache) LIST (apache)
Apr 13 19:09:12 IWKSEUWPSSNXI01 crontab[19580]: (apache) REPLACE (apache)
Apr 13 19:09:19 IWKSEUWPSSNXI01 crontab[19633]: (apache) LIST (apache)
Apr 13 19:09:19 IWKSEUWPSSNXI01 crontab[19635]: (apache) REPLACE (apache)
Apr 13 19:09:28 IWKSEUWPSSNXI01 crontab[19733]: (apache) LIST (apache)
Apr 13 19:09:28 IWKSEUWPSSNXI01 crontab[19735]: (apache) REPLACE (apache)
Apr 13 19:10:01 IWKSEUWPSSNXI01 crond[1241]: (apache) RELOAD (/var/spool/cron/apache)
Apr 14 08:00:01 IWKSEUWPSSNXI01 CROND[6374]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam > /dev/null 2>&1)
Apr 14 08:00:01 IWKSEUWPSSNXI01 CROND[6385]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam > /dev/null 2>&1)
Apr 14 08:00:01 IWKSEUWPSSNXI01 CROND[6389]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam > /dev/null 2>&1)
Apr 14 08:00:01 IWKSEUWPSSNXI01 CROND[6393]: (apache) CMD (/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam > /dev/null 2>&1)
[root@IWKSEUWPSSNXI01 /]#
Last edited by tmcdonald on Fri Apr 14, 2017 2:07 pm, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Reporting stopped

Post by tgriep »

Thanks for the output. They are running from cron so lets run the job manually and see what error is generated.
Run this as root on the XI server.

Code: Select all

/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=7m6ljh --username=swapnil.kadam
/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=c04psd --username=swapnil.kadam
/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=q2d8o3 --username=swapnil.kadam
/usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=bhp9j4 --username=swapnil.kadam
Be sure to check out our Knowledgebase for helpful articles and solutions!
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Scheduled Reporting stopped

Post by sgiworks »

All the above commands had similar output:

DEBUG:
Message sent! (method=sendmail)

DELETING /usr/local/nagiosxi/tmp/scheduledreport-swapnil.kadam-bhp9j4-Availability_Report.pdf
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Scheduled Reporting stopped

Post by sgiworks »

No reports received :(
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Reporting stopped

Post by tgriep »

It looks like the report ran and it used the Sendmail mail method to send it.
When using that method, you can view the /var/log/maillog file to see if there are any errors on why the reports did not get sent.
Take a look in that log file around the time the reports are scheduled and you should see the errors on why they are not getting sent.
Be sure to check out our Knowledgebase for helpful articles and solutions!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Scheduled Reporting stopped

Post by avandemore »

Moving to a ticket.
Previous Nagios employee
Locked