Skip to content

Log files are not rotated properly on remote pollers #3629

Closed

Description

@bmfmancini

Hey, everyone!

I notice that on 1.2.12 log files are not rotating but only on the remote pollers
the GUI is able to access the log and purge it so all permissions seem to be fine

I know this worked up until 1.2.11

on the main poller, the logs rotate just fine

I went to each remote poller and re-saved the log settings just in case but no difference

Activity

  1. netniV commented on Jun 19, 2020

    @netniV
    Member

    The rotation logic itself hasn't changed in a long while but does make me wonder if the log rotation date has been syncrhonised as it's in the settings table.

  2. bmfmancini commented on Jun 20, 2020

    @bmfmancini
    MemberAuthor
  3. TheWitness commented on Jun 20, 2020

    @TheWitness
    Member

    There are just few settings not replicated, mostly '%path%' related. When you are in 'online' mode, anything you save with the exception of '%path%' for the most part is saved on the main data collector. In offline mode, you can override only until the next full sync though pretty sure.

  4. netniV commented on Jun 20, 2020

    @netniV
    Member

    If log rotation dates are synced we should do that

  5. TheWitness commented on Jun 20, 2020

    @TheWitness
    Member

    Well, looking at poller_maintenance.php, it looks like some things should first be bypassed, second, we should force the database to use a local connection when it's running on the remote collector.

    I'm okay doing this for the 1.2.x branch. How about you?

  6. added this to the 1.2.13 milestone on Jun 20, 2020
  7. added a commit that references this issue on Jun 21, 2020
  8. TheWitness commented on Jun 21, 2020

    @TheWitness
    Member

    I did a little restructuring of the maintenance script and nothing jumped out at me. I'll keep looking.

  9. changed the title [-]Cacti v1.2.12 log files not rotating on Remote pollers [/-] [+]Log files are not rotated properly on remote pollers[/+] on Jun 28, 2020
  10. locked and limited conversation to collaborators on Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions