Hi guys.
First of all I need to give you an short introduction of what I'm planning to do. I'd like to send daily emails to all admins in my company including the status of our most important switches and firewals etc. These emails should contain information about the uptime etc of these switches and I'd like to include some images of important graphs in these emails as an attachment. It should be something like a 'automated daily reporting system'. If Zabbix already has such a function that will be perfect. If not, how can I cause Zabbix to export specific graphs as pictures at a defined time?
I had a closer look on config.inc.php at the function called "function ImageOut(...)". This function uses the PHP function ImagePNG($image); to print an image (the image of the graph) in the webbrowser. By changing the function
"ImagePNG($image);"
to
"ImagePNG($image,"/var/www/zabbix_pics/pic1.png");"
I got Zabbix to save all graphs as a picture on my harddrive instead of showing them in the browser. So, it's not impossible to save graphs as pictures but this solution is just for testing purpose. I need to expand this (or more) php files, but before I do so, I'd like to know if there's anybody, who has a better idea how to get my 'problem' solved.
I'm still using Zabbix 1.6.7 (an upgrade to 1.8 is comming soon). Is version 1.8 able to export graphs as pictures?
I would be grateful for any help
First of all I need to give you an short introduction of what I'm planning to do. I'd like to send daily emails to all admins in my company including the status of our most important switches and firewals etc. These emails should contain information about the uptime etc of these switches and I'd like to include some images of important graphs in these emails as an attachment. It should be something like a 'automated daily reporting system'. If Zabbix already has such a function that will be perfect. If not, how can I cause Zabbix to export specific graphs as pictures at a defined time?
I had a closer look on config.inc.php at the function called "function ImageOut(...)". This function uses the PHP function ImagePNG($image); to print an image (the image of the graph) in the webbrowser. By changing the function
"ImagePNG($image);"
to
"ImagePNG($image,"/var/www/zabbix_pics/pic1.png");"
I got Zabbix to save all graphs as a picture on my harddrive instead of showing them in the browser. So, it's not impossible to save graphs as pictures but this solution is just for testing purpose. I need to expand this (or more) php files, but before I do so, I'd like to know if there's anybody, who has a better idea how to get my 'problem' solved.
I'm still using Zabbix 1.6.7 (an upgrade to 1.8 is comming soon). Is version 1.8 able to export graphs as pictures?
I would be grateful for any help
Comment