failed to open stream

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

failed to open stream

Post by StarLog »

I have just started to use weathermap, and while testing with the example.cfg I clicked the Node 1 to change the label to Switch-1.
This is the error I get:

Warning: fopen(configs/simple.conf) [function.fopen]: failed to open stream: Permission denied in /www/htdocs/plugins/weathermap/Weathermap.class.php on line 4405

I have changed the ownership to daemon, and still no joy.
How do I fix this.? Thanks

Image
Cacti v0.8.8a
Weathermap 9.7a
--------------------
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

Post by StarLog »

Fixed the permissions, and now it works.
Cacti v0.8.8a
Weathermap 9.7a
--------------------
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

I've added a note in the file-selector for the next release that says "read-only" next to files that you won't be able to edit.
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!)
StarLog
Cacti User
Posts: 150
Joined: Sat Jun 02, 2007 3:57 pm

Post by StarLog »

Howie,

I found that if I created a NEW map with the editor, then I was the owner, and had to make no changes to the permission. At that point, I was able to edit and create the new map as i wished. Adding the note is a good idea.

Thanks
Cacti v0.8.8a
Weathermap 9.7a
--------------------
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

StarLog wrote:Howie,

I found that if I created a NEW map with the editor, then I was the owner, and had to make no changes to the permission. At that point, I was able to edit and create the new map as i wished. Adding the note is a good idea.

Thanks
Yes, that would be true - those files were created by the same unix user that would be writing over them later. Unfortunately, there isn't really any clever way around this permissions stuff - it's just a side-effect of the way the two parts of weathermap are run (the editor and the poller).
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest