Time for action – patching the Cacti files
Change into the main Cacti directory:
cd /var/www/html/cacti
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
Now apply the patch with the following command:
patch -p0 -N < plugins/autom8/patches-087g/cacti087g_autom8.patch
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:
What just happened?
You just added the required functions to the core Cacti files. As you already have PIA 2.9 installed, most of these functions were already added when you installed PIA 2.9. Therefore, the patching process complains about previously applied patches.
Autom8 rules
Autom8 uses rules which are triggered by special events such as:
Adding a new device...