Autom8 V0.33

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

meralias wrote:Just checking if anyone else is seeing this problem:
Just installed 0.35b5 under an copy of cacti v0.8.7g. I go into 'Tree Rules', click on 'Add', enter a name and then change the 'Tree' dropdown to a different tree.
The page then automatically reloads and the 'Tree' setting has reverted back to the first item in the list.
Thank you for reporting. I fixed the problem. New beta attached
R
Attachments
autom8-v0.35b6.tgz
(59.69 KiB) Downloaded 538 times
Last edited by gandalf on Mon Aug 02, 2010 1:31 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

killshoot wrote:Here we go,

It seems that we have a last problem when directly adding graphs in tree instead of hosts.

In fact the graphs are never added to the tree (even if the tree leaf is manually created).
I can't reproduce.
What I did:
Created a tree rule, associated to a given tree. Leaf Item = Graph. Sub-Tree was once chosen and once [root].
Went to Graph Management, selected a bunch of graphs and "Apply Autom8 Rules to Graph(s)".
Verified at "Graph Trees", that graphs were hooked to that Tree (Subtree).

Please select "Settings -> Misc -> Logging Level for Autom8" to high and grep cacti.log for AUTOM8 when next running the rules from Graph Management (the above is only a short glance at it).
R.
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

Hi,

Here the logs when I go in Graph Management, selected a bunch of graphs and "Apply Autom8 Rules to Graph(s)". Mode high:

Code: Select all

08/03/2010 12:57:31 PM - AUTOM8 TRACE: Poller[0] autom8_graph_action_execute called
08/03/2010 12:57:29 PM - AUTOM8 TRACE: Poller[0] autom8_graph_action_prepare called 
Same thing with log in debug amd devel logging. Am I doing something wrong?

P.S : I still use the Cacti 0.87e...

Regards,

Vince
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If that is all you can get, I suppose either the rule or tree rules at all are deactivated. I certainly know that AGGREGATE debug level of HIGH is really _chatty_
R.
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

Well I've done a double check and everythings is enabled.

I've 144 "tre rules". 143 add the hosts to the tree and run perfect. The only one that add graphs to the tree doesn't run.

Do you want a dump for autom8 mysql table?

Regards,

Vince
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

After doing some more tests I can see that the rule is trigged ONLY when I add a new device
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

killshoot wrote:Do you want a dump for autom8 mysql table?
Yep. And a most precise description on how to reproduce.
R.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

hello,

is it possible to have a graph/tree rule that adds a device like this:

Code: Select all

root
  |----- device1
             |-------interface1
             |             |-------bit/s
             |             |-------pps
             |-------interface2
                           |-------bit/s
                           |-------pps

thanks,
Dan
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What (graph, device) shall be added where (at the leaf of your tree? Shall it create the tree itself?)?
If you want multiple additions, you will need multiple rules.
Some examples are already given in the PDF file that's published at the 3rd link of my sig, when selecting this plugin.
R.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

gandalf wrote:What (graph, device) shall be added where (at the leaf of your tree? Shall it create the tree itself?)?
If you want multiple additions, you will need multiple rules.
Some examples are already given in the PDF file that's published at the 3rd link of my sig, when selecting this plugin.
R.
the root tree exists, then when I add the device I want to create a leaf with device name, then query for interfaces and for every interfece (doesn't matter the state) create another leaf with interface name under device name, then under each interface name place sa graphs I want to be created... hope it is more clearly now

is this possible ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

timi wrote:hello,

is it possible to have a graph/tree rule that adds a device like this:

Code: Select all

root
  |----- device1
             |-------interface1
             |             |-------bit/s
             |                   |----- new graph???
             |             |-------pps
             |-------interface2
                           |-------bit/s  == new graph???
                           |-------pps

thanks,
Dan
So you want to place a graph (of a device), not the device itself, correct?

Do you want to place the traffic graph under "bits/s" (see above, upper example, so there's only a single traffic graph under that very branch) or do you want to place it under the interface itself (see above, lower example, so you'll place it on the same level as the pps graph)?

R.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

yes, first add just the device name then add every interface name

and under the interface itself I want to add the graphs for it
hid3
Cacti User
Posts: 63
Joined: Sat Jun 14, 2008 1:59 am

Post by hid3 »

Hello everyone.

This is a great plug, that's what I can say!!! Thanks!

However, there's a tiny problem with it.

I have created some rules so that it will add new graphs based on Cisco router's UP ports.

The 'Interface - Traffic' template says that the Title of the graph should be like this:
|host_description| - |query_ifName| (|query_ifAlias|)

However, when AUTOM8 adds the graph automatically, the title in the graph becomes like this:
|host_description| - Fa1/2 (Some Description|)

I mean, the interface name and the description become hardcoded statically. Still, I wish it would remain as per graph template, so |host_description| - |query_ifName| (|query_ifAlias|). In that case, when I change the description of a port in a router, after reindexing hosts, the descriptions would change automatically too. But after this, the descriptions remain old (what's in Cacti).

Can we fix this bug?

Thanks! :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

IMHO, this is not a bug of AUTOM8. AUTOM8 does in fact not work on graph titles or change them in any way. So I assume, that this is the default behaviour of the traffic data query.
R.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

timi wrote:yes, first add just the device name then add every interface name

and under the interface itself I want to add the graphs for it
So you will want to add a "GRAPH" type tree rule. Make it trigger under the conditions you want. Choose the main tree that already exists.

Then, create the first tree rule item. It shall print the device name only.
Create the second tree rule item; make it print the interface name.

R.
Locked

Who is online

Users browsing this forum: No registered users and 0 guests