satu

Gajah mati meninggalkan tulang
harimau mati meninggalkan belang
manusia mati meninggalkan nama

persiapkan klu kalian mati ingin meninggalkan apa ?

Tuesday 19 January 2016

wheatermap_zabbix

Suppose, that Zabbix is installed in /pub/www/zabbix. Get weathermap source from http://www.network-weathermap.com/download. Unzip it to /pub/www/zabbix/weathermap.
There are 2 script - data source for weathermap:
  1. WeatherMapDataSource_zabbixhost.php - for host status
  2. WeatherMapDataSource_zabbixitem.php - for getting data of links between hosts

Put this scripts into /pub/www/zabbix/weathermap/lib/datasources.
Put zab_chart.php into /pub/www/zabbix.
Move zab_template.conf.txt to zab_template.conf and put it into /pub/www/zabbix/weathermap/configs.

Usage examples.

Example of weathermap config file, that is placed in /pub/www/zabbix/weathermap/configs:
Code:
INCLUDE configs/zab_template.conf
# End of global section

# regular NODEs:
NODE node08757
 TEMPLATE Zabbix_node
 LABEL node08757
 ICON 50 50 images/equip/128/128_g_router_{node:this:status}.png
 POSITION 131 160
 SET hostname {node:this:label}

NODE node08959
 TEMPLATE Zabbix_node
 LABEL node08959
 ICON 50 50 images/equip/128/128_g_router_{node:this:status}.png
 POSITION 609 160
 SET hostname {node:this:label}

# regular LINKs:
LINK node08757-node08959a
 TEMPLATE Zabbix_link
 NODES node08757 node08959
 SET hostname_in node08757
 SET itemkey_in IF_MIB__ifHCInOctets.30
 SET hostname_out node08959
 SET itemkey_out IF_MIB__ifHCInOctets.30
For every host must be set 'hostname' variable. By this name script finds host at Zabbix.
For link must be set 'hostname' and 'itemkey' variables. 'in' and 'out' means hosts, between which lies a link.

In zab_template.conf TARGET looks like 'zabbixhost:{node:this:hostname}:'. After last ':' should be set zabbix element data key, by default it set to 'icmpping'. This is used by macros {node:this:status}.

P.S. If you don't know, how to generate maps by weathermap, use this:
Code:
php weathermap --config configs/test --htmloutput weathermap.html
P.P.S. Sorry for my average English 

sumber : https://www.zabbix.com/forum/showthread.php?t=20208&page=2
         

No comments:

Post a Comment