Time for action – adding a single device to Cacti

  1. Logon to your Cacti system.
  2. Change to the Cacti CLI directory:
    cd /var/www/html/cacti/cli
    
  3. Execute the following command:
    php add_device.php
    
  4. You will see a list of all available options. Here you can see a short summary of these:
    Time for action – adding a single device to Cacti
  5. Let's assume that you are using a global SNMP community which you have defined in the General section on the Cacti settings page. Then you can add a device using the following syntax:
    php add_device.php --ip="192.168.178.53" --description="myCLIDevice" --template=1
    
  6. This will add a "Generic SNMP-enabled host" to Cacti as seen in the following image:

What just happened?

You just ...

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.