MRTG: WARNING: Problem with External get

wordpress Hosting

WARNING: Problem with External get ‘/etc/mrtg/system swap’:
Expected a Number for ‘in’ but got ”

WARNING: Problem with Externale get ‘/etc/mrtg/system swap’:
Expected a Number for ‘out’ but got ”

Solution:

root#vim /etc/mrtg/system

if [ “$TYPE” = “swap” ]; then

INDATA=`/usr/bin/free -b | grep “Swap:” | sed ‘s/ * / /g’ | cut -d ‘ ‘ -f2`

OUTDATA=`/usr/bin/free -b | grep “Swap:” | sed ‘s/ * / /g’ | cut -d ‘ ‘ -f3`
fi


Cpanel Hosting