Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    89

    Default Rotation for Large Munin log files [Case 37444]

    My /var/log/munin folder files are getting quite large and wandered is there a setting somewhere i have missed to delete old data or a log rotation etc

    -rw-r--r-- 1 munin munin 465M Jan 21 19:55 munin-graph.log
    -rw-r--r-- 1 munin munin 364M Jan 21 19:55 munin-html.log
    -rw-r--r-- 1 munin munin 63M Jan 21 19:55 munin-limits.log
    -rw-r--r-- 1 root wheel 77M Jan 21 19:55 munin-node.log
    -rw-r--r-- 1 munin munin 1.3G Jan 21 19:55 munin-update.log

  2. #2
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    220

    Default

    Does anybody have an answer to this?

    My munin-update.log file is 1.7 gig -


    [root@host munin]# du -sh *
    583M munin-graph.log
    456M munin-html.log
    77M munin-limits.log
    91M munin-node.log
    1.7G munin-update.log
    Get your hosting business listed on www.HostPremiums.com.
    Visit www.decomodo.com for cool stuff you can't live without.

  3. #3
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    220

    Default

    After contacting cpanel support, I've cleared the munin-update.log file manually.

    These logs should be included in cpanel's log rotation functionality. Please add this functionality.

    Thanks.

    Mike
    Get your hosting business listed on www.HostPremiums.com.
    Visit www.decomodo.com for cool stuff you can't live without.

  4. #4
    Member chican0's Avatar
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    59

    Default re: Rotation for Large Munin log files [Case 37444]

    How did you clear the log? What command did you use?

  5. #5
    Member
    Join Date
    Dec 2001
    Location
    Long Beach, NY
    Posts
    220

    Default re: Rotation for Large Munin log files [Case 37444]

    I do not fully recall the details on this, but I actually think that we simply deleted the log files with no impact to munin.

    Take a look at their content. I believe that the details are not anything important. However, you can simply backup the files and move them to a directory in a partition where you have more space.

    Then run Munin and I believe it will simply start a new log file with no adverse impact.

    For future, you could make a symbolic link using ln command, which points to another directory in a partition where you have more space.

    Hope that helps.

    Mike
    Get your hosting business listed on www.HostPremiums.com.
    Visit www.decomodo.com for cool stuff you can't live without.

  6. #6
    Member
    Join Date
    Oct 2010
    Posts
    76

    Default re: Rotation for Large Munin log files [Case 37444]

    Please can anyone describe how to put this /var/log/munin/munin-update.log into rotation (periodically clear it) if its proper way?

    pico /etc/logrotate.conf

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Rotation for Large Munin log files [Case 37444]

    I spoke with a developer about this. The Munin log files are stored in /var/log which is managed/rotated by the operating system, hence we do not rotate any logs there. The logs that cPanel rotates are those outside /var/log such as those in /usr/local/cpanel/logs/ and thus not managed by your OS.

    Essentially, we'd need to move the Munin log file (a customization to the Munin software, which would noticeably slow deployment of new versions of Munin) to avoid any conflicts with the OS.

  8. #8
    Member
    Join Date
    Dec 2004
    Location
    Australia
    Posts
    33

    Default re: Rotation for Large Munin log files [Case 37444]

    This what I did hope it helps someone.

    Create a file called munin in

    /etc/logrotate.d

    and place the bellow in it (change the options to what you want).

    Code:
    /var/log/munin/*log {
        weekly
        size 50M
        rotate 5
        compress
        missingok
        notifempty
        sharedscripts
        postrotate
             /sbin/service munin-node restart > /dev/null 2>/dev/null || true
        endscript
    }
    Some servers are already rotating the munin logs...?

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Rotation for Large Munin log files [Case 37444]

    As Munin is installed by cPanel as a plugin, have the plugin add a logrotate.d rule seems reasonable.

  10. #10
    Member SageBrian's Avatar
    Join Date
    Jun 2002
    Location
    NY/CT (US)
    Posts
    386

    Default re: Rotation for Large Munin log files [Case 37444]

    Quote Originally Posted by ethix View Post
    This what I did hope it helps someone.

    Create a file called munin in

    /etc/logrotate.d

    and place the bellow in it
    very helpful. Thank you.
    Have your own Personal Web Address yet? GetMyFamilyName.com
    On this forum nobody needs Professional Website Management, but I put this for silly PR - SevenSages.com

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Rotation for Large Munin log files [Case 37444]

    I spoke to our Product Manager about adding Munin logs to logroate.d by default - turns out we've already got a case on it but it's been sitting idle for a while. I added some new information to our internal case to get things moving along .

  12. #12
    Member
    Join Date
    Dec 2010
    Posts
    7
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Rotation for Large Munin log files [Case 37444]

    Quote Originally Posted by SageBrian View Post
    Create a file called munin in

    /etc/logrotate.d

    and place the bellow in it

    very helpful. Thank you.
    Yes for me too, but since applied, shouldn't we see the file next to the others in the log rotation list ?

  13. #13
    Member Joriz's Avatar
    Join Date
    Aug 2004
    Location
    the Netherlands
    Posts
    20
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: Rotation for Large Munin log files [Case 37444]

    Thank you ethix!

    Hope this solves my big munin-update.log problem
    Phost.nl - Your Personal Host!
    Phost.nl offers cPanel webhosting and related services in the Netherlands for SMEs and private persons.

  14. #14
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Rotation for Large Munin log files [Case 37444]

    Update: This is currently being targeted for version 11.34.

  15. #15
    Member
    Join Date
    Jun 2006
    Posts
    214

    Default Re: Rotation for Large Munin log files [Case 37444]

    Great! Will 11.34 also include munin 1.47 or perhaps 2.0 will be released by then?

Similar Threads & Tags
Similar threads

  1. Log rotation
    By nitaish in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-08-2011, 01:12 PM
  2. Log Rotation
    By zigzam in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-02-2009, 07:06 AM
  3. Auto clean up large spamassassin log files
    By wkdwich in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 10-08-2006, 08:38 AM
  4. Log Rotation
    By sketchified in forum cPanel and WHM Discussions
    Replies: 43
    Last Post: 12-10-2002, 09:02 AM
  5. Log Rotation?
    By Curious Too in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-02-2002, 12:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube