Autom8 V0.33

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
chk
Posts: 4
Joined: Fri Jul 16, 2010 8:36 am

Post by chk »

The patch from the beta doen't work for my installation. When I try to apply it, I get this error:

Code: Select all

patch -p1 -N --dry-run < plugins/autom8/patches-087g/cacti087g_autom8.patch 
patching file add_graph_template.php
Hunk #1 FAILED at 144.
1 out of 1 hunk FAILED -- saving rejects to file add_graph_template.php.rej
patching file add_tree.php
Hunk #1 FAILED at 33.
1 out of 1 hunk FAILED -- saving rejects to file add_tree.php.rej
patching file host_update_template.php
Hunk #1 FAILED at 136.
1 out of 1 hunk FAILED -- saving rejects to file host_update_template.php.rej
can't find file to patch at input line 37
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nabur host.php host.php
|--- host.php   2010-07-10 11:50:50.368399754 +0200
|+++ host.php   2010-07-12 20:32:22.137080648 +0200
--------------------------
File to patch: 
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
patching file api_automation_tools.php
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file api_automation_tools.php.rej
patching file api_device.php
Hunk #1 FAILED at 178.
1 out of 1 hunk FAILED -- saving rejects to file api_device.php.rej
patching file api_graph.php
Hunk #1 FAILED at 82.
Hunk #2 FAILED at 95.
2 out of 2 hunks FAILED -- saving rejects to file api_graph.php.rej
patching file api_tree.php
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file api_tree.php.rej
patching file data_query.php
Hunk #1 FAILED at 56.
1 out of 1 hunk FAILED -- saving rejects to file data_query.php.rej
patching file template.php
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 786.
1 out of 1 hunk FAILED -- saving rejects to file template.php.rej
Any ideas?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If I'm not mistaken, I updated SVN with a new patch file. You might try this one. No guarantee, this is not proven.
R.
chk
Posts: 4
Joined: Fri Jul 16, 2010 8:36 am

Post by chk »

Nope, same error. Will wait for the stable release.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

But this was applied against a Cacti 087g with PIA 2.8, correct?
R.
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

Same problem with me also with Cacti 0.8.7g & PA2.8....
chk
Posts: 4
Joined: Fri Jul 16, 2010 8:36 am

Post by chk »

Yep, was a fresh install with Cacti v0.8.7g and PIA v2.8.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sigh, again on my todo list. Jumping around between 087g, plugins, 088 and forums. I should retire instead ...
R.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is what I get now:

Code: Select all

patch -p0 < plugins/autom8/patches-087g/cacti087g_autom8.patch 
patching file cli/add_graph_template.php
patching file cli/add_tree.php
patching file cli/host_update_template.php
patching file host.php
patching file lib/api_automation_tools.php
patching file lib/api_device.php
patching file lib/api_graph.php
patching file lib/api_tree.php
patching file lib/data_query.php
patching file lib/template.php
I only added a newline at the end. For your convenience, I again add the path against 087g/PIA2.8 after having added PIA via patch (which worked straightforward)
R.
Attachments
cacti087g_autom8.patch.gz
GUNZIP this file to plugins/autom8/patches-087g/cacti087g_autom8.patch and rerun the patch command
(3.01 KiB) Downloaded 240 times
sukanta
Cacti User
Posts: 139
Joined: Tue Jan 26, 2010 6:12 am

Post by sukanta »

Thanks....It is working now....
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sukanta wrote:Thanks....It is working now....
Wow, that makes me happy. I was wondering what I had done ...
So still the last polish has to be done to finally GA that version
R.
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

Hi Gandalf,

I'm just facing a last bug :oops:

In fact if I modify someting in the "Rule Items => Create Tree", the "Field Name" comes empty as long as I use "fixed string". The only way that I found to correct this is to do this manually in the database.
Attachments
After saving, the &amp;quot;field name&amp;quot; has no value. In the database the field has an empty value
After saving, the &quot;field name&quot; has no value. In the database the field has an empty value
after_modification.png (11.61 KiB) Viewed 4294 times
Now I just change the title of the tree that I need to create
Now I just change the title of the tree that I need to create
modification of grep title.png (15.95 KiB) Viewed 4294 times
As you can see, everything run smooth
As you can see, everything run smooth
before_modification.png (11.39 KiB) Viewed 4294 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks for the bug report. I fixed the issue. find b5 attached
Attachments
autom8-v0.35b5.tgz
autom8 v0.35 Beta5
(59.67 KiB) Downloaded 191 times
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Post by killshoot »

Hi,

Run smooth :lol:

Just wait before release (if you've planned it soon), I've maybe found a bug when directely adding graph in tree instead of hosts. I need to make more tests.

Regards,

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

Post by killshoot »

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've joined a screenshoot of the rules. You can also find the part of the logs that seems to apply to this rule:

Code: Select all

08/02/2010 08:24:56 AM - AUTOM8 TRACE: Poller[0] build_matching_objects_filter returns: graph_templates_graph.title LIKE '%Traffic - Gi%' AND host.description LIKE '%_ip-%'
08/02/2010 08:24:56 AM - AUTOM8 TRACE: Poller[0] build_rule_item_filter returns: graph_templates_graph.title LIKE '%Traffic - Gi%' AND host.description LIKE '%_ip-%'
08/02/2010 08:24:56 AM - AUTOM8 TRACE: Poller[0] build_rule_item_filter called: a:2:{i:0;a:8:{s:2:"id";s:4:"1056";s:7:"rule_id";s:3:"155";s:9:"rule_type";s:1:"3";s:8:"sequence";s:1:"1";s:9:"operation";s:1:"0";s:5:"field";s:27:"graph_templates_graph.title";s:8:"operator";s:1:"1";s:7:"pattern";s:12:"Traffic - Gi";}i:1;a:8:{s:2:"id";s:4:"1057";s:7:"rule_id";s:3:"155";s:9:"rule_type";s:1:"3";s:8:"sequence";s:1:"2";s:9:"operation";s:1:"1";s:5:"field";s:16:"host.description";s:8:"operator";s:1:"1";s:7:"pattern";s:4:"_ip-";}}, prefix:
08/02/2010 08:24:56 AM - AUTOM8 TRACE: Poller[0] build_matching_objects_filter called rule id: 155 
Regards,

Vince
Attachments
tree_rule_graph.png
tree_rule_graph.png (183.98 KiB) Viewed 4218 times
meralias
Posts: 46
Joined: Tue Nov 14, 2006 7:07 am

Post by meralias »

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.
Locked

Who is online

Users browsing this forum: No registered users and 0 guests