cli/add_graphs.php

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
custu2000
Posts: 5
Joined: Tue Aug 30, 2011 9:34 am

cli/add_graphs.php

Post by custu2000 »

Hi,

I've recently used cli/add_graphs.php in order to automatically generate different graphs. I've notice a strange behavior when the add_graphs.php returns the same graph for different "--snmp-query-type-id" values and the same "--graph-template-id=".

Command 1)
php ../add_graphs.php --host-id=6 --graph-type=ds --snmp-query-id=23 --snmp-query-type-id=88 --graph-template-id=59 --snmp-field=sgsn --snmp-value=Global
Graph Added - graph-id: (54267) - data-source-ids: (54275, 54275)

Command 2)
php ../add_graphs.php --host-id=6 --graph-type=ds --snmp-query-id=23 --snmp-query-type-id=87 --graph-template-id=59 --snmp-field=sgsn --snmp-value=Global
NOTE: Not Adding Graph - this graph already exists - graph-id: (54267) - data-source-id: (54275)

I've also tested the web interface (Create ->New Graphs link) and everything works correctly.
I suspect a software issue. Please let me know if there is a solution.

Regards,
Cristian
custu2000
Posts: 5
Joined: Tue Aug 30, 2011 9:34 am

Re: cli/add_graphs.php

Post by custu2000 »

I've forgotten to mention that I'm using cacti-0.8.7g
custu2000
Posts: 5
Joined: Tue Aug 30, 2011 9:34 am

Re: cli/add_graphs.php

Post by custu2000 »

I've found a solution by duplicating the graph template and the graph is generated correctly.
Regards,
Cristi
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest