Hello,
Since the incomplete upgrade from 1.2.10 to 1.2.11 my hook api_device_new are not called anymore.
And my hook is still declaread correctly in hook table.
Of curse I try to de-install and re-install my plugin but nothing change.
I try to know if it's a problem cause by the incomplete upgrade, or if it's new to 1.2.11
In Cacti 1.2.11 api_device_new hook not called anymore
Moderators: Developers, Moderators
In Cacti 1.2.11 api_device_new hook not called anymore
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: In Cacti 1.2.11 api_device_new hook not called anymore
that hook has not be removed from the system:
This list is the same for the 1.2.12 release as it is the 1.2.9 release. It last changed in 1.2.8 when api_device had a few new lines added.
Code questions like that are probably best asked on GitHub
Code: Select all
Searching for api_device_new
./plugins/thold/setup.php:93: api_plugin_register_hook($plugin, 'api_device_new', 'thold_api_device_new', 'setup.php');
./plugins/thold/setup.php:667:function thold_api_device_new($save) {
./plugins/thold/includes/database.php:770: api_plugin_register_hook('thold', 'api_device_new', 'thold_api_device_new', 'setup.php', '1');
./plugins/wmi/setup.php:37: api_plugin_register_hook('wmi', 'api_device_new', 'wmi_api_device_new', 'setup.php');
./plugins/wmi/setup.php:652:function wmi_api_device_new($save) {
./lib/snmpagent.php:98:function snmpagent_api_device_new($device){
./lib/api_device.php:820: snmpagent_api_device_new($save);
./lib/api_device.php:824: api_plugin_hook_function('api_device_new', $save);
Code questions like that are probably best asked on GitHub
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 0 guests