Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


failed to open stream

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Thu Jun 21, 2007 2:46 pm    Post subject: failed to open stream Reply with quote

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

Back to top
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Fri Jun 22, 2007 1:46 pm    Post subject: Reply with quote

Fixed the permissions, and now it works.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Sun Jun 24, 2007 7:42 am    Post subject: Reply with quote

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.
Back to top
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Mon Jun 25, 2007 5:19 pm    Post subject: Reply with quote

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
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Mon Jun 25, 2007 5:24 pm    Post subject: Reply with quote

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).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group