After many a moon I noticed that IPCop wasn’t behaving like it should, so a quick glance at the System Status Graphs showed that the inodes usage was 100%.
After laboriously troubleshooting the various possibilities I found that the SARG for IPCop I installed and then “hacked”, to work with the latest version, was the culprit. This caused the inodes not to be cleaned up correctly, which in turn slowly but surely filled the partition.
After removing SARG for IPCop everything returned to normal with 1% inodes usage.
Remove SARG from your IPCop installation:
# /var/ipcop/sarg/setup/setup -u
However, it doesn’t stop there.
After removing SARG from the IPCop box the network traffic graphs stopped working. I ran a couple of commands from the makegraphs script which turned up this error:# /usr/bin/squid-graph -o=/home/httpd/html/sgraph --tcp-only < /var/log/squid/access.log Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux/auto/GD/GD.so' for module GD: libfreetype.so.6: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux/DynaLoader.pm line 230. at /usr/bin/squid-graph line 16 Compilation failed in require at /usr/bin/squid-graph line 16. BEGIN failed--compilation aborted at /usr/bin/squid-graph line 16.
So removing SARG removed the following files that are required for network traffic graphs to function:
To recover these files download the SARG package, extract the archives and copy the relevant files back to their correct directories.# cd ~/ # tar zxvf sarg_ipcop_1.4.11.tar.gz # cd sarg/ # tar zxvf files.tar.gz # cd var/ipcop/sarg/setup/ # tar zxvf files.tar.gz # cp usr/lib/libgd.so.2 /usr/lib/ # cp usr/lib/libgd.so.2.0.0 /usr/lib/ # cp usr/lib/libgd.so /usr/lib/ # cp usr/local/lib/libfreetype.so /usr/local/lib/ # cp usr/local/lib/libfreetype.so.6.3.7 /usr/local/lib/ # cp usr/local/lib/libfreetype.so.6 /usr/local/lib/ # cd ~/ # rm -Rf sarg sarg_ipcop_1.4.11.tar.gz
After 10 minutes your should see the network traffic graphs come to life.
Moral of the story "Don't install a plugin that is not compatible with your version of IPCop"