Hello,
In my plugin I need to get back the hostname and/or the description of a device just before/or after it is deleted
the hook remove_device give me only the hos_it but it send after the host is deleted so I can't linkit to an external tools.
Any clue how I can handle that ?
thanks
Get the hostname odf a device, just before is deleted
Moderators: Developers, Moderators
Get the hostname odf a device, just before is deleted
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: Get the hostname odf a device, just before is deleted
That is correct. And it gets worse when I looked at it. If a device is removed at the command line, you may not get a hook call at all since it's only in host.php. I've opened issue 1982 for that last part. If you wish to request a hook, we can put this into 1.2 if you want to open a feature request 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
Re: Get the hostname odf a device, just before is deleted
Well if I look you issue, I will just add that I't can be great to receive some information when calling the hook, not just the host id.
But I don't think it's necessary to open a new one
But I don't think it's necessary to open a new one
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: Get the hostname odf a device, just before is deleted
This is resolved in version 1.2 released yesterday.
Before history, there was a paradise, now dust.
Who is online
Users browsing this forum: No registered users and 2 guests