When I schedule a report to send a pdf (at the end of each month for instance) I get a pdf that just says unauthorized. However if I run the report and export to pdf manually, everything works perfectly. Is there a schedule setting/permission I am missing to get this fully automated?


Article Comments

It may be that the in the security context field you have an unauthorized user running this report. Please check this setting under the settings tab of the report and make sure that the user is authorized to read the sensors that you are reporting on as well as authorized to send email.

Also, please let us know what version of PRTG you are using.


Apr, 2013 - Permalink

hi

We have the same problem.

the version is 20.1.56.1547+


Mar, 2020 - Permalink

Hello,

Which user are you using as "Security Context" in the settings of your report? Please check its access rights at "Setup > System Administration > User Accounts/User Groups". If you are not sure if the user has enough access rights, you can send us screenshots at support@paessler.com, so we can take a closer look.

Kind Regards,
Timo Dambach
Paessler Tech Support


Mar, 2020 - Permalink

from PRTG Support

Regarding the error "unauthorized" returned when generating reports from the Historic Data tab, the latter is due to the missing credentials in the API call executed on the server. Prior to version 22.1.74, the latter worked without authentication however we implemented an important security feature in the latest version to prevent CSRF attack.

As indicated in the release notes, all API calls now required authentication to work properly and therefore our development team fixed the issue in the new version .75 planned on 15th of March.

In the meantime, I invite you to add "&username=PRTGUSER&passhash=PASSHASH" to the URL displayed in your browser address bar when you get the error above. If you don't know where to find your passhash, simply go to Setup > Account Settings > My account and then use the blue button "Show passhash".

If you have questions, do not hesitate.


Feb, 2022 - Permalink