Page 1 of 1
Reports and how to see them
Posted: Wed Aug 31, 2016 10:04 pm
by SteveBeauchemin
How can I see "All" reports scheduled by "All" users.
I have a large setup, and some reports make the system freeze and become useless.
I suspect there are some users who have scheduled some reports but I do not see how to show a list by username, report, and schedule.
With a list, I can balance the schedules, remove reports that are no longer needed, remove reports that cause my system to behave poorly.
Any suggestions?
Thanks
Steve B
Re: Reports and how to see them
Posted: Thu Sep 01, 2016 9:16 am
by lmiltchev
I don't believe there is a way to see the schedule in the GUI. You could log is (masquerade as) a user, and review his/her reports.
Having said that, the reports are run on a cron job by the apache user, so you could view the schedule by running:
Example:
[root@localhost ~]# crontab -u apache -l
#crontab for apache user
0 9 1 * * /usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=og54pu --username="nagiosadmin" > /dev/null 2>&1
0 9 1 * * /usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=ble436 --username="nagiosadmin" > /dev/null 2>&1
0 17 * * * /usr/bin/php /usr/local/nagiosxi/html/includes/components/scheduledreporting/sendreport.php --report=o7s9pc --username="ludmil" > /dev/null 2>&1
Hope this helps.
Re: Reports and how to see them
Posted: Thu Sep 01, 2016 10:47 am
by SteveBeauchemin
Thanks for providing some insight.
As the Administrator of the Nagios XI tool at my site, I need to be able to see all user created '[anything]' in the tool in order to 'Administer' them.
I think this is a good opportunity for someone to provide a holistic Admin tool to see and control anything a user puts in place.
If random users can create tasks, reports, or whatever, and I have no easy visibility, this can become a problem at some point. Using masquerade is a work around. I have Many folks using Nagios XI to see the health of the tools they support in our infrastructure. Some get creative.
If there is no actual solution at this time you may as well close this issue.
Thanks.
Steve B
Re: Reports and how to see them
Posted: Thu Sep 01, 2016 11:37 am
by lmiltchev
If there is no actual solution at this time you may as well close this issue.
Unfortunately, there is no "actual solution" at this time. Viewing the apache crontab is more of a "workaround". It will show you the names of the users who scheduled reports, and the times when the reports are scheduled to go out. It will now show you what kind of reports are going to be sent out though.
BTW, we like the idea of creating such a tool in Nagios XI for viewing/managing scheduled reports very much! I already posted an internal feature request for adding this functionality (TASK ID 9449). Thanks!
Re: Reports and how to see them
Posted: Thu Sep 01, 2016 11:40 am
by SteveBeauchemin
Appreciated! Thanks... close now.
Re: Reports and how to see them
Posted: Thu Sep 01, 2016 12:42 pm
by lmiltchev
Closing.