...
** Are you able to sudo as cactiuser? "sudo su cactiuser"
You will need "fix-scripts" folder created somewhere on your local machine. In my case I have it under "C:\Users\Omar\projects\fix-scripts"
Copy the produced files (C:\Users\Omar\projects\fix-scripts) to my home directory on "prod-cacti01-fra-de.geant.net", I've been using WinSCP client on Windows 10, and then copy the files to "/home/cactiuser/scripts" on "prod-cacti01-fra-de.geant.net"
Tip: To copy multiple files: sudo cp fix_* /home/cactiuser/scripts/
You will need to convert files from Dos to Unix - https://stackoverflow.com/questions/9374991/how-to-convert-files-from-dos-to-unix
- Run "sudo dos2unix ./fix*" inside "/home/cactiuser/scripts"
- THEN run "sudo ./fix_monthly_utilisation.sh -y 2017 -m 7" ** Pay attention to the year and the month value in the command.
You don't need to worry about the steps below. The scripts below are what you've already generated from cacti-utilisation application and copied them from fix-scripts folder.
==================================================================================================================================
Run the following command:
...
This scripts calls the following scripts:
./fix_ip_access.sh -y $year -m $month >> /tmp/cacti_util_ip_access_$year_$month.log
./fix_ip_access_ias.sh -y $year -m $month >> /tmp/cacti_util_ip_access_ias_$year_$month.log
./fix_ip_access_ipv6.sh -y $year -m $month >> /tmp/cacti_util_ip_access_ipv6_$year_$month.log
./fix_interconnect.sh -y $year -m $month >> /tmp/cacti_util_interconnect_$year_$month.log
./interconnect_port_summ.sh -y $year -m $month >> /tmp/cacti_util_interconnect_port_summ_$year_$month.log
./fix_interconnect_ipv6.sh -y $year -m $month >> /tmp/cacti_util_interconnect_ipv6_$year_$month.log
./fix_trunks.sh -y $year -m $month >> /tmp/cacti_util_trunks_$year_$month.log
./fix_dws.sh -y $year -m $month >> /tmp/cacti_util_dws_$year_$month.log
./fix_plus.sh -y $year -m $month >> /tmp/cacti_util_plus_$year_$month.log
./fix_lhcone.sh -y $year -m $month >> /tmp/cacti_util_lhcone_$year_$month.log
./fix_eap.sh -y $year -m $month >> /tmp/cacti_util_eap_$year_$month.log
===================================================================================================================================
NOTE: for this page http://test-msr.geant.net:8888/msr/ip_util_ip.jsp the "Usage Peaks" percentage values are taken from opsdb directly not from the opsdb version sitting on MSR. So, in case of weird ( >100%) values in this page, you'll need to re-import opsdb script "opsdb_import_new.sh" which is shown in page 1.1 in this documentation.
** You can see that log files are produced in the /tmp direcory of prod-cacti-fra-de.geant.net. These are useful when diagnosing zero values displayed in the MSR utilisation pages.
...