Patrick Ermer
2012-11-06 14:44:39 UTC
Patrick Ermer [http://community.zenoss.org/people/pt1xoom] created the discussion
"Reportmail Problem"
To view the discussion, visit: http://community.zenoss.org/message/69719#69719
--------------------------------------------------------------
Hello,
I am having problems with reportmail function. Here is my script, which seems like a pretty simple script. When I run it manually, the report is emailed to me. When I set up a cron job on the crontab, the script is run, but I do not receive the email. I know the script is running because I output it to a file.
Any ideas why this script will email correctly when run manually, but not when it is run under crontab? I am running Ubuntu 12.04. This might be an Ubuntu confige problem vs a Zenoss confige problem, but I thought I would start here.
#!/bin/sh
echo "email_reports.sh started "
date
$ZENHOME/bin/reportmail --user=xxxx --passwd=xxxx --from="***@xxxx" --address="***@xxxx" --subject="Zenoss Report: xxxx"Â --url=" http://xxxx:8080/zport/dmd/Reports/Graph%20Reports/xxxxx http://xxxx:8080/zport/dmd/Reports/Graph%20Reports/xxxxx"
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69719#69719]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Reportmail Problem"
To view the discussion, visit: http://community.zenoss.org/message/69719#69719
--------------------------------------------------------------
Hello,
I am having problems with reportmail function. Here is my script, which seems like a pretty simple script. When I run it manually, the report is emailed to me. When I set up a cron job on the crontab, the script is run, but I do not receive the email. I know the script is running because I output it to a file.
Any ideas why this script will email correctly when run manually, but not when it is run under crontab? I am running Ubuntu 12.04. This might be an Ubuntu confige problem vs a Zenoss confige problem, but I thought I would start here.
#!/bin/sh
echo "email_reports.sh started "
date
$ZENHOME/bin/reportmail --user=xxxx --passwd=xxxx --from="***@xxxx" --address="***@xxxx" --subject="Zenoss Report: xxxx"Â --url=" http://xxxx:8080/zport/dmd/Reports/Graph%20Reports/xxxxx http://xxxx:8080/zport/dmd/Reports/Graph%20Reports/xxxxx"
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69719#69719]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]