Time for action – patching the Cacti files

  1. Change into the main Cacti directory:
    cd /var/www/html/cacti
    
  2. Do a dry-run to check the provided patch file. As you have PIA 2.9 installed you will see several errors. PIA 2.9 contains most of the patches already:
    patch -p0 -N --dry-run < plugins/autom8/patches-087g/cacti087g_autom8.patch
    
  3. Now apply the patch with the following command:
    patch -p0 -N < plugins/autom8/patches-087g/cacti087g_autom8.patch
    
  4. Check the .rej files for any errors. As already mentioned, most of these files complain about the patch already being applied as seen in the following console output of the patch command:
    Time for action – patching the Cacti files

What just happened? ...

Get Cacti 0.8 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.