-
Book Overview & Buying
-
Table Of Contents
Zenoss Core 3.x Network and System Monitoring
By :
Zenoss Core includes the reportmail command in $ZENHOME/bin that enables us to send any report, including custom device reports, via e-mail. No graphical interface is available which means that we must work from the command line as the zenoss user.
We need to specify the URL of the report, the username/password for a user, and a from address for the e-mail. Run the command reportmail --help to get a full list of options.
To get the URL of the report, open the report you want to mail from the Zenoss UI and copy the URL from the browser. Using the Uptime Report we created earlier in this chapter, I would use the command:
reportmail -U userName -p password \ -u http://localhost:8080/zport/dmd/reports#reporttree:.zport.dmd.Reports.Custom%20Device%20Reports.Uptime
As you can see, the URL is quite large and causes the above command to wrap over three lines. It's one of those things that doesn't transfer well to print. And even though it's ugly, it's relatively...
Change the font size
Change margin width
Change background colour