Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./weathermap #6

Open
daniloulbrecht opened this issue Oct 17, 2018 · 1 comment
Open

./weathermap #6

daniloulbrecht opened this issue Oct 17, 2018 · 1 comment
Labels

Comments

@daniloulbrecht
Copy link

daniloulbrecht commented Oct 17, 2018

Hello amousset.
I am generating the config file, but I got this error:
root@zabbix:/usr/share/zabbix/weathermap# ./weathermap --config configs/teste.conf --htmloutput test01.html
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /usr/share/php/Console/Getopt.php on line 135
WARNING: configs/teste.conf: RRD DS: Can't find RRDTOOL. Check line 29 of the 'weathermap' script.
RRD-based TARGETs will fail. [WMRRD02]
WARNING: configs/teste.conf: ProcessTargets: LINK switch-1-switch-2, target: zabbix:itemid:Switch_L3:28549:28576 on config line 63 of configs/teste.conf was recognised as a valid TARGET by a plugin that is unable to run (WeatherMapDataSource_zabbix) [WMWARN07]
PHP Warning: A non-numeric value encountered in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 960
PHP Warning: A non-numeric value encountered in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 961
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
root@zabbix:/usr/share/zabbix/weathermap#
cenario

As you can see attached, I am not seeing graphs yet, can you help me?

@daniloulbrecht
Copy link
Author

My config file:

root@zabbix:/usr/share/zabbix/weathermap# cat configs/teste.conf
FONTDEFINE 100 docs/example/Vera.ttf 10

BACKGROUND images/bw_gradient_1024.png
WIDTH 950
HEIGHT 625
HTMLSTYLE overlib
KEYFONT 100
TITLE test
TIMEPOS 746 17 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 10 11 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1 255 255 255
SCALE DEFAULT 1 10 140 0 255
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0

SET nowarn_clipping 1

End of global section

General configuration

SET zabbix_user weathermap
SET zabbix_password weathermap
SET zabbix_url http:///192.168.66.4/api_jsonrpc.php
SET post_zabbix_graph_link enabled

Graph configuration

SET post_zabbix_graphs 1
SET post_zabbix_graph_link 1
SET post_zabbix_graph_base_url https://192.168.66.4/zabbix
SET post_zabbix_graph_width 420
SET post_zabbix_graph_height 150
SET post_zabbix_graph_period 86400

sample nodes

NODE switch-1
LABEL Switch_L3
OVERLIBGRAPH zabbix:name:Switch_L3:CPU_usage
ICON images/WorkgroupSwitch.png
POSITION 200 280

NODE switch-2
LABEL Switch_L2
OVERLIBGRAPH zabbix:name:Switch_L2:CPU_usage
ICON images/WorkgroupSwitch.png
POSITION 760 280

sample link

LINK switch-1-switch-2
OVERLIBGRAPH zabbix:name:Switch_L3:GigabitEthernet0/1
TARGET zabbix:itemid:Switch_L3:28549:28576
NODES switch-1 switch-2
root@zabbix:/usr/share/zabbix/weathermap#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants