Go lang check agents

This commit is contained in:
Jaroslav Drzik
2021-12-06 21:59:24 +01:00
parent 87714aafda
commit ca9dafcab4
5 changed files with 324 additions and 5 deletions

View File

@@ -34,12 +34,16 @@ function plugin_init_remotesupport()
if (Plugin::isPluginActive('remotesupport')) {
// $PLUGIN_HOOKS['add_javascript']['remotesupport'][] = 'js/support.js';
include(PLUGIN_REMOTESUPPORT_DIR . "/inc/remotesupport.class.php");
$PLUGIN_HOOKS['autoinventory_information']['remotesupport'] = array(
'Computer' => array('PluginRemoteSupportComputer', 'showInfo')
'Computer' => array('PluginRemotesupportRemotesupport', 'showInfo')
);
CronTask::Register('PluginRemotesupportRemotesupport', 'remotesupport', 300,
['mode'=>2, 'allowmode'=>3, 'logs_lifetime'=>30,
'comment'=> 'Remotesupport crontab search agents']);
// Add Config Page
// Plugin::registerClass('PluginRemotesupportConfig', ['addtabon' => 'Config']);