Problems editing existing conf files

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
Alchemist
Posts: 4
Joined: Wed Nov 15, 2006 9:59 pm
Location: sydney.australia

Problems editing existing conf files

Post by Alchemist »

Hello,

Sorry to make my first post here a request, but I've searched and tried everything I can think of and I'm still stuck.

Basically I can get a weathermap working and displaying information, but as soon as I edit the .conf file(even just opening without and change and closing) it will stop the graph working.

Once I edit an existing map instead of the map displaying I merely get "this map has not been created yet" usually it will do with for 5 minutes whilst it is gathering information, but I let it run for 2 hours and still no map.

Here is my config files, can anyone see anything terribly wrong with it or is there a correct way to exit the editor.php. I also tried just editing with text and I get the same result.

Can you have a map "active" whilst editing the conf? I've tried de-activating a map before editing and still have this same problem.

I just made another map OK, but if I edit the conf. it will stop.

Any ideas/suggestions?

-------------------------------------

Automatically generated by php-weathermap v0.82

WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib

KEYPOS 3 600 Traffic Load
TIMEPOS 677 17 Created: %b %d %Y %H:%M:%S

KEYTEXTCOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE 1 10 140 0 255
SCALE 10 25 32 32 255
SCALE 25 40 0 192 255
SCALE 40 55 0 240 0
SCALE 55 70 240 240 0
SCALE 70 85 255 192 0
SCALE 85 100 255 0 0

# End of global section

# DEFAULT definitions:
LINK DEFAULT
BWLABEL bits
WIDTH 3
BANDWIDTH 100M


# End of DEFAULTS section

# Node definitions:
NODE node1163638228
LABEL 4507
INFOURL 4507
OVERLIBGRAPH 4507
POSITION 464 355

NODE node1163638244
LABEL c3560PS-Helpdesk
INFOURL c3560PS-Helpdesk
OVERLIBGRAPH c3560PS-Helpdesk
POSITION 622 259

NODE node1163641955
LABEL 3640
INFOURL 3640
OVERLIBGRAPH 3640
POSITION 537 450

NODE node1163642065
LABEL 2610
INFOURL 2610
OVERLIBGRAPH 2610
POSITION 661 518

NODE node1163644969
LABEL c3560G-516-Server
INFOURL c3560G-516-Server
OVERLIBGRAPH c3560G-516-Server
POSITION 355 202


# End of NODE section

# Link definitions:
LINK node1163638228-node1163638244
INFOURL /graph.php?rra_id=all&local_graph_id=40
OVERLIBGRAPH /graph_image.php?local_graph_id=40&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
BWLABEL percent
TARGET /var/www/html/rra/4507_traffic_in_42.rrd
WIDTH 7
NODES node1163638228 node1163638244
BANDWIDTH 1000M

LINK node1163638228-node1163641955
INFOURL /graph.php?rra_id=all&local_graph_id=58
OVERLIBGRAPH /graph_image.php?local_graph_id=58&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
BWLABEL percent
TARGET /var/www/html/rra/4507_traffic_in_60.rrd
NODES node1163638228 node1163641955

LINK node1163641955-node1163642065
BWLABEL percent
NODES node1163641955 node1163642065

LINK node1163638228-node1163644969
INFOURL /graph.php?rra_id=all&local_graph_id=157
OVERLIBGRAPH /graph_image.php?local_graph_id=157&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /var/www/html/rra/c3560g516server_traffic_in_158.rrd
NODES node1163638228 node1163644969
BANDWIDTH 1000M


# End of LINK section
Last edited by Alchemist on Thu Nov 16, 2006 6:16 pm, edited 2 times in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problems editing existing conf files

Post by Howie »

Alchemist wrote:Once I edit an existing map instead of the map displaying I merely get "this map has not been created yet" usually it will do with for 5 minutes whilst it is gathering information, but I let it run for 2 hours and still no map.
OK. At this stage, the first thing to check is the Cacti log. If weathermap doesn't like your config file for any reason, it'll complain there. At least that way you know what it is that the editor is doing to your files :-)
Alchemist wrote: Here is my config files, can anyone see anything terribly wrong with it or is there a correct way to exit the editor.php. I also tried just editing with text and I get the same result.
Hmm. Then that smells of permission problems. Thinking about it, if you get "This map is not created yet", then it means that there has NEVER been a working map! The problem is not the editor - it sounds like even an unchanged map will do this. Check the log, and the permissions of the output directory.
Alchemist wrote: Can you have a map "active" whilst editing the conf? I've tried de-activating a map before editing and still have this same problem.
Yes you can. There is a fraction of a second while the editor rewrites the config file where there is a risk of a broken map for that poller cycle, but aside from that there's no issue, and the 'broken' map will be rewritten in the next cycle, if it ever happened...

The editor doesn't work like a normal text editor - it reads in the entire map config, makes the same internal model that the regular Weathermap tool does, then makes the change you request, then writes out a fresh config based on it's in-memory knowledge of the map. This is why comments disappear and nodes move around.
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!)
User avatar
Alchemist
Posts: 4
Joined: Wed Nov 15, 2006 9:59 pm
Location: sydney.australia

Post by Alchemist »

Thanks Howie, some good suggestions there, I will do a check on my folder permissions, I did disregard them initially as I had working maps, but maybe making the map with the editors "new file" tool creates it with default permissions that arn't right for my setup, will do some chmodding :P

Another thing I did as a test(just checked the results now) was just some basic modifications to the existing simple.conf file, just 2 nodes to see what was going on and even though I changed it it's still displaying data, so the issue only resides with new files I have created, I'm also leaning towards permissions now...

Anyway, will investigate when I get back in to work tomorrow.

Hope it's not permissions as I did see those topics covered alot on here...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Alchemist wrote: Hope it's not permissions as I did see those topics covered alot on here...
The main thing is, always check the logs. Especially in DEBUG mode, Weathermap will give you a lot of clues about what is going on. There are only a handful of situations where it won't.
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!)
User avatar
Alchemist
Posts: 4
Joined: Wed Nov 15, 2006 9:59 pm
Location: sydney.australia

Post by Alchemist »

Hi Guys,

Well, have progressed a little...

I might also add that I am running CactiEZ Beta 2

I found in another thread that the php.ini for the ISO is set to 8MB only, reading the experience of another CactiEZ user I adjusted the setting to 32MB and all my existing graphs have come good.

http://forums.cacti.net/viewtopic.php?t=17056

Thanks to Howie for this awesome plugin :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest