I'm writing a plugin that uses graphs_action_prepare and graphs_action_execute hooks. Is there a way to display an error message to the user on graphs.php page if my plugin encounters an error in graphs_action_execute?
I was looking at a couple plugins that use these hook (mainly Aggregate), but there any errors go only to Cacti log file with no indication to the user, that something went wrong.
Any help would be greatly appreciated.
Display error message on graphs_action_execute
Moderators: Developers, Moderators
OK, I figured it out thanks to your hint. For future reference: basically you need to set
in your code. This can also be done by function form_input_validate as is done in Aggregate plugin.
Thanks for your help gandalf.
Code: Select all
$_SESSION["sess_messages"]
in your code. This can also be done by function form_input_validate as is done in Aggregate plugin.
Thanks for your help gandalf.
Who is online
Users browsing this forum: No registered users and 0 guests