https://www.zabbix.com/forum/showthread.php?t=9873&page=5
Sorry but have been very busy at work so have quickly wrote this up in my short lunch break.
Install Weathermap
Move zab_chart.php to default location of Zabbix web front end.
Move both files to /weathermap/lib/datasources;
WeatherMapDataSource_zabbixitem.php
WeatherMapDataSource_zabbixhost.php
In both files there is a line as below, enter a username and password for zabbix
$useropt=array(user => 'ENTER USERNAME','password'=>'ENTER PASSWORD');
Move both below files into the /weathermap/configs;
test.conf
zab_template.conf
in zab_template.conf amend the URL to your zabbix URL
OVERLIBGRAPH http://URL/zabbix/weathermap_chart.php?host[]={link:this:hostname_in}&item[]={link:this:itemkey_in}&host[]={link:this:hostname_out}&item[]={link:this:itemkey_out}&color[]=009900&color[]=000099&drawtype[]=5&drawtype[]=2&height=150&width=600&legend=1&period=43200
INFOURL http://URL/zabbix/weathermap_chart.php?host[]={link:this:hostname_in}&item[]={link:this:itemkey_in}&host[]={link:this:hostname_out}&item[]={link:this:itemkey_out}&color[]=009900&color[]=000099&drawtype[]=5&drawtype[]=2&period=86400
Create two png files called icon_up.png and icon_down.png representing that status and move to /weathermap/images
I might have missed something but please have a go and if you get issues let me know and ill try my best to help!!!!
download : https://drive.google.com/open?id=0B8GDi0lY8FDgUXdnOU1qYmZFajA
Sorry but have been very busy at work so have quickly wrote this up in my short lunch break.
Install Weathermap
Move zab_chart.php to default location of Zabbix web front end.
Move both files to /weathermap/lib/datasources;
WeatherMapDataSource_zabbixitem.php
WeatherMapDataSource_zabbixhost.php
In both files there is a line as below, enter a username and password for zabbix
$useropt=array(user => 'ENTER USERNAME','password'=>'ENTER PASSWORD');
Move both below files into the /weathermap/configs;
test.conf
zab_template.conf
in zab_template.conf amend the URL to your zabbix URL
OVERLIBGRAPH http://URL/zabbix/weathermap_chart.php?host[]={link:this:hostname_in}&item[]={link:this:itemkey_in}&host[]={link:this:hostname_out}&item[]={link:this:itemkey_out}&color[]=009900&color[]=000099&drawtype[]=5&drawtype[]=2&height=150&width=600&legend=1&period=43200
INFOURL http://URL/zabbix/weathermap_chart.php?host[]={link:this:hostname_in}&item[]={link:this:itemkey_in}&host[]={link:this:hostname_out}&item[]={link:this:itemkey_out}&color[]=009900&color[]=000099&drawtype[]=5&drawtype[]=2&period=86400
Create two png files called icon_up.png and icon_down.png representing that status and move to /weathermap/images
I might have missed something but please have a go and if you get issues let me know and ill try my best to help!!!!
download : https://drive.google.com/open?id=0B8GDi0lY8FDgUXdnOU1qYmZFajA
No comments:
Post a Comment