Also, stav13... where did you get that zab_chart.php file? It's broken in 3.0.1, and does it require that the guest account be working? I see an error suggesting that there are 'no permissions for system access' when hovering over links made using zab_chart.php. We specify a user and password for this plugin, is there a way to use that?
Ad Widget
Collapse
Using PHP Network WeatherMap with Zabbix
Collapse
X
-
-
Hi,Also, stav13... where did you get that zab_chart.php file? It's broken in 3.0.1, and does it require that the guest account be working? I see an error suggesting that there are 'no permissions for system access' when hovering over links made using zab_chart.php. We specify a user and password for this plugin, is there a way to use that?
Sorry, didnt get an email to say this thread had been updated. TBH i think this broke in 2.4.x but I dont use it so havent looked into why it doesnt work.
I have multiple configs I am happy to share, do you want a basic one referencing a template?
CheersComment
-
Nah, I had a couple days to start fighting this thing - I gotta tell you, tracing your footsteps was REALLY helpful! the configs that are included in this thread work fairly well as starting points. I've got this working, although I do have to call graphs from graphid - I found that a lot easier than making zab_chart work - and I can also confirm that if you aren't already logged into zabbix, chart2.php won't work... which is great! I don't have to code anything in to acquire cookies or anything.Hi,
Sorry, didnt get an email to say this thread had been updated. TBH i think this broke in 2.4.x but I dont use it so havent looked into why it doesnt work.
I have multiple configs I am happy to share, do you want a basic one referencing a template?
Cheers
Thanks for documenting all the stuff you did, man. It was really helpful!Comment
-
For example everytime i get to this part of the guide and i have to launch the script with these options :
" ./weathermap --config configs/map.conf"
I get the errors :
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 108
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/pear/Console/Getopt.php on line 153
PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /usr/share/zabbix/weathermap/weathermap on line 59
PHP Warning: fopen(configs/map.conf): failed to open stream: No such file or directory in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 1787
PHP Warning: file_get_contents(configs/map.conf): failed to open stream: No such file or directory in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 3078Comment
-
Hi,
I have installed 3.2.1 and working fine still ....
Can you send me the files;
/usr/share/pear/Console/Getopt.php
/usr/share/zabbix/weathermap/weathermap
configs/map.conf
/usr/share/zabbix/weathermap/lib/Weathermap.class.php
What version of php are you running?
CheersComment
-
Thank you so much Stav the help is greatly appreciated, sort of a beginner in Linux,
Indeed i seem to not have that directory at all "/usr/share/zabbix/weathermap/weathermap
configs/" , i didn't know i needed to create the map.conf file as well.
The php version i'm running is :
PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
I put the rest of the files attachedAttached FilesComment
-
Also looks like you are running weathermap version 0.97b, can you upgrade this to 0.97c as this is what i am running and will be easier to troubleshoot.
In fact maybe the upgrade to 0.97c will fix this - http://forums.cacti.net/viewtopic.php?f=16&t=50374
ThanksLast edited by stav13; 24-10-2016, 12:20.Comment
-
Ok, cool.
Let me know how it goes, i have also noticed I have a different Getopt.php file with many changes, i have attached below so .old your current one and load mine in and see how that goes.
CheersAttached FilesComment
-
So to use it i have to connect to the user weathermaps right?
When i do i get a page with the message :
The requested URL /zabbix/zabbix_url http://MYIP/zabbix/api_jsonrpc.php was not found on this server.
As i'm still unsure how to even access a map, sorry these demands must seems so silly and amateurish hehe but seriously thank you for all the help so far,
I'm trying to follow what you did in a comment earlier on page 5
CheersLast edited by sgalliani; 24-10-2016, 16:23.Comment
-
Are you still getting the errors you had before?
can you check through these two files;
WeatherMapDataSource_zabbixhost.php
WeatherMapDataSource_zabbixitem.php
zab_template.conf
look in there to see if you can see an IP setting.
Are you following my post ?? https://www.zabbix.com/forum/showpos...5&postcount=50
You should set your user account within the two datasource files and run weathermap on the same host as zabbix app.
CheersComment
-
Hmmm perhaps already one of the problems is that i'm using Centos as it's demande in my internship.Are you still getting the errors you had before?
can you check through these two files;
WeatherMapDataSource_zabbixhost.php
WeatherMapDataSource_zabbixitem.php
zab_template.conf
look in there to see if you can see an IP setting.
Are you following my post ?? https://www.zabbix.com/forum/showpos...5&postcount=50
You should set your user account within the two datasource files and run weathermap on the same host as zabbix app.
Cheers
Indeed for example on your post when you say "Comment out line 94 in file CLocalApiClient.php located in /var/www/html/zabbix/include/classes/api/clients/"
I have nothing in that directory "/var/www/html", Instead all my things are in /usr/share/zabbix/include/classes/api/clients/"
Yep i checked the files and i did indeed put the admin account, not sure what you mean with the IP setting.
I did fill out the "zab_template.conf" like it says on your post with my IP as my url, just unsure how i can access it to test it out.
Well if i try to do the command :
"./weathermap --config configs/test.conf"
I just get :
WARNING: configs/test.conf: Failed to load ttf font ./VeraIt.ttf - at config line 3 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 4 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 5 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./VeraIt.ttf - at config line 1 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 2 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 3 [WMWARN30]
WARNING: configs/test.conf: Unknown node 'Device2' on line 64 of config
WARNING: configs/test.conf: Unrecognised config on line 65: BANDWIDTH 1G
PHP Fatal error: Call to a member function add_hint() on a non-object in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 2249
I'm really unsure of what i'm doing wrong..Comment
-
You are missing some fonts and you are referencing a host which isn't found.Hmmm perhaps already one of the problems is that i'm using Centos as it's demande in my internship.
Indeed for example on your post when you say "Comment out line 94 in file CLocalApiClient.php located in /var/www/html/zabbix/include/classes/api/clients/"
I have nothing in that directory "/var/www/html", Instead all my things are in /usr/share/zabbix/include/classes/api/clients/"
Yep i checked the files and i did indeed put the admin account, not sure what you mean with the IP setting.
I did fill out the "zab_template.conf" like it says on your post with my IP as my url, just unsure how i can access it to test it out
Well if i try to do the command :
"./weathermap --config configs/test.conf"
I just get :
WARNING: configs/test.conf: Failed to load ttf font ./VeraIt.ttf - at config line 3 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 4 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 5 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./VeraIt.ttf - at config line 1 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 2 [WMWARN30]
WARNING: configs/test.conf: Failed to load ttf font ./Vera.ttf - at config line 3 [WMWARN30]
WARNING: configs/test.conf: Unknown node 'Device2' on line 64 of config
WARNING: configs/test.conf: Unrecognised config on line 65: BANDWIDTH 1G
PHP Fatal error: Call to a member function add_hint() on a non-object in /usr/share/zabbix/weathermap/lib/Weathermap.class.php on line 2249
I'm really unsure of what i'm doing wrong..
I will be able to help tomorrow when I'm back at my pc. What's ur email address and I'll setup a slack channel as better then filling this thread up.Comment
Comment