Thold plugin: prompt action before delete

Support questions about the Threshold plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Thold plugin: prompt action before delete

#1 Post by tigerz » Tue Apr 10, 2018 9:57 am

Hi

looking for an option to enable prompting delete threshold before its actually deleted
when choosing a delete action it deletes immediately without any prompt
trying to preventing accidents...
checked the thold setting but nothing found

Cacti Version: 0.8.8f
Thold Version: 0.6.1

Thanks in advance

netniV
Cacti Guru User
Posts: 3130
Joined: Sun Aug 27, 2017 12:05 am

Re: Thold plugin: prompt action before delete

#2 Post by netniV » Tue Apr 10, 2018 7:04 pm

You are unlikely to get someone to make a modification in the plugin that old. I'm pretty sure that in the newer versions this exists under 1.x.

Maybe someone has the time to implement and test in that version of cacti/thold, but I don't have any running below 1.1.26.

tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: Thold plugin: prompt action before delete

#3 Post by tigerz » Sun Apr 15, 2018 2:26 am

Thanks,

Not asking for code modification but for quick workaround
pretty sure that snooping around will make a change to solve, just need a lead
Any suggests?

Regards,

Cacti Version: 0.8.8f
Thold Version: 0.6.1

netniV
Cacti Guru User
Posts: 3130
Joined: Sun Aug 27, 2017 12:05 am

Re: Thold plugin: prompt action before delete

#4 Post by netniV » Sun Apr 15, 2018 6:13 am

You'd have to do one of two things, put some javascript code where every delete button is, or go the whole hog and implement a new gui section that displays what is about to be deleted, then asks for confirmation and on that confirmation do the actual delete. This is what happens in the places like host.php and graph.php

Post Reply