Giter VIP home page Giter VIP logo

Comments (7)

schneidr avatar schneidr commented on July 22, 2024 1

When calling the script via localhost it doesn't require authentication and uses credentials from the config file instead. So generate the pdf with a curl call and send it.

curl -L -s -o /tmp/report.pdf "http://localhost/zabbix-pdf-report/createpdf.php?ReportType=hostgroup&TriggersOn=yes&GroupID=42&ReportRange=last&timePeriod=Week"
echo "Zabbix report" | mail -s "Zabbix report" -a "From: [email protected]" -A /tmp/report.pdf [email protected]

That's all.

from zabbix-pdf-report.

habor73 avatar habor73 commented on July 22, 2024

Thank you very much for building this Martin. I'd also like to be able to schedule weekly/monthly reports by email.

from zabbix-pdf-report.

jamaisx avatar jamaisx commented on July 22, 2024

Hi, for a quick, really dirty solution check my repository, no enough time to write down any doc...
https://github.com/jamaisx/zabbix-pdf-report

from zabbix-pdf-report.

psmartins avatar psmartins commented on July 22, 2024

Has anyone been able to create the reports automatically and send them by email?

from zabbix-pdf-report.

martinm76 avatar martinm76 commented on July 22, 2024

I can confirm that the curl solution works fine. I usually install the report to /report,so depending on how you install it, the URL needs some adjustment, but you should probably get the request from access_log anyway and adapt to curl after that.

from zabbix-pdf-report.

medrami07 avatar medrami07 commented on July 22, 2024

When calling the script via localhost it doesn't require authentication and uses credentials from the config file instead. So generate the pdf with a curl call and send it.

curl -L -s -o /tmp/report.pdf "http://localhost/zabbix-pdf-report/createpdf.php?ReportType=hostgroup&TriggersOn=yes&GroupID=42&ReportRange=last&timePeriod=Week"
echo "Zabbix report" | mail -s "Zabbix report" -a "From: [email protected]" -A /tmp/report.pdf [email protected]

That's all.

Hey sir , please when i place this script and cron , report still dosent sent automatically
any modifications?

from zabbix-pdf-report.

schneidr avatar schneidr commented on July 22, 2024

When calling the script via localhost it doesn't require authentication and uses credentials from the config file instead. So generate the pdf with a curl call and send it.

curl -L -s -o /tmp/report.pdf "http://localhost/zabbix-pdf-report/createpdf.php?ReportType=hostgroup&TriggersOn=yes&GroupID=42&ReportRange=last&timePeriod=Week"
echo "Zabbix report" | mail -s "Zabbix report" -a "From: [email protected]" -A /tmp/report.pdf [email protected]

That's all.

Hey sir , please when i place this script and cron , report still dosent sent automatically
any modifications?

Sorry, can't help you without knowing anything about your setup. Maybe this helps you. If not, feel free to ask a question on SF.

from zabbix-pdf-report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.