using add_device/add_graph problem

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

Moderators: Developers, Moderators

Post Reply
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

using add_device/add_graph problem

Post by celestian »

I have been working to move our site to Cacti but ran into a problem using add_graph.

I am able to add_device the host and even add_graph for the same host. However on the web/gui side the graphs do not show up on the host when I view devices, edit host, create graphs. Also when I view the edit host page it doesn't list any graphs for the device.

All that being said the graphs DO show up in the tree... I just cannot view them on the device->edit host page to tweak/delete them.

I am running cacti 0.8.7b.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the statements you've used for adding the device and for adding the graphs
Reinhard
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

Post by celestian »

Here is the command I used to add the host:

./add_device.php --description=HOST-DESCRIPTION --ip=host1.domain.com --template=1 --avail=snmp --notes="host-name-note" --version=3 --username=v3user --password=v3pass --authproto=MD5 --privproto=DES --privpass=v3privpass --community=SomeCommunity

Here is how I added the cpu utilization graph:

./add_graphs.php --graph-type=cg --graph-template-id=4 --host-id=13

here is how I added a graph for network interface:

./add_graphs.php --host-id=13 --graph-type=ds --graph-template-id=25 --snmp-query-id=1 --snmp-query-type-id=16 --snmp-field=ifDescr --snmp-value=bge0

On the "device list" page for these hosts is lists the number of graphs properly, the graph tab shows them, it's just the console->device->edit host doesn't show them to edit/delete ;(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This issue is resolved in SVN#4696

-bug#0001296: add_graphs.php does not add the graph template to the host

If documentation doesn't matter, simply download the new add_graph.php script from SVN. Make sure to call "--help" before using, because a new optional parameter --reindex-method was added due to data query issues.

Be aware, that 087c will feature two new clis cripts
- add-data-query.php and
- add-graph-template.php
which have been created independantly before your request.

Reinhard
celestian
Posts: 11
Joined: Wed Sep 03, 2008 11:06 am

Post by celestian »

Thank you very much!

I'll wait for the 087c release.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests