i want to add an action after creation of graph, so in my own plugin i've created a hook for create_complete_graph_from_template :
Code: Select all
api_plugin_register_hook('addGraph', 'create_complete_graph_from_template', 'addGraph_create_complete_graph_from_template', 'addGraph_actions.php');
and the function is :
Code: Select all
function addGraph_create_complete_graph_from_template($data) {
global $config;
cacti_log( __FUNCTION__." : ".serialize($data) );
}
02/21/2012 11:14:02 AM - CMDPHP: Poller[0] addGraph_create_complete_graph_from_template : N;
why only "N;" ?
my system : Win32box, cacti 0.8.7i, automn8 and more plugins