I'm trying to upgrade to 1.2.27 and have managed to get the main install setup, but when trying to setup a remote poller I run into an issue after the web ui installer is complete.
System log file is not available for writing, please enable write access Log: /opt/cacti/log/cacti.log
The log file location mentioned is the location on the main poller not the remote poller, I've tried adjusting permissions/ownership with no luck. I've searched through the forums but I'm not finding a solution to this exact problem.
Both instances are running Ubuntu 22.04.
Any guidance would be greatly appreciated.
Remote Poller Issue
Moderators: Developers, Moderators
Re: Remote Poller Issue
Run this SQL query on main and remote poller:
select * from settings where name = 'path_cactilog';
It is the path where log is expected. Check correct permissions on both.
select * from settings where name = 'path_cactilog';
It is the path where log is expected. Check correct permissions on both.
Let the Cacti grow!
-
- Posts: 2
- Joined: Wed Aug 07, 2024 10:30 pm
Re: Remote Poller Issue
On main:
mysql> select * from settings where name='path_cactilog';
+---------------+--------------------------+
| name | value |
+---------------+--------------------------+
| path_cactilog | /opt/cacti/log/cacti.log |
+---------------+--------------------------+
drwxrwxrwx 2 cacti www-data 4096 Oct 1 12:17 log
-rwxrwxrwx 1 cacti www-data 372 Oct 1 12:20 cacti.log
On remote:
mysql> select * from settings where name='path_cactilog';
+---------------+-----------------------------------+
| name | value |
+---------------+-----------------------------------+
| path_cactilog | /var/www/html/cacti/log/cacti.log |
+---------------+-----------------------------------+
drwxrwxrwx 2 www-data www-data 4096 Oct 2 04:00 log
-rwxrwxrwx 1 www-data www-data 29759 Oct 2 16:35 cacti.log
Is my problem that the main is running under the user 'cacti' while the remote is running under the user 'www-data' even though permissions should allow any?
mysql> select * from settings where name='path_cactilog';
+---------------+--------------------------+
| name | value |
+---------------+--------------------------+
| path_cactilog | /opt/cacti/log/cacti.log |
+---------------+--------------------------+
drwxrwxrwx 2 cacti www-data 4096 Oct 1 12:17 log
-rwxrwxrwx 1 cacti www-data 372 Oct 1 12:20 cacti.log
On remote:
mysql> select * from settings where name='path_cactilog';
+---------------+-----------------------------------+
| name | value |
+---------------+-----------------------------------+
| path_cactilog | /var/www/html/cacti/log/cacti.log |
+---------------+-----------------------------------+
drwxrwxrwx 2 www-data www-data 4096 Oct 2 04:00 log
-rwxrwxrwx 1 www-data www-data 29759 Oct 2 16:35 cacti.log
Is my problem that the main is running under the user 'cacti' while the remote is running under the user 'www-data' even though permissions should allow any?
Re: Remote Poller Issue
If you are running main cacti under user "xxxx", so user "xxxx" needs permission to /opt/cacti/log/cacti.log
If you are running remote poller under user "yyyy", so user "yyyy" needs permission to /var/www/html/cacti/log/cacti.log
If you are running remote poller under user "yyyy", so user "yyyy" needs permission to /var/www/html/cacti/log/cacti.log
Let the Cacti grow!
Who is online
Users browsing this forum: No registered users and 0 guests