How To Send Or Save A Report Regularly

Applies To

Summary

Some users may find it is necessary to archive or send a report on a regular basis. Below are 2 different ways to accomplish this task.

Procedure

Method 1 - reportmail

Zenoss comes with a command-line tool called reportmail that can send a report via email from Zenoss. One way of automating a report on a daily, weekly, or monthly basis is to set up a cron job to send the same report for that interval. The format of the reportmail command is:

To automate this, run crontab -e as the zenoss user to put the command in as a cron job. For example, if you wanted to email the "Alert Rule Email Addresses" report daily at 5:00am, you would put the following in your crontab (note that percent signs (%) must be escaped with a backslash '\'):

To automate this, run crontab -e as the zenoss user to put the command in as a cron job. For example, if you wanted to save the "Alert Rule Email Addresses" report every hour, you would put the following in your crontab (note that percent signs (%) must be escaped with a backslash '\'):

If you wanted to save The "Alert Rule Email Addresses" report daily under a unique name that included the date for historical purposes, you could put the following in your crontab (note that percent signs (%) must be escaped with a backslash '\'):