autom8thold - how to troubleshoot?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

autom8thold - how to troubleshoot?

Post by Howie »

I'm working on updating one of my Cacti installation to the latest versions, and started with a copy of my current 0.8.7e (!) installation, to test the update procedure.

Upgrade to 0.8.8d worked fine, and I've now also upgraded all the plugins. I wanted to also try autom8thold, since I already use thold and autom8. I've patched autom8, installed autom8thold, and the UI seems to work OK - I can create rules, and the UI behaves as expected.

However, no thresholds are created. I also don't see any mention of AUTOM8 in the logs that isn't for graphs.

How can I troubleshoot this? I originally chose the 'apply autom8 rules' for individual devices in the Hosts page but no thresholds were created (the hosts and DS were listed correctly in the rule-editing page). I already dropped my threshold templates and re-installed that plugin, since the database tables have changed a bit in the last few versions, so that is now a fresh install with only two thold templates. I have also reindexed all hosts, but still no thresholds.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: autom8thold - how to troubleshoot?

Post by Howie »

Also, just to confirm - "Apply Thresholds" *does* create the threshold correctly, so I'm pretty sure that part is OK, too.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: autom8thold - how to troubleshoot?

Post by cigamit »

I haven't actually used that plugin before (autom8thold) so I would have to take a look and see what it is doing.

From the looks of the patch, did you install and enable autom8 before or after you patched it? The patch adds a few more hooks that need registering.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: autom8thold - how to troubleshoot?

Post by Howie »

I was hoping to hear from hipska, who seems to be on the forums from time to time... [too bad phpbb can't do @hipska]

Yes, I just checked, and the extra hooks in the patch are registered in the database. I just tried with DEBUG logging, and didn't get any new information. My next plan is to start adding trace logging to it, since it doesn't seem to have any :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Hipska
Posts: 48
Joined: Tue Oct 09, 2012 2:51 am
Location: Belgium

Re: autom8thold - how to troubleshoot?

Post by Hipska »

Hi, I have seen your request via GitHub, and you could have sent me a pm also ;-)
Well, it has been a long time ago since I created this plugin, so I will need to look into it again. I will have a look next week, as the weekend is just starting here 8)

Thanks for notifying.
User avatar
Hipska
Posts: 48
Joined: Tue Oct 09, 2012 2:51 am
Location: Belgium

Re: autom8thold - how to troubleshoot?

Post by Hipska »

Hi,

The patch for autom8 includes also some new hooks, so that means that they need to be in the DB too. Did you install or reinstall autom8 plugin after patching?

Code: Select all

diff -ru v035/setup.php custom/setup.php
--- v035/setup.php   2010-12-12 11:08:09.000000000 +0100
+++ custom/setup.php   2013-07-31 15:37:51.000000000 +0200
@@ -98,6 +98,13 @@
   # graph hook: Graph Management Action dropdown selected: execute list of graphs
   api_plugin_register_hook('autom8', 'graphs_action_execute', 'autom8_graph_action_execute', 'autom8_actions.php');

+   # data source hook: Add a new dropdown Action for Data Source Management
+   api_plugin_register_hook('autom8', 'data_source_action_array', 'autom8_data_source_action_array', 'autom8_actions.php');
+   # data source hook: Data Source Management Action dropdown selected: prepare the list of data sources for a confirmation request
+   api_plugin_register_hook('autom8', 'data_source_action_prepare', 'autom8_data_source_action_prepare', 'autom8_actions.php');
+   # data source hook: Data Source Management Action dropdown selected: execute list of data sources
+   api_plugin_register_hook('autom8', 'data_source_action_execute', 'autom8_data_source_action_execute', 'autom8_actions.php');
+
   autom8_setup_table ();
}
I just saw that you have mentioned that they are in there, but I just wanted to verify if these particular 3 are actually added.

And where are you referring to with "Apply Thresholds"?
slakyari
Posts: 5
Joined: Mon Jul 16, 2018 7:05 am

Re: autom8thold - how to troubleshoot?

Post by slakyari »

Hi,

I am using Cacti 0.8.8b and applied autom8_v035.patch only to autom8.

I am having the same problem i.e. not able to create thresholds automatically. I have created threshold rules and its detecting which thresholds are created and which one are not.

Now How do we apply these rules. I am going to console -> devices and selecting device and choosing " Apply Autom8 Rules to Devices" . Will this trigger threshold creation OR I should see some other option.

Thanks
Syed
User avatar
Hipska
Posts: 48
Joined: Tue Oct 09, 2012 2:51 am
Location: Belgium

Re: autom8thold - how to troubleshoot?

Post by Hipska »

It has been a long time I used this plugin myself, but there should be an action "Apply Autom8 Rules to Data Source(s)" on the data sources list.

Also, could You verify in the DB if there are the newly created hooks for autom8?
  • data_source_action_array
  • data_source_action_prepare
  • data_source_action_execute
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests