-->
  • Recent Articles

    Error : file size limit exceeded in Cacti

     Error : file size limit exceeded  in Cacti

     /bin/bash: line 1: 23691 File size limit exceededphp /srv/www/htdocs/cacti/poller.php

     Resolution:
     1. The error comes when the cacti log excedded the size. /srv/www/htdocs/cacti/log/cacti.log
     2. To solve the situation you need to clear cacti.log.
     [monit2:~]# ll /srv/www/htdocs/cacti/log/cacti.log
    -rw-r--r-- 1 apache apache 37824176 Dec 13 16:03 /srv/www/htdocs/cacti/log/cacti.log

    Preventive action:

    1. Create logrotate file for cacti.
    /srv/www/htdocs/cacti/log/cacti.log {
            # keep ten days  of versions online
            rotate 10
            # Rotate upon crossing below size
            size 1024M
            # rotate the log weekly
            #weekly
            daily
            create 644 apache apache
            dateext
            # compress the logs
            compress
    }
    2. Test the config and force a rotation.

    logrotate -f /etc/logrotate.conf

    In most of cases when this issue occurs, you'll have a corrupted output table. To fix that please follow this link.

    No comments