cli: add_tree.php --node-type=graph problem

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

Moderators: Developers, Moderators

Post Reply
x86
Posts: 1
Joined: Mon Jan 17, 2011 6:40 am

cli: add_tree.php --node-type=graph problem

Post by x86 »

Hi guys.

I'm struggling with cli way of adding new graphs to the tree. I tried "php add_tree.php --type=node --node-type=graph --tree-id=1 --graph-id=326".
It returned me "Added Node node-id: (405)". But there's no new graphs in expected place. tree-id and graph-id was specified definitely right.
However I can see newly added graph in configuration mode in "Graph Trees" menu (Console -> Graph Trees), but it doesn't have name(last two graphs, see attachement)
I also tried to add graphs in usual way - it works well, so problem occures only when I use cli. Logs are clean.
Any help would be appreciated, thanks in advance.
Cacti Version - 0.8.7e
Plugin Architecture - 2.6
Poller Type - CMD.php
Server Info - Linux 2.6.18-128.1.10.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.5
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, bcmath, dbase, gd, imap, json, mbstring, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, zip
MySQL - 5.1.41-3ubuntu12.3
RRDTool - 1.4.4
SNMP - 5.3.2.2
Plugins
  • Thresholds (thold - v0.4.1)
    Host Info (hostinfo - v0.2)
    Network Tools (tools - v0.3)
    Device Monitoring (monitor - v0.8.2)
    Create Aggregate Graphs (aggregate - v0.74)
    PHP Network Weathermap (weathermap - v0.97a)
    Realtime Graph Viewer (realtime - v0.43)
Attachments
cacti-bug1.png
cacti-bug1.png (16.19 KiB) Viewed 512 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: cli: add_tree.php --node-type=graph problem

Post by gandalf »

Thanks for posting this.
I suppose, that the graph id does not exist. So a check was missing and I added that to current SVN code. You may pull latest version from svn to fix that issue
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests