I can't add new config file

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

I can't add new config file

Post by TFC »

Hi,
I delete my config file from cacti/Management/Weathermap
And I try to re-add
But page lists that nothing as "Available Weathermap Configuration Files" But ı have one more config file in /var/www/html/cacti/plugins/weathermap/configs , and permissions are nobody:nobody for all files...
Anybody have an idea?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: I can't add new config file

Post by Howie »

TFC wrote:Hi,
I delete my config file from cacti/Management/Weathermap
And I try to re-add
But page lists that nothing as "Available Weathermap Configuration Files" But ı have one more config file in /var/www/html/cacti/plugins/weathermap/configs , and permissions are nobody:nobody for all files...
Anybody have an idea?
I don't get this behaviour on my system...

What is the file called? What are the permissions of the configs directory?

I assume your webserver does actually run as nobody?
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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
File called as internet.conf and config dir. permission is nobody:nobody
And my apache run as apache
[root@citizen ~]# ps -ef |grep httpd
apache 2192 2124 0 Oct16 ? 00:00:35 /usr/sbin/httpd
apache 2193 2124 0 Oct16 ? 00:01:05 /usr/sbin/httpd
apache 2194 2124 0 Oct16 ? 00:00:35 /usr/sbin/httpd
apache 2195 2124 0 Oct16 ? 00:00:05 /usr/sbin/httpd
apache 2196 2124 0 Oct16 ? 00:00:05 /usr/sbin/httpd
apache 2197 2124 0 Oct16 ? 00:01:04 /usr/sbin/httpd
apache 2198 2124 0 Oct16 ? 00:00:52 /usr/sbin/httpd
apache 2199 2124 0 Oct16 ? 00:00:05 /usr/sbin/httpd
I added a conf file by using mysql (phpmyadmin).But using browser didn't.
But strange thing is when I add a link to conf file, another link is missing in map..
Is there ant link limitation in phpweathermap?
I increased memory size 128M in php.ini
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Hi,
File called as internet.conf and config dir. permission is nobody:nobody
And my apache run as apache
[root@citizen ~]# ps -ef |grep httpd
apache 2192 2124 0 Oct16 ? 00:00:35 /usr/sbin/httpd
apache 2199 2124 0 Oct16 ? 00:00:05 /usr/sbin/httpd
If your apache runs as 'apache', then thats the user that should own these things, not nobody. BUT, make them world-readable anyway, because your cacti user also needs to be able to read the file as part of the poller process.
TFC wrote:I added a conf file by using mysql (phpmyadmin).But using browser didn't.
But strange thing is when I add a link to conf file, another link is missing in map..
Is there ant link limitation in phpweathermap?
I increased memory size 128M in php.ini
No - no limit to links. Is it possible they both have the same name? The second one would 'hide' the first one then.

The memory size is mainly to do with the size of the image in pixels - you would need to have a LOT of links to hit a memory limit, and then you would get no map at all, not missing links.
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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi Howie,
The second problem is described in http://forums.cacti.net/viewtopic.php?t=16778
As you see there is no same name issue.
Because, when I try to add a link another link misses. if I try to add one more links again 2 link miss...
I mean number of links is constant :)
This is very strange..
I try smae thing in older version weathermap, same behaviour occurs.
You can see the config file and graph in the link shown above
Additonally tere is debug logs...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Hi Howie,
The second problem is described in http://forums.cacti.net/viewtopic.php?t=16778
As you see there is no same name issue.
Because, when I try to add a link another link misses. if I try to add one more links again 2 link miss...
I mean number of links is constant :)
This is very strange..
I try smae thing in older version weathermap, same behaviour occurs.
You can see the config file and graph in the link shown above
Additonally tere is debug logs...
OK - I answered in the other thread. It is the same name, but it's not obvious :-)

I can't recreate your file-picking problem though. I still feel it's permissions-related.
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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Let me some time to try to run apache with nobody..
Then i can update this messages..
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Let me some time to try to run apache with nobody..
Then i can update this messages..
Why not try the other way?

Code: Select all

chown -R apache configs/
chmod -R g+r configs/
chmod g+x configs
Saves you having to reconfigure apache! :-)
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