problem with weathermap 0.81

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

HCT
Posts: 13
Joined: Tue Dec 06, 2005 1:45 pm

problem with weathermap 0.81

Post by HCT »

i have problem with weathermap 0.81 related to not creating the thumb, original image and html output in the output file by the poller , although i gave cactiuser owner permission and allowed every one to have write permission in the directory . i don't know what to do next .
when i execute weathermap as a stand alone it produce the picture.
please if any one can help me.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: problem with weathermap 0.81

Post by Howie »

HCT wrote:i have problem with weathermap 0.81 related to not creating the thumb, original image and html output in the output file by the poller , although i gave cactiuser owner permission and allowed every one to have write permission in the directory . i don't know what to do next .
when i execute weathermap as a stand alone it produce the picture.
please if any one can help me.
What does the Cacti log say?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
HCT
Posts: 13
Joined: Tue Dec 06, 2005 1:45 pm

Post by HCT »

The strange is that it didn't say anything , it should appear in the normal log file right (cacti directory/log/cacti.log) .
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

HCT wrote:The strange is that it didn't say anything , it should appear in the normal log file right (cacti directory/log/cacti.log) .
Yes it should. Do any other plugins work? (you did install the plugin architecture, I hope!). :-)

Does the 'Weathermaps' option appear under Manage on the console? I guess it must do, otherwise you would not have been able to add a map.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Dr.Dritz
Posts: 44
Joined: Wed Apr 02, 2003 2:48 pm
Location: Southern Denmark

Another problem

Post by Dr.Dritz »

Hi there,
I didn't want to start a new topic so I hope there is room here for another Weathermap Q.

First let me say that Cacti keeps impressing me and my collegues, right now I have impressed my collegues with Weathermap.

Unfortunately something has changed. Suddently the editor says "NO DIRECTORY named configs" and when i go on and create a new map the icons are missing, if I choose to create a node no box is placed on the working area, I can locate it by watching the cursor change and select it but when I would like to change the icon there is nothing to chose among.

I have two working Weathermaps in the ../configs subdir and many icons in the ../images subdir.
I have checked the permissions on the two subdirs, they seem OK.

I have installed the plugin for download/upload routers switches configuration after Weathermap, could it be that it conflicts or has changed something that conflicts with Wheatermap.

My setup:
RH linux
PHP4
Apache
Cacti 0.8.6h

I have attached a pic of my plugins.

I hope someone can give me a clou what has been tampered with.

Greetings
- Dritz
Attachments
Shot of my Plugin Updates
Shot of my Plugin Updates
Cacti_Plugins.png (15.91 KiB) Viewed 10389 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Another problem

Post by Howie »

Dr.Dritz wrote: Unfortunately something has changed. Suddently the editor says "NO DIRECTORY named configs" and when i go on and create a new map the icons are missing, if I choose to create a node no box is placed on the working area, I can locate it by watching the cursor change and select it but when I would like to change the icon there is nothing to chose among.

I have two working Weathermaps in the ../configs subdir and many icons in the ../images subdir.
I have checked the permissions on the two subdirs, they seem OK.
You might want to try putting the full path to the configs directory in your editor config file, rather than the relative one. I guess it's possible that the current working directory isn't what the editor expects it to be.
Dr.Dritz wrote: I have installed the plugin for download/upload routers switches configuration after Weathermap, could it be that it conflicts or has changed something that conflicts with Wheatermap.
I don't think so... maybe try having weathermap before the other plugin in your config.inc.php if you don't already? If that does fix it, then I suppose the other plugin does cause a problem. I don't think it would with the editor though.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
HCT
Posts: 13
Joined: Tue Dec 06, 2005 1:45 pm

Post by HCT »

regarding to my problem with weathermap , yes i had installed the plugins architectureand i am already have Thold plugin working correctly .
also i can see the config file when i choose view the map from the console .
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

HCT wrote:regarding to my problem with weathermap , yes i had installed the plugins architectureand i am already have Thold plugin working correctly .
also i can see the config file when i choose view the map from the console .

And did changing to use the full path in the editor config file help?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
HCT
Posts: 13
Joined: Tue Dec 06, 2005 1:45 pm

Post by HCT »

i replaced to the full path in the editor config but it didn't work, i may can trace the problem if i know which part of the code is responsible for reading the config file and producing the images. :( .
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

HCT wrote:i replaced to the full path in the editor config but it didn't work, i may can trace the problem if i know which part of the code is responsible for reading the config file and producing the images. :( .
(sorry - I got confused there - the full path thing was for Dritz)

If you get nothing at all in the logs, then something is seriously wrong.

All code for the plugin goes through setup.php Since the user-interface is working, then that code is mostly fine.

The poller_bottom() function is the part that runs during the poller cycle. You might want to try running the poller.php from the command line (php poller.php) to see if there are any errors that don't end up in the logs for some reason.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Dr.Dritz
Posts: 44
Joined: Wed Apr 02, 2003 2:48 pm
Location: Southern Denmark

Full path in the editor config solved one of my problems.

Post by Dr.Dritz »

Hi again Howie,
- sorry for the confusion.
Tnx for your prompt support!

Full path in the editor config solved one of my problems. Now my maps are in the list and I'm able to click them open.
But there are no icons (and no images are available)

If I open my maps via the WeatherMap tab (normal viewing), the icons are there.


- Dritz
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Full path in the editor config solved one of my problems

Post by Howie »

Dr.Dritz wrote:Full path in the editor config solved one of my problems. Now my maps are in the list and I'm able to click them open.
But there are no icons (and no images are available)

If I open my maps via the WeatherMap tab (normal viewing), the icons are there.
OK. What do your icon lines look like? If something is screwing with the current directory, as it seems, then you probably need the full path for the icons too, unfortunately.

Actually, before you do that, try adding

Code: Select all

chdir(dirname(__FILE__));
to the start of editor.php, just after the <?php line
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Dr.Dritz
Posts: 44
Joined: Wed Apr 02, 2003 2:48 pm
Location: Southern Denmark

Full path in the editor config solved one of my problems

Post by Dr.Dritz »

Hi again,
I have put in chdir(dirname(__FILE__)); into editor.php but no change.
Where do I have to put in the path for my images dir?

- Dritz
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Full path in the editor config solved one of my problems

Post by Howie »

Dr.Dritz wrote:Hi again,
I have put in chdir(dirname(__FILE__)); into editor.php but no change.
Where do I have to put in the path for my images dir?

- Dritz
Anywhere you have an ICON or BACKGROUND line in your map config.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Dr.Dritz
Posts: 44
Joined: Wed Apr 02, 2003 2:48 pm
Location: Southern Denmark

Post by Dr.Dritz »

.... but the cacti/plugins/weathermap/weathermap-cacti-plugin.php?action=viewmap&id=3 (viewing a map) works!

Its only when 'wysiwyg' editing/creating a map I'm having trouble. The editor claims that no images exist.

Somehow the viewer doesn't have trouble interpreting the map config.

:roll:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest