Remote Poller Issue

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
eliminster1398
Posts: 2
Joined: Wed Aug 07, 2024 10:30 pm

Remote Poller Issue

Post by eliminster1398 »

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.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Remote Poller Issue

Post by macan »

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.
Let the Cacti grow!
eliminster1398
Posts: 2
Joined: Wed Aug 07, 2024 10:30 pm

Re: Remote Poller Issue

Post by eliminster1398 »

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?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Remote Poller Issue

Post by macan »

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
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests