Autom8 plugin problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Autom8 plugin problem

Post by terziyski »

After installing Autom8 plugin when I click on 'reload data query' or click save in devices I am receiving this message:

Fatal error: Call to undefined function autom8_log() in /var/www/html/plugins/autom8/autom8_functions.php on line 25

This also happens when i run manually
php -q poller_reindex_hosts.php --id=All
from CLI.

Any help would be appreciated.
__________________________
Cacti 0.8.7e
Spine 0.8.7e
PIA 2.6
Cacti user
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

One of the files is missing an include.

I'm sending a note to gandalf.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

I saw that autom8_log function is in autom8_utilities.php file, but it's not included in the first three functions where it is used (autom8_functions.php).
Maybe Gandalf have to fix this or maybe I have not patched my files successfully.
Cacti user
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's a correct find. I will update the code as soon as I find time. In the meantime, you may insert those lines on your won. It's "only" the logging function that breaks
R
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

After adding:
include_once($config["base_path"]."/plugins/autom8/autom8_utilities.php");
(missed in first 4 functions) everything is OK.
Thanks R
Cacti user
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

terziyski wrote:After adding:
include_once($config["base_path"]."/plugins/autom8/autom8_utilities.php");
(missed in first 4 functions) everything is OK.
Thanks R
Published V0.32: http://docs.cacti.net/plugin:autom8
Thanks for the hints
R
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

It appears that I have another problem using autom8.
Any thoughts ?
Attachments
autom8.JPG
autom8.JPG (46.51 KiB) Viewed 4661 times
Cacti user
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please file a bug report
R.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

terziyski wrote:It appears that I have another problem using autom8.
Any thoughts ?
Fixed in SVN. Nothing important. Won't release for this only.
R.
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

Sorry that I am writing in this topic, but I decided not to open a new one for my question.
Here I have applied a tree rule which did not worked. I have used Perl zero-width negative look-ahead assertion.
Is there any limitations regarding usage of regex matches in the plugin?
Attachments
autom8.JPG
autom8.JPG (60.67 KiB) Viewed 3560 times
Cacti user
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

terziyski wrote:Sorry that I am writing in this topic, but I decided not to open a new one for my question.
Here I have applied a tree rule which did not worked. I have used Perl zero-width negative look-ahead assertion.
Is there any limitations regarding usage of regex matches in the plugin?
I'm using MySQL regexp operator. So you will find your answer in the MySQL documentation related to your MySQL version
R.
terziyski
Cacti User
Posts: 93
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

Post by terziyski »

In that case I think it would be nice if you can add negation of REGEXP (does not matches regular expression - NOT REGEXP) as OPERATOR item.
Cacti user
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I will consider this
R.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This feature has been added to SVN. No new release for now.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests