Calling thold from inside a plugin

Discussions on developing plugins for the Cacti Plugin Architecture

Moderators: Moderators, Developers

Post Reply
Cacti User
Posts: 346
Joined: Wed Dec 07, 2011 9:19 am

Calling thold from inside a plugin

#1 Post by Rno » Mon Jan 30, 2017 7:41 am

For my new plugin I need to be able to create a threshold, based on one the user selected on the setting page (of my plugin).
Anyone have an Idea how I can call it and which function I can call ?
I saw the autocreate, but it's apply on every object for which a template exist, and i'd like to create only for some selected object.

I'd like to avoid to duplicate the 'thold_graphs_action_execute' that exist into the thold setup file.

Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.45, Map 0.37

Cacti 1.2.6
Spine 1.2.6
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.6
Map 1.2.6

Post Reply