Scripting adding IP's with descriptions embedded in a tree?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
JMH
Posts: 16
Joined: Thu Aug 25, 2016 5:09 pm

Scripting adding IP's with descriptions embedded in a tree?

Post by JMH »

Tree Trunk
-Subtrunk
--mydevice;ip;snmpversion;snmpcommunity;hosttemplate

Can I do this with a script?
Where do I specify which tree it goes under?

Looking at page 275, in chapter 12, it is for adding tree rules.

I don't have "tree rules."

[edit]... probably because I don't have Autom8...[/edit]

Collection Methods
Data Queries
Data Input Methods

Templates
Graph Templates
Host Templates
Data Templates
Report Templates
Threshold Templates
Discovery Templates

Import/Export
Import Templates
Export Templates
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - Linux 2.6.24-23-server
Web Server - Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch
PHP - 5.2.4-2ubuntu5.17
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mcrypt, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.51a-3ubuntu5.8
RRDTool - 1.2.19
SNMP - 5.4.1
Plugins
  • Global Plugin Settings (settings - v0.5)
    Thresholds (thold - v0.3.9)
    Network Discovery (discovery - v0.8.4)
    Cacti-ReportIt (reportit - v0.7.1)
    Host Info (hostinfo - v0.2)
    Device Monitoring (monitor - v0.8.2)
JMH
Posts: 16
Joined: Thu Aug 25, 2016 5:09 pm

Re: Scripting adding IP's with descriptions embedded in a tr

Post by JMH »

The person who installed Cacti originally decided to go against the cd /var/www/html/cacti/plugin standard.

Instead I have a file structure that's all over the place.

Is there a way to install a patch or plugin through the web gui?


root@cacti-2:/var/www/html/cacti# patch -p0 -N < cacti-plugin-arch/files-0.8.7g/plugins/trunk/patches-087g/cacti087g_autom8.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nabur cli/add_graph_template.php cli/add_graph_template.php
|--- cli/add_graph_template.php 2010-07-10 00:33:46.000000000 +0200
|+++ cli/add_graph_template.php 2010-07-12 20:32:22.134082064 +0200
--------------------------
File to patch:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests